chromium/components/prefs/segregated_pref_store_unittest.cc

// Copyright 2014 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/segregated_pref_store.h"

#include <memory>
#include <set>
#include <string>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "components/prefs/persistent_pref_store.h"
#include "components/prefs/pref_name_set.h"
#include "components/prefs/pref_store_observer_mock.h"
#include "components/prefs/testing_pref_store.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

const char kSelectedPref[] =;
const char kUnselectedPref[] =;
const char kSharedPref[] =;

const char kValue1[] =;
const char kValue2[] =;

class MockReadErrorDelegate : public PersistentPrefStore::ReadErrorDelegate {};

enum class CommitPendingWriteMode {};

class SegregatedPrefStoreTest
    : public testing::TestWithParam<CommitPendingWriteMode> {};

}  // namespace

TEST_P(SegregatedPrefStoreTest, StoreValues) {}

TEST_F(SegregatedPrefStoreTest, ReadValues) {}

TEST_F(SegregatedPrefStoreTest, RemoveValuesByPrefix) {}

TEST_F(SegregatedPrefStoreTest, Observer) {}

TEST_F(SegregatedPrefStoreTest,
       ObserverAfterConstructionAfterSubInitialization) {}

TEST_F(SegregatedPrefStoreTest, SelectedPrefReadNoFileError) {}

TEST_F(SegregatedPrefStoreTest, SelectedPrefReadError) {}

TEST_F(SegregatedPrefStoreTest, SelectedPrefReadNoFileErrorAsync) {}

TEST_F(SegregatedPrefStoreTest, UnselectedPrefReadNoFileError) {}

TEST_F(SegregatedPrefStoreTest, UnselectedPrefReadError) {}

TEST_F(SegregatedPrefStoreTest, BothPrefReadError) {}

TEST_F(SegregatedPrefStoreTest, BothPrefReadErrorAsync) {}

TEST_F(SegregatedPrefStoreTest, IsInitializationComplete) {}

TEST_F(SegregatedPrefStoreTest, IsInitializationCompleteAsync) {}

TEST_F(SegregatedPrefStoreTest, GetValues) {}

TEST_F(SegregatedPrefStoreTest, HasReadErrorDelegate) {}

TEST_F(SegregatedPrefStoreTest, HasReadErrorDelegateWithNullDelegate) {}

INSTANTIATE_TEST_SUITE_P();
INSTANTIATE_TEST_SUITE_P();
INSTANTIATE_TEST_SUITE_P();