#include "components/search_engines/search_engine_choice/search_engine_choice_utils.h"
#include <memory>
#include <vector>
#include "base/check_deref.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/version.h"
#include "build/build_config.h"
#include "components/country_codes/country_codes.h"
#include "components/policy/core/common/mock_policy_service.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/testing_pref_service.h"
#include "components/search_engines/eea_countries_ids.h"
#include "components/search_engines/prepopulated_engines.h"
#include "components/search_engines/search_engine_type.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/search_engines/search_engines_switches.h"
#include "components/search_engines/template_url_data_util.h"
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/search_engines/template_url_service.h"
#include "components/signin/public/base/signin_switches.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/version_info/version_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace search_engines {
const int kFranceCountryId = …;
class SearchEngineChoiceUtilsTest : public ::testing::Test { … };
TEST_F(SearchEngineChoiceUtilsTest, IsEeaChoiceCountry) { … }
TEST_F(SearchEngineChoiceUtilsTest, IsChoiceScreenFlagEnabled) { … }
TEST_F(SearchEngineChoiceUtilsTest, ChoiceScreenDisplayState_ToDict) { … }
TEST_F(SearchEngineChoiceUtilsTest,
ChoiceScreenDisplayState_ToDict_WithoutSelection) { … }
TEST_F(SearchEngineChoiceUtilsTest, ChoiceScreenDisplayState_FromDict) { … }
TEST_F(SearchEngineChoiceUtilsTest, ChoiceScreenDisplayState_FromDict_Errors) { … }
}