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

Unified Diff: chrome/browser/extensions/extension_resource_request_policy_apitest.cc

Issue 8849010: Add 'web_accessible_resource" keyword for version 2 extension manifests. This makes extension res... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | chrome/common/extensions/extension.h » ('j') | chrome/common/extensions/manifest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_resource_request_policy_apitest.cc
===================================================================
--- chrome/browser/extensions/extension_resource_request_policy_apitest.cc (revision 113054)
+++ chrome/browser/extensions/extension_resource_request_policy_apitest.cc (working copy)
@@ -116,3 +116,19 @@
"extension_resource_request_policy/extension2",
"video.html"));
}
+
+IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest,
+ WebAccessibleResources) {
+ EXPECT_TRUE(RunExtensionSubtest(
+ "extension_resource_request_policy/web_accessible",
+ "accessible_resource.html"));
+
+ EXPECT_TRUE(RunExtensionSubtest(
+ "extension_resource_request_policy/web_accessible",
+ "nonaccessible_resource.html"));
+
+ EXPECT_TRUE(RunExtensionSubtest(
+ "extension_resource_request_policy/web_accessible",
+ "nonexistent_resource.html"));
+}
+
« no previous file with comments | « no previous file | chrome/common/extensions/extension.h » ('j') | chrome/common/extensions/manifest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698