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

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

Issue 9811022: Misc. small cleanups to minimize TemplateURL refactoring diffs: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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_sync_unittest.cc
===================================================================
--- chrome/browser/search_engines/template_url_service_sync_unittest.cc (revision 128075)
+++ chrome/browser/search_engines/template_url_service_sync_unittest.cc (working copy)
@@ -336,7 +336,6 @@
model()->Add(CreateTestTemplateURL(ASCIIToUTF16("key2"), "http://key2.com"));
TemplateURL* managed_turl = CreateTestTemplateURL(ASCIIToUTF16("key3"),
"http://key3.com", std::string(), 100, true);
- managed_turl->set_created_by_policy(true);
model()->Add(managed_turl);
SyncDataList all_sync_data =
model()->GetAllSyncData(syncable::SEARCH_ENGINES);
@@ -359,7 +358,6 @@
scoped_ptr<TemplateURL> turl(CreateTestTemplateURL(ASCIIToUTF16("key1"),
"http://new.com", "xyz"));
string16 new_keyword = model()->UniquifyKeyword(*turl);
-
EXPECT_EQ(ASCIIToUTF16("new.com"), new_keyword);
EXPECT_EQ(NULL, model()->GetTemplateURLForKeyword(new_keyword));
model()->Add(CreateTestTemplateURL(ASCIIToUTF16("new.com"), "http://new.com",
@@ -370,7 +368,6 @@
// used.
turl.reset(CreateTestTemplateURL(ASCIIToUTF16("key1"), "http://new.com"));
new_keyword = model()->UniquifyKeyword(*turl);
-
EXPECT_EQ(ASCIIToUTF16("key1_"), new_keyword);
EXPECT_EQ(NULL, model()->GetTemplateURLForKeyword(new_keyword));
model()->Add(CreateTestTemplateURL(ASCIIToUTF16("key1_"), "http://new.com"));

Powered by Google App Engine
This is Rietveld 408576698