| Index: third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| index 106e8e72f16939961020c1bffd149182cce45d3b..90d38a39b4b1e7068126878a4e5398a488374255 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| @@ -146,12 +146,16 @@ TEST_F(CSPSourceListTest, WildcardMatching)
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "https://foo.example2.com/bar/")));
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "http://foo.test/")));
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "http://foo.bar.test/")));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/foo/")));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com:8000/foo/")));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com:9000/foo/")));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://foo.test/")));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://foo.bar.test/")));
|
|
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "https://example1.com:8000/foo")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "https://example2.com:8000/bar")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "https://foo.example2.com:8000/bar")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "https://example2.foo.com/bar")));
|
| - EXPECT_FALSE(sourceList.matches(KURL(base, "https://foo.test/")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "http://foo.test.bar/")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "https://example2.com/bar/")));
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "http://test/")));
|
| @@ -168,9 +172,10 @@ TEST_F(CSPSourceListTest, RedirectMatching)
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "http://example1.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
| EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
|
|
| EXPECT_FALSE(sourceList.matches(KURL(base, "http://example3.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_FALSE(sourceList.matches(KURL(base, "https://example1.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| }
|
|
|
| } // namespace
|
|
|