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

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

Issue 1414223005: Remove URLs from chrome.tabs.executeScript permission warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test case Created 5 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/prefs/incognito_mode_prefs.h" 8 #include "chrome/browser/prefs/incognito_mode_prefs.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 true); 216 true);
217 ASSERT_TRUE(RunExtensionSubtest("tabs/capture_visible_tab", 217 ASSERT_TRUE(RunExtensionSubtest("tabs/capture_visible_tab",
218 "test_disabled.html")) << message_; 218 "test_disabled.html")) << message_;
219 } 219 }
220 220
221 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TabsOnUpdated) { 221 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TabsOnUpdated) {
222 ASSERT_TRUE(RunExtensionTest("tabs/on_updated")) << message_; 222 ASSERT_TRUE(RunExtensionTest("tabs/on_updated")) << message_;
223 } 223 }
224 224
225 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TabsNoPermissions) { 225 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TabsNoPermissions) {
226 host_resolver()->AddRule("a.com", "127.0.0.1");
227 ASSERT_TRUE(StartEmbeddedTestServer());
226 ASSERT_TRUE(RunExtensionTest("tabs/no_permissions")) << message_; 228 ASSERT_TRUE(RunExtensionTest("tabs/no_permissions")) << message_;
227 } 229 }
228 230
229 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, UpdateWindowResize) { 231 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, UpdateWindowResize) {
230 ASSERT_TRUE(RunExtensionTest("window_update/resize")) << message_; 232 ASSERT_TRUE(RunExtensionTest("window_update/resize")) << message_;
231 } 233 }
232 234
233 #if defined(OS_WIN) 235 #if defined(OS_WIN)
234 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FocusWindowDoesNotUnmaximize) { 236 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FocusWindowDoesNotUnmaximize) {
235 HWND window = 237 HWND window =
(...skipping 22 matching lines...) Expand all
258 << message_; 260 << message_;
259 } 261 }
260 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_GetViewsOfCreatedWindow) { 262 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_GetViewsOfCreatedWindow) {
261 ASSERT_TRUE(RunExtensionSubtest("tabs/basics", "get_views_window.html")) 263 ASSERT_TRUE(RunExtensionSubtest("tabs/basics", "get_views_window.html"))
262 << message_; 264 << message_;
263 } 265 }
264 266
265 // Adding a new test? Awesome. But API tests are the old hotness. The new 267 // Adding a new test? Awesome. But API tests are the old hotness. The new
266 // hotness is extension_function_test_utils. See tabs_test.cc for an example. 268 // hotness is extension_function_test_utils. See tabs_test.cc for an example.
267 // We are trying to phase out many uses of API tests as they tend to be flaky. 269 // We are trying to phase out many uses of API tests as they tend to be flaky.
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_test.cc ('k') | chrome/test/data/extensions/api_test/active_tab/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698