Index: extensions/common/csp_validator_unittest.cc |
diff --git a/extensions/common/csp_validator_unittest.cc b/extensions/common/csp_validator_unittest.cc |
index 9778a5a22d671a41f769b9a9cbedebe9a2f7b2a0..741007fdbbd6584d525909e9858678227be77986 100644 |
--- a/extensions/common/csp_validator_unittest.cc |
+++ b/extensions/common/csp_validator_unittest.cc |
@@ -98,7 +98,7 @@ TEST(ExtensionCSPValidator, IsSecure) { |
"default-src 'self' *:*/", Manifest::TYPE_EXTENSION)); |
EXPECT_FALSE(ContentSecurityPolicyIsSecure( |
"default-src 'self' *:*/path", Manifest::TYPE_EXTENSION)); |
- EXPECT_FALSE(ContentSecurityPolicyIsSecure( |
+ EXPECT_TRUE(ContentSecurityPolicyIsSecure( |
not at google - send to devlin
2014/11/19 17:36:55
Explain why this is secure (and link to the bug).
|
"default-src 'self' https://", Manifest::TYPE_EXTENSION)); |
EXPECT_FALSE(ContentSecurityPolicyIsSecure( |
"default-src 'self' https://*:*", Manifest::TYPE_EXTENSION)); |
@@ -167,6 +167,8 @@ TEST(ExtensionCSPValidator, IsSecure) { |
"default-src 'self' https://*.googleapis.com", Manifest::TYPE_EXTENSION)); |
EXPECT_TRUE(ContentSecurityPolicyIsSecure( |
"default-src 'self' https://x.googleapis.com", Manifest::TYPE_EXTENSION)); |
+ EXPECT_TRUE(ContentSecurityPolicyIsSecure( |
not at google - send to devlin
2014/11/19 17:36:55
Ditto.
|
+ "default-src 'self' chrome-extension://", Manifest::TYPE_EXTENSION)); |
} |
TEST(ExtensionCSPValidator, IsSandboxed) { |