chromium/base/allocator/dispatcher/initializer_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "testing/gtest/include/gtest/gtest.h"

#include "base/allocator/dispatcher/configuration.h"
#include "base/allocator/dispatcher/initializer.h"
#include "base/allocator/dispatcher/testing/observer_mock.h"
#include "base/allocator/dispatcher/testing/tools.h"

#include <functional>
#include <map>
#include <tuple>

namespace base::allocator::dispatcher {
namespace testing {

// A mock Dispatcher for testing. Since Initializer and Dispatcher rely on
// templating, we can't employ GoogleMocks for mocking. The mock dispatcher
// records the number of invocations of Initialize for a given tuple of
// observers.
struct Dispatcher {};
}  // namespace testing

ObserverMock;

struct BaseAllocatorDispatcherInitializerTest : public ::testing::Test {};

TEST_F(BaseAllocatorDispatcherInitializerTest, VerifyEmptyInitializer) {}

TEST_F(BaseAllocatorDispatcherInitializerTest, VerifySettingOptionalObservers) {}

TEST_F(BaseAllocatorDispatcherInitializerTest, VerifyAddingOptionalObservers) {}

TEST_F(BaseAllocatorDispatcherInitializerTest,
       VerifySettingMandatoryObservers) {}

TEST_F(BaseAllocatorDispatcherInitializerTest, VerifyAddingMandatoryObservers) {}

TEST_F(BaseAllocatorDispatcherInitializerTest, VerifyBasicInitialization) {}

TEST_F(BaseAllocatorDispatcherInitializerTest,
       VerifyInitializationWithMandatoryNullObservers) {}

TEST_F(BaseAllocatorDispatcherInitializerTest,
       VerifyInitializationWithOptionalNullObservers) {}

}  // namespace base::allocator::dispatcher