#include "components/search_engines/enterprise/default_search_policy_handler.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/configuration_policy_pref_store_test.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/search_engines/default_search_manager.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/search_engines/template_url_data.h"
namespace policy {
class DefaultSearchPolicyHandlerTest
: public ConfigurationPolicyPrefStoreTest { … };
const char DefaultSearchPolicyHandlerTest::kSearchURL[] = …;
const char DefaultSearchPolicyHandlerTest::kSuggestURL[] = …;
const char DefaultSearchPolicyHandlerTest::kName[] = …;
const char DefaultSearchPolicyHandlerTest::kImageURL[] = …;
const char DefaultSearchPolicyHandlerTest::kImageParams[] = …;
const char DefaultSearchPolicyHandlerTest::kFileSearchURL[] = …;
const char DefaultSearchPolicyHandlerTest::kHostName[] = …;
#if !BUILDFLAG(IS_IOS) && !BUILDFLAG(IS_ANDROID)
const char DefaultSearchPolicyHandlerTest::kKeyword[] = …;
const char DefaultSearchPolicyHandlerTest::kNewTabURL[] = …;
#endif
void DefaultSearchPolicyHandlerTest::
BuildDefaultSearchPolicy(PolicyMap* policy) { … }
TEST_F(DefaultSearchPolicyHandlerTest, MissingUrl) { … }
TEST_F(DefaultSearchPolicyHandlerTest, Invalid) { … }
TEST_F(DefaultSearchPolicyHandlerTest, InvalidType) { … }
TEST_F(DefaultSearchPolicyHandlerTest, FullyDefined) { … }
TEST_F(DefaultSearchPolicyHandlerTest, DisabledByPolicy) { … }
TEST_F(DefaultSearchPolicyHandlerTest, DisabledByPolicyNotSet) { … }
TEST_F(DefaultSearchPolicyHandlerTest, MinimallyDefined) { … }
TEST_F(DefaultSearchPolicyHandlerTest, FileURL) { … }
}