#include "components/search_engines/search_engines_test_util.h"
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "components/search_engines/default_search_manager.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_data.h"
#include "components/search_engines/template_url_data_util.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "testing/gtest/include/gtest/gtest.h"
std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData(
const std::string& keyword) { … }
void ExpectSimilar(const TemplateURLData* expected,
const TemplateURLData* actual) { … }
void SetExtensionDefaultSearchInPrefs(
sync_preferences::TestingPrefServiceSyncable* prefs,
const TemplateURLData& data) { … }
void RemoveExtensionDefaultSearchFromPrefs(
sync_preferences::TestingPrefServiceSyncable* prefs) { … }