| Index: third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp
|
| index e595028901c56cf6adf2fc10023237dec39682c9..39fb4f6075192e30dc235251a1b9dda66756bb43 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp
|
| @@ -388,6 +388,12 @@ TEST_F(CSPSourceTest, IsSimilar) {
|
| {"wss", "example.com", "/", 0},
|
| true}, // use default port
|
| {{"http", "example.com", "/", 80}, {"http", "example.com", "/", 0}, true},
|
| + {{"http", "example.com", "/", 80},
|
| + {"https", "example.com", "/", 443},
|
| + true},
|
| + {{"http", "example.com", "/", 80},
|
| + {"https", "example.com", "/", 444},
|
| + false},
|
| // Paths
|
| {{"http", "example.com", "/", 0},
|
| {"http", "example.com", "/1.html", 0},
|
| @@ -600,6 +606,18 @@ TEST_F(CSPSourceTest, Intersect) {
|
| CSPSource::NoWildcard},
|
| {"http", "example.com", "/", 80, CSPSource::NoWildcard,
|
| CSPSource::NoWildcard}},
|
| + {{"http", "example.com", "/", 80, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard},
|
| + {"https", "example.com", "/", 443, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard},
|
| + {"https", "example.com", "/", 443, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard}},
|
| + {{"https", "example.com", "/", 443, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard},
|
| + {"http", "example.com", "/", 80, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard},
|
| + {"https", "example.com", "/", 443, CSPSource::NoWildcard,
|
| + CSPSource::NoWildcard}},
|
| // Paths
|
| {{"http", "example.com", "/", 0, CSPSource::NoWildcard,
|
| CSPSource::NoWildcard},
|
|
|