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

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: Removed SupportsAssistedQueryStats. 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 bf72cb1cff77125491173db58eb4270aaa7138b8..c58d732b4c9f6b37aa4ce541ebef74903edf0183 100644
--- a/chrome/browser/search_engines/template_url_service_unittest.cc
+++ b/chrome/browser/search_engines/template_url_service_unittest.cc
@@ -1008,7 +1008,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()));
+ SearchTermsArgs(ASCIIToUTF16("x"))));
// Now add a manual entry and then change the Google base URL such that the
// autogenerated Google search keyword would conflict.
@@ -1055,8 +1055,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(
+ 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