Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Unified Diff: chrome/browser/search_engines/template_url_service_unittest.cc

Issue 2347973002: Enable Chrome to tweak search engines for some locales (Closed)
Patch Set: fix compile Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_service_unittest.cc
diff --git a/chrome/browser/search_engines/template_url_service_unittest.cc b/chrome/browser/search_engines/template_url_service_unittest.cc
index fb3369b734a628460ae5b5fe7eb7863b28f62dad..1bbd4561f9326815dea9740f5be036edf3d10709 100644
--- a/chrome/browser/search_engines/template_url_service_unittest.cc
+++ b/chrome/browser/search_engines/template_url_service_unittest.cc
@@ -834,7 +834,7 @@ TEST_F(TemplateURLServiceTest, RepairPrepopulatedSearchEngines) {
// Bing was repaired.
bing = model()->GetTemplateURLForKeyword(ASCIIToUTF16("bing.com"));
ASSERT_TRUE(bing);
- EXPECT_EQ(TemplateURL::NORMAL, bing->GetType());
+ EXPECT_EQ(TemplateURL::NORMAL, bing->type());
// User search engine is preserved.
EXPECT_EQ(user_dse, model()->GetTemplateURLForHost("www.goo.com"));
@@ -1417,8 +1417,7 @@ TEST_F(TemplateURLServiceTest, DefaultExtensionEngine) {
std::string(), std::string(), std::string(), true, true, "UTF-8", Time(),
Time());
std::unique_ptr<TemplateURL::AssociatedExtensionInfo> extension_info(
- new TemplateURL::AssociatedExtensionInfo(
- TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext"));
+ new TemplateURL::AssociatedExtensionInfo("ext"));
extension_info->wants_to_be_default_engine = true;
TemplateURL* ext_dse_ptr = model()->AddExtensionControlledTURL(
std::move(ext_dse), std::move(extension_info));
@@ -1444,8 +1443,7 @@ TEST_F(TemplateURLServiceTest, ExtensionEnginesNotPersist) {
std::string(), std::string(), std::string(), true, false, "UTF-8", Time(),
Time());
std::unique_ptr<TemplateURL::AssociatedExtensionInfo> extension_info(
- new TemplateURL::AssociatedExtensionInfo(
- TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1"));
+ new TemplateURL::AssociatedExtensionInfo("ext1"));
extension_info->wants_to_be_default_engine = false;
model()->AddExtensionControlledTURL(std::move(ext_dse),
std::move(extension_info));
@@ -1455,8 +1453,7 @@ TEST_F(TemplateURLServiceTest, ExtensionEnginesNotPersist) {
"http://www.ext2.com/s?q={searchTerms}",
std::string(), std::string(), std::string(),
true, true, "UTF-8", Time(), Time());
- extension_info.reset(new TemplateURL::AssociatedExtensionInfo(
- TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext2"));
+ extension_info.reset(new TemplateURL::AssociatedExtensionInfo("ext2"));
extension_info->wants_to_be_default_engine = true;
TemplateURL* ext_dse_ptr = model()->AddExtensionControlledTURL(
std::move(ext_dse), std::move(extension_info));
@@ -1504,8 +1501,7 @@ TEST_F(TemplateURLServiceTest, ExtensionEngineVsPolicy) {
std::string(), std::string(), std::string(), true, true, "UTF-8", Time(),
Time());
std::unique_ptr<TemplateURL::AssociatedExtensionInfo> extension_info(
- new TemplateURL::AssociatedExtensionInfo(
- TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1"));
+ new TemplateURL::AssociatedExtensionInfo("ext1"));
extension_info->wants_to_be_default_engine = true;
TemplateURL* ext_dse_ptr = model()->AddExtensionControlledTURL(
std::move(ext_dse), std::move(extension_info));

Powered by Google App Engine
This is Rietveld 408576698