chromium/components/prefs/testing_pref_store.cc

// 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/testing_pref_store.h"

#include <memory>
#include <string>
#include <string_view>
#include <utility>

#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

class ChangedValueWaiter : public PrefStore::Observer {};

}  // namespace

TestingPrefStore::TestingPrefStore()
    :{}

bool TestingPrefStore::GetValue(std::string_view key,
                                const base::Value** value) const {}

base::Value::Dict TestingPrefStore::GetValues() const {}

bool TestingPrefStore::GetMutableValue(std::string_view key,
                                       base::Value** value) {}

void TestingPrefStore::AddObserver(PrefStore::Observer* observer) {}

void TestingPrefStore::RemoveObserver(PrefStore::Observer* observer) {}

bool TestingPrefStore::HasObservers() const {}

bool TestingPrefStore::IsInitializationComplete() const {}

void TestingPrefStore::SetValue(std::string_view key,
                                base::Value value,
                                uint32_t flags) {}

void TestingPrefStore::SetValueSilently(std::string_view key,
                                        base::Value value,
                                        uint32_t flags) {}

void TestingPrefStore::RemoveValue(std::string_view key, uint32_t flags) {}

void TestingPrefStore::RemoveValuesByPrefixSilently(std::string_view prefix) {}

bool TestingPrefStore::ReadOnly() const {}

PersistentPrefStore::PrefReadError TestingPrefStore::GetReadError() const {}

PersistentPrefStore::PrefReadError TestingPrefStore::ReadPrefs() {}

void TestingPrefStore::ReadPrefsAsync(ReadErrorDelegate* error_delegate) {}

void TestingPrefStore::CommitPendingWrite(
    base::OnceClosure reply_callback,
    base::OnceClosure synchronous_done_callback) {}

void TestingPrefStore::SchedulePendingLossyWrites() {}

void TestingPrefStore::SetInitializationCompleted() {}

void TestingPrefStore::NotifyPrefValueChanged(std::string_view key) {}

void TestingPrefStore::NotifyInitializationCompleted() {}

void TestingPrefStore::ReportValueChanged(std::string_view key,
                                          uint32_t flags) {}

void TestingPrefStore::SetString(const std::string& key,
                                 const std::string& value) {}

void TestingPrefStore::SetInteger(const std::string& key, int value) {}

void TestingPrefStore::SetBoolean(const std::string& key, bool value) {}

bool TestingPrefStore::GetString(const std::string& key,
                                 std::string* value) const {}

bool TestingPrefStore::GetInteger(const std::string& key, int* value) const {}

bool TestingPrefStore::GetBoolean(const std::string& key, bool* value) const {}

void TestingPrefStore::SetBlockAsyncRead(bool block_async_read) {}

void TestingPrefStore::WaitUntilValueChanges(std::string key) {}

void TestingPrefStore::WaitForValue(std::string key,
                                    base::Value expected_value) {}

void TestingPrefStore::OnStoreDeletionFromDisk() {}

void TestingPrefStore::set_read_only(bool read_only) {}

void TestingPrefStore::set_read_success(bool read_success) {}

void TestingPrefStore::set_read_error(
    PersistentPrefStore::PrefReadError read_error) {}

TestingPrefStore::~TestingPrefStore() {}

void TestingPrefStore::CheckPrefIsSerializable(std::string_view key,
                                               const base::Value& value) {}

bool TestingPrefStore::HasReadErrorDelegate() const {}