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

Unified Diff: chrome/browser/prerender/prerender_util_unittest.cc

Issue 2649903003: [Prerender] Disallow non-standard ports for Google URLs
Patch Set: cleanup Created 3 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
« no previous file with comments | « chrome/browser/prerender/prerender_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_util_unittest.cc
diff --git a/chrome/browser/prerender/prerender_util_unittest.cc b/chrome/browser/prerender/prerender_util_unittest.cc
index 3cba3ee73249fef09fe266a5cd9cf580acdb7eba..04c7c58dba82b226e4205a912687a9d1556b7c7e 100644
--- a/chrome/browser/prerender/prerender_util_unittest.cc
+++ b/chrome/browser/prerender/prerender_util_unittest.cc
@@ -19,10 +19,8 @@ TEST(PrerenderUtilTest, DetectGWSOriginURLTest) {
EXPECT_TRUE(IsGoogleOriginURL(GURL("http://google.com")));
EXPECT_TRUE(IsGoogleOriginURL(GURL("http://WWW.GooGLE.CoM")));
EXPECT_TRUE(IsGoogleOriginURL(GURL("http://www.google.co.uk")));
- // Non-standard ports are allowed for integration tests with the embedded
- // server.
- EXPECT_TRUE(IsGoogleOriginURL(GURL("http://www.google.com:42/")));
+ EXPECT_FALSE(IsGoogleOriginURL(GURL("http://www.google.com:42/")));
EXPECT_FALSE(IsGoogleOriginURL(GURL("http://news.google.com")));
EXPECT_FALSE(IsGoogleOriginURL(GURL("http://www.chromium.org")));
EXPECT_FALSE(IsGoogleOriginURL(GURL("what://www.google.com")));
« no previous file with comments | « chrome/browser/prerender/prerender_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698