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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/test/base/ui_test_utils.h" 8 #include "chrome/test/base/ui_test_utils.h"
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #define MAYBE_Video FLAKY_Video 109 #define MAYBE_Video FLAKY_Video
110 #else 110 #else
111 #define MAYBE_Video Video 111 #define MAYBE_Video Video
112 #endif 112 #endif
113 113
114 IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest, MAYBE_Video) { 114 IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest, MAYBE_Video) {
115 EXPECT_TRUE(RunExtensionSubtest( 115 EXPECT_TRUE(RunExtensionSubtest(
116 "extension_resource_request_policy/extension2", 116 "extension_resource_request_policy/extension2",
117 "video.html")); 117 "video.html"));
118 } 118 }
119
120 IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest,
121 WebAccessibleResources) {
122 EXPECT_TRUE(RunExtensionSubtest(
123 "extension_resource_request_policy/web_accessible",
124 "accessible_resource.html"));
125
126 EXPECT_TRUE(RunExtensionSubtest(
127 "extension_resource_request_policy/web_accessible",
128 "nonaccessible_resource.html"));
129
130 EXPECT_TRUE(RunExtensionSubtest(
131 "extension_resource_request_policy/web_accessible",
132 "nonexistent_resource.html"));
133 }
134
OLDNEW
« 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