chromium/components/prefs/pref_notifier_impl_unittest.cc

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

#include <stddef.h>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "components/prefs/mock_pref_change_callback.h"
#include "components/prefs/pref_notifier_impl.h"
#include "components/prefs/pref_observer.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/pref_value_store.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
Field;
Invoke;
Mock;
Truly;

namespace {

const char kChangedPref[] =;
const char kUnchangedPref[] =;

class MockPrefInitObserver {};

// This is an unmodified PrefNotifierImpl, except we make
// OnPreferenceChanged public for tests.
class TestingPrefNotifierImpl : public PrefNotifierImpl {};

// Mock PrefNotifier that allows tracking of observers and notifications.
class MockPrefNotifier : public PrefNotifierImpl {};

class PrefObserverMock : public PrefObserver {};

// Test fixture class.
class PrefNotifierTest : public testing::Test {};

TEST_F(PrefNotifierTest, OnPreferenceChanged) {}

TEST_F(PrefNotifierTest, OnInitializationCompleted) {}

TEST_F(PrefNotifierTest, AddAndRemovePrefObservers) {}

TEST_F(PrefNotifierTest, FireObservers) {}

}  // namespace