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

Unified Diff: extensions/common/csp_validator_unittest.cc

Issue 2574763003: Remove chrome-extension-resource:// scheme (Closed)
Patch Set: Remove BUILD reference to resources/extension outdir. Created 4 years 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
« no previous file with comments | « extensions/common/csp_validator.cc ('k') | extensions/common/file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/csp_validator_unittest.cc
diff --git a/extensions/common/csp_validator_unittest.cc b/extensions/common/csp_validator_unittest.cc
index d9887412a00181d06514b1f0a34c01d9ad5fef12..bb85ea5f44ce5e0a221e849a0a13addfa16e79f7 100644
--- a/extensions/common/csp_validator_unittest.cc
+++ b/extensions/common/csp_validator_unittest.cc
@@ -124,15 +124,13 @@ TEST(ExtensionCSPValidator, IsLegal) {
}
TEST(ExtensionCSPValidator, IsSecure) {
- EXPECT_TRUE(CheckSanitizeCSP(
- std::string(), OPTIONS_ALLOW_UNSAFE_EVAL,
- "script-src 'self' chrome-extension-resource:; object-src 'self';",
- MissingSecureSrcWarning("script-src"),
- MissingSecureSrcWarning("object-src")));
+ EXPECT_TRUE(CheckSanitizeCSP(std::string(), OPTIONS_ALLOW_UNSAFE_EVAL,
+ "script-src 'self'; object-src 'self';",
+ MissingSecureSrcWarning("script-src"),
+ MissingSecureSrcWarning("object-src")));
EXPECT_TRUE(CheckSanitizeCSP(
"img-src https://google.com", OPTIONS_ALLOW_UNSAFE_EVAL,
- "img-src https://google.com; script-src 'self'"
- " chrome-extension-resource:; object-src 'self';",
+ "img-src https://google.com; script-src 'self'; object-src 'self';",
MissingSecureSrcWarning("script-src"),
MissingSecureSrcWarning("object-src")));
EXPECT_TRUE(CheckSanitizeCSP(
« no previous file with comments | « extensions/common/csp_validator.cc ('k') | extensions/common/file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698