Commit f9094b37 authored by palmer's avatar palmer Committed by Commit bot

Add more test cases for IsOriginSecure.

BUG=441605
TBR=davidben,mmenke

Review URL: https://codereview.chromium.org/1143633003

Cr-Commit-Position: refs/heads/master@{#330145}
parent 9fdec26e
...@@ -20,6 +20,12 @@ TEST(URLSchemesTest, IsOriginSecure) { ...@@ -20,6 +20,12 @@ TEST(URLSchemesTest, IsOriginSecure) {
EXPECT_FALSE(IsOriginSecure(GURL("ws://example.com/fun.html"))); EXPECT_FALSE(IsOriginSecure(GURL("ws://example.com/fun.html")));
EXPECT_TRUE(IsOriginSecure(GURL("http://localhost/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_FALSE(IsOriginSecure(GURL("http://localhost.com/fun.html")));
EXPECT_TRUE(IsOriginSecure(GURL("https://localhost.com/fun.html"))); EXPECT_TRUE(IsOriginSecure(GURL("https://localhost.com/fun.html")));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment