#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 { … };
class TestingPrefNotifierImpl : public PrefNotifierImpl { … };
class MockPrefNotifier : public PrefNotifierImpl { … };
class PrefObserverMock : public PrefObserver { … };
class PrefNotifierTest : public testing::Test { … };
TEST_F(PrefNotifierTest, OnPreferenceChanged) { … }
TEST_F(PrefNotifierTest, OnInitializationCompleted) { … }
TEST_F(PrefNotifierTest, AddAndRemovePrefObservers) { … }
TEST_F(PrefNotifierTest, FireObservers) { … }
}