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

Unified Diff: chrome/browser/search/search_unittest.cc

Issue 23455047: InstantExtended: Send search URLs to renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More browsertest fixes Created 7 years, 3 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/browser/search/search.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search_unittest.cc
diff --git a/chrome/browser/search/search_unittest.cc b/chrome/browser/search/search_unittest.cc
index 9a1fb41849b7ff51ff5907db5d388e8685a22e8b..dd67f62bcdacc88727a08782b3545398e1e60fa3 100644
--- a/chrome/browser/search/search_unittest.cc
+++ b/chrome/browser/search/search_unittest.cc
@@ -26,6 +26,7 @@
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/renderer_preferences.h"
+#include "url/gurl.h"
namespace chrome {
@@ -880,4 +881,11 @@ TEST_F(SearchTest, IsNTPURL) {
EXPECT_FALSE(chrome::IsNTPURL(search_url_without_search_terms, NULL));
}
+TEST_F(SearchTest, GetSearchURLs) {
+ std::vector<GURL> search_urls = GetSearchURLs(profile());
+ EXPECT_EQ(2U, search_urls.size());
+ EXPECT_EQ("http://foo.com/alt#quux=", search_urls[0].spec());
+ EXPECT_EQ("http://foo.com/url?bar=", search_urls[1].spec());
+}
+
} // namespace chrome
« no previous file with comments | « chrome/browser/search/search.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698