Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7417)

Unified Diff: chrome/common/extensions/csp_validator_unittest.cc

Issue 9909019: Add schema chrome-extension-resource:// for extension resources (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add tests Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/csp_validator_unittest.cc
diff --git a/chrome/common/extensions/csp_validator_unittest.cc b/chrome/common/extensions/csp_validator_unittest.cc
index b7fa4dae28cea7738fc369c71cb5b7fd8c8eb901..5b9bfbeb5d99b9420f50c1feb4c485c46c293621 100644
--- a/chrome/common/extensions/csp_validator_unittest.cc
+++ b/chrome/common/extensions/csp_validator_unittest.cc
@@ -60,6 +60,8 @@ TEST(ExtensionCSPValidator, IsSecure) {
"default-src 'self' chrome://resources"));
EXPECT_TRUE(ContentSecurityPolicyIsSecure(
"default-src 'self' chrome-extension://aabbcc"));
+ EXPECT_TRUE(ContentSecurityPolicyIsSecure(
+ "default-src 'self' chrome-extension-resource://aabbcc"));
EXPECT_FALSE(ContentSecurityPolicyIsSecure(
"default-src 'self' https:"));
EXPECT_FALSE(ContentSecurityPolicyIsSecure(

Powered by Google App Engine
This is Rietveld 408576698