OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/strings/stringprintf.h" | 5 #include "base/strings/stringprintf.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/browser/extensions/api/permissions/permissions_api.h" | 7 #include "chrome/browser/extensions/api/permissions/permissions_api.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptExtensionProcess) { | 105 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptExtensionProcess) { |
106 ASSERT_TRUE(StartEmbeddedTestServer()); | 106 ASSERT_TRUE(StartEmbeddedTestServer()); |
107 ASSERT_TRUE( | 107 ASSERT_TRUE( |
108 RunExtensionTest("content_scripts/extension_process")) << message_; | 108 RunExtensionTest("content_scripts/extension_process")) << message_; |
109 } | 109 } |
110 | 110 |
111 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptFragmentNavigation) { | 111 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptFragmentNavigation) { |
112 ASSERT_TRUE(StartEmbeddedTestServer()); | 112 ASSERT_TRUE(StartEmbeddedTestServer()); |
113 const char* extension_name = "content_scripts/fragment"; | 113 const char extension_name[] = "content_scripts/fragment"; |
114 ASSERT_TRUE(RunExtensionTest(extension_name)) << message_; | 114 ASSERT_TRUE(RunExtensionTest(extension_name)) << message_; |
115 } | 115 } |
116 | 116 |
117 // Times out on Linux: http://crbug.com/163097 | 117 // Times out on Linux: http://crbug.com/163097 |
118 #if defined(OS_LINUX) | 118 #if defined(OS_LINUX) |
119 #define MAYBE_ContentScriptIsolatedWorlds DISABLED_ContentScriptIsolatedWorlds | 119 #define MAYBE_ContentScriptIsolatedWorlds DISABLED_ContentScriptIsolatedWorlds |
120 #else | 120 #else |
121 #define MAYBE_ContentScriptIsolatedWorlds ContentScriptIsolatedWorlds | 121 #define MAYBE_ContentScriptIsolatedWorlds ContentScriptIsolatedWorlds |
122 #endif | 122 #endif |
123 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_ContentScriptIsolatedWorlds) { | 123 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_ContentScriptIsolatedWorlds) { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 ASSERT_TRUE(StartEmbeddedTestServer()); | 280 ASSERT_TRUE(StartEmbeddedTestServer()); |
281 ASSERT_TRUE(RunExtensionTest("content_scripts/permissions")) << message_; | 281 ASSERT_TRUE(RunExtensionTest("content_scripts/permissions")) << message_; |
282 } | 282 } |
283 | 283 |
284 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptBypassPageCSP) { | 284 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptBypassPageCSP) { |
285 ASSERT_TRUE(StartEmbeddedTestServer()); | 285 ASSERT_TRUE(StartEmbeddedTestServer()); |
286 ASSERT_TRUE(RunExtensionTest("content_scripts/bypass_page_csp")) << message_; | 286 ASSERT_TRUE(RunExtensionTest("content_scripts/bypass_page_csp")) << message_; |
287 } | 287 } |
288 | 288 |
289 } // namespace extensions | 289 } // namespace extensions |
OLD | NEW |