// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/prefs/default_pref_store.h" #include "base/memory/raw_ptr.h" #include "testing/gtest/include/gtest/gtest.h" Value; namespace { class MockPrefStoreObserver : public PrefStore::Observer { … }; MockPrefStoreObserver::MockPrefStoreObserver(DefaultPrefStore* pref_store) : … { … } MockPrefStoreObserver::~MockPrefStoreObserver() { … } void MockPrefStoreObserver::OnPrefValueChanged(std::string_view key) { … } } // namespace TEST(DefaultPrefStoreTest, NotifyPrefValueChanged) { … }