chromium/components/content_settings/core/test/content_settings_mock_provider.cc

// Copyright 2011 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/content_settings/core/test/content_settings_mock_provider.h"
#include "components/content_settings/core/browser/content_settings_rule.h"
#include "components/content_settings/core/common/content_settings_metadata.h"

namespace content_settings {

MockProvider::MockProvider() :{}

MockProvider::MockProvider(bool read_only) :{}

MockProvider::~MockProvider() = default;

std::unique_ptr<RuleIterator> MockProvider::GetRuleIterator(
    ContentSettingsType content_type,
    bool incognito,
    const PartitionKey& partition_key) const {}

std::unique_ptr<Rule> MockProvider::GetRule(
    const GURL& primary_url,
    const GURL& secondary_url,
    ContentSettingsType content_type,
    bool off_the_record,
    const PartitionKey& partition_key) const {}

bool MockProvider::SetWebsiteSetting(
    const ContentSettingsPattern& requesting_url_pattern,
    const ContentSettingsPattern& embedding_url_pattern,
    ContentSettingsType content_type,
    base::Value&& in_value,
    const ContentSettingConstraints& constraints,
    const PartitionKey& partition_key) {}

void MockProvider::ShutdownOnUIThread() {}

}  // namespace content_settings