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

Unified Diff: chrome/common/instant_types_unittest.cc

Issue 922793002: Add an alternate contextual search url to extract the search terms from window.location.hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the version number. Created 5 years, 10 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
« no previous file with comments | « chrome/common/instant_types.cc ('k') | components/search_engines/prepopulated_engines.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/instant_types_unittest.cc
diff --git a/chrome/common/instant_types_unittest.cc b/chrome/common/instant_types_unittest.cc
index 47ebebdfd7fa92d66d47c9efaa467fb5419d5bfe..6efa0afcddadee22b1a3719a581dfd55f2280a01 100644
--- a/chrome/common/instant_types_unittest.cc
+++ b/chrome/common/instant_types_unittest.cc
@@ -49,6 +49,13 @@ TEST(EmbeddedSearchRequestParams, ExtractParams) {
"utf-8",
"chrome.2.65.j04"
},
+ {"https://foo/search?q=google#q=fun&oq=f&ie=utf-8&aqs=chrome.0.1",
+ "fun",
+ "f",
+ "",
+ "utf-8",
+ "chrome.0.1"
+ },
};
for (size_t i = 0; i < arraysize(cases); ++i) {
« no previous file with comments | « chrome/common/instant_types.cc ('k') | components/search_engines/prepopulated_engines.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698