#include "components/prefs/pref_member.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kBoolPref[] = …;
const char kIntPref[] = …;
const char kDoublePref[] = …;
const char kStringPref[] = …;
const char kStringListPref[] = …;
void RegisterTestPrefs(PrefRegistrySimple* registry) { … }
class GetPrefValueHelper
: public base::RefCountedThreadSafe<GetPrefValueHelper> { … };
class PrefMemberTestClass { … };
}
class PrefMemberTest : public testing::Test { … };
TEST_F(PrefMemberTest, BasicGetAndSet) { … }
TEST_F(PrefMemberTest, InvalidList) { … }
TEST_F(PrefMemberTest, TwoPrefs) { … }
TEST_F(PrefMemberTest, Observer) { … }
TEST_F(PrefMemberTest, NoInit) { … }
TEST_F(PrefMemberTest, MoveToSequence) { … }