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

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

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added Autocomplete unit tests. Created 8 years, 6 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 deba940c21beec65a3f69ce21bd171404229a115..7dd38b570fe76325b8d0460a3c228e36ead2dbf4 100644
--- a/chrome/browser/search_engines/template_url_service_unittest.cc
+++ b/chrome/browser/search_engines/template_url_service_unittest.cc
@@ -1013,7 +1013,7 @@ TEST_F(TemplateURLServiceTest, ChangeGoogleBaseValue) {
EXPECT_EQ("google.co.uk", t_url->url_ref().GetHost());
EXPECT_EQ(ASCIIToUTF16("google.co.uk"), t_url->keyword());
EXPECT_EQ("http://google.co.uk/?q=x", t_url->url_ref().ReplaceSearchTerms(
- ASCIIToUTF16("x"), TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16()));
+ TemplateURLRef::SearchTermsArgs(ASCIIToUTF16("x"))));
// Now add a manual entry and then change the Google base URL such that the
// autogenerated Google search keyword would conflict.
@@ -1060,8 +1060,8 @@ TEST_F(TemplateURLServiceTest, GenerateVisitOnKeyword) {
HistoryService* history =
test_util_.profile()->GetHistoryService(Profile::EXPLICIT_ACCESS);
history->AddPage(
- GURL(t_url->url_ref().ReplaceSearchTerms(ASCIIToUTF16("blah"),
- TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())),
+ GURL(t_url->url_ref().ReplaceSearchTerms(
+ TemplateURLRef::SearchTermsArgs(ASCIIToUTF16("blah")))),
NULL, 0, GURL(), content::PAGE_TRANSITION_KEYWORD,
history::RedirectList(), history::SOURCE_BROWSED, false);

Powered by Google App Engine
This is Rietveld 408576698