#include "chrome/browser/policy/safe_search_policy_test.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/omnibox/browser/omnibox_edit_model.h"
#include "components/policy/policy_constants.h"
#include "components/safe_search_api/safe_search_util.h"
#include "content/public/test/test_navigation_observer.h"
namespace policy {
SafeSearchPolicyTest::SafeSearchPolicyTest() { … }
SafeSearchPolicyTest::~SafeSearchPolicyTest() = default;
void SafeSearchPolicyTest::ApplySafeSearchPolicy(
std::optional<base::Value> legacy_safe_search,
std::optional<base::Value> google_safe_search,
std::optional<base::Value> legacy_youtube,
std::optional<base::Value> youtube_restrict) { … }
GURL SafeSearchPolicyTest::GetExpectedSearchURL(bool expect_safe_search) { … }
void SafeSearchPolicyTest::CheckSafeSearch(Browser* browser,
bool expect_safe_search,
const std::string& url) { … }
}