Chromium Code Reviews| 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..48d275786f55c3c943b3634384b8ad10edd0e6c1 100644 |
| --- a/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp |
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp |
| @@ -194,6 +194,9 @@ TEST_F(CSPSourceTest, Subsumes) { |
| {{"https", "/page1.html", 0}, {"https", "/page1.html", 0}, true, true}, |
| {{"http", "/page1.html", 70}, {"http", "/page1.html", 70}, true, true}, |
| {{"https", "/page1.html", 70}, {"https", "/page1.html", 70}, true, true}, |
| + {{"http", "/", 0}, {"http", "", 0}, true, true}, |
| + {{"http", "/", 80}, {"http", "", 80}, true, true}, |
| + {{"http", "/", 80}, {"https", "", 443}, false, true}, |
|
amalika
2016/12/08 09:01:59
This also tests when A and B are swapped. Would th
|
| // One stronger signal in the first CSPSource |
| {{"https", "/", 0}, {"http", "/", 0}, true, false}, |
| {{"http", "/page1.html", 0}, {"http", "/", 0}, true, false}, |