chromium/chrome/browser/policy/policy_test_utils.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/policy/policy_test_utils.h"

#include <optional>
#include <string>
#include <utility>

#include "base/callback_list.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/current_thread.h"
#include "base/test/bind.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/lifetime/termination_notification.h"
#include "chrome/common/chrome_paths.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/policy_constants.h"
#include "components/safe_search_api/safe_search_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/network_service_util.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/dns/mock_host_resolver.h"

BrowserThread;

namespace policy {

void GetTestDataDirectory(base::FilePath* test_data_directory) {}

PolicyTest::PolicyTest() = default;

PolicyTest::~PolicyTest() = default;

void PolicyTest::SetUpInProcessBrowserTestFixture() {}

void PolicyTest::SetUpOnMainThread() {}

void PolicyTest::UpdateProviderPolicy(const PolicyMap& policy) {}

// static
void PolicyTest::SetPolicy(PolicyMap* policies,
                           const char* key,
                           std::optional<base::Value> value) {}

// static
bool PolicyTest::FetchSubresource(content::WebContents* web_contents,
                                  const GURL& url) {}

void PolicyTest::FlushBlocklistPolicy() {}

PolicyTestAppTerminationObserver::PolicyTestAppTerminationObserver() {}

PolicyTestAppTerminationObserver::~PolicyTestAppTerminationObserver() = default;

}  // namespace policy