chromium/components/reporting/metrics/fakes/fake_reporting_settings.cc

// Copyright 2021 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/reporting/metrics/fakes/fake_reporting_settings.h"

#include "base/containers/contains.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/values.h"

namespace reporting::test {

FakeReportingSettings::FakeReportingSettings() = default;

FakeReportingSettings::~FakeReportingSettings() = default;

base::CallbackListSubscription FakeReportingSettings::AddSettingsObserver(
    const std::string& path,
    base::RepeatingClosure callback) {}

bool FakeReportingSettings::PrepareTrustedValues(base::OnceClosure callback) {}

bool FakeReportingSettings::GetBoolean(const std::string& path,
                                       bool* out_value) const {}

bool FakeReportingSettings::GetInteger(const std::string& path,
                                       int* out_value) const {}

bool FakeReportingSettings::GetList(const std::string& path,
                                    const base::Value::List** out_value) const {}

bool FakeReportingSettings::GetReportingEnabled(const std::string& path,
                                                bool* out_value) const {}

void FakeReportingSettings::SetBoolean(const std::string& path,
                                       bool bool_value) {}

void FakeReportingSettings::SetInteger(const std::string& path, int int_value) {}

void FakeReportingSettings::SetList(const std::string& path,
                                    const base::Value::List& list_value) {}

void FakeReportingSettings::SetReportingEnabled(const std::string& path,
                                                bool enabled_value) {}

void FakeReportingSettings::SetIsTrusted(bool is_trusted) {}
}  // namespace reporting::test