OLD | NEW |
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 Loading... |
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 |
OLD | NEW |