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

Unified Diff: chrome/browser/instant/instant_test_utils.cc

Issue 12114050: [Instant] Instant Extended tests for search term extraction. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: cleaner Created 7 years, 11 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/instant/instant_test_utils.cc
diff --git a/chrome/browser/instant/instant_test_utils.cc b/chrome/browser/instant/instant_test_utils.cc
index 56aed0f51122ebd3989a6f494f229b859273ad63..194236319897976be474a3e32af5ef39ea04e73d 100644
--- a/chrome/browser/instant/instant_test_utils.cc
+++ b/chrome/browser/instant/instant_test_utils.cc
@@ -65,7 +65,12 @@ void InstantTestBase::SetupInstantUsingTemplateURL() {
ui_test_utils::WaitForTemplateURLServiceToLoad(service);
TemplateURLData data;
- data.SetURL("http://does/not/exist?q={searchTerms}");
+ // Necessary to use exact URL for search term extraction to work in
+ // InstantExtended.
+ data.SetURL(instant_url_.spec() + "?espv=1&q={searchTerms}");
sreeram 2013/02/01 22:03:24 I'd like to keep data.SetURL("http://does/not/exis
Mathieu 2013/02/04 20:37:36 Unfortunately the template URLs are looked up by d
+ data.alternate_urls.push_back(instant_url_.spec() +
+ "?espv=1#q={searchTerms}");
sreeram 2013/02/01 22:03:24 instant_url_.spec() already has "?espv=1" (in the
Mathieu 2013/02/04 20:37:36 Done.
+ data.search_terms_replacement_key = "espv";
sreeram 2013/02/01 22:03:24 Don't use "espv". Use some bogus value (here and i
Mathieu 2013/02/04 20:37:36 Done.
data.instant_url = instant_url_.spec();
TemplateURL* template_url = new TemplateURL(browser()->profile(), data);
« chrome/browser/instant/instant_test_utils.h ('K') | « chrome/browser/instant/instant_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698