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

Side by Side Diff: chrome/browser/extensions/content_script_apitest.cc

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit Created 6 years, 1 month 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_app_sorting.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698