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

Unified Diff: content/common/origin_util_unittest.cc

Issue 1143633003: Add more test cases for IsOriginSecure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try different ports, too. Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/origin_util_unittest.cc
diff --git a/content/common/origin_util_unittest.cc b/content/common/origin_util_unittest.cc
index 2991a9d960b7f8afc79ea937c68bee0970d5b8bc..49598f659b8601c2ed5bf524d53743c62a9652a4 100644
--- a/content/common/origin_util_unittest.cc
+++ b/content/common/origin_util_unittest.cc
@@ -20,6 +20,12 @@ TEST(URLSchemesTest, IsOriginSecure) {
EXPECT_FALSE(IsOriginSecure(GURL("ws://example.com/fun.html")));
EXPECT_TRUE(IsOriginSecure(GURL("http://localhost/fun.html")));
+ EXPECT_TRUE(IsOriginSecure(GURL("http://pumpkin.localhost/fun.html")));
+ EXPECT_TRUE(
+ IsOriginSecure(GURL("http://crumpet.pumpkin.localhost/fun.html")));
+ EXPECT_TRUE(IsOriginSecure(GURL("http://pumpkin.localhost:8080/fun.html")));
+ EXPECT_TRUE(
+ IsOriginSecure(GURL("http://crumpet.pumpkin.localhost:3000/fun.html")));
EXPECT_FALSE(IsOriginSecure(GURL("http://localhost.com/fun.html")));
EXPECT_TRUE(IsOriginSecure(GURL("https://localhost.com/fun.html")));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698