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

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

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_list.h" 5 #include "chrome/browser/browser_list.h"
6 #include "chrome/browser/browser_window.h" 6 #include "chrome/browser/browser_window.h"
7 #include "chrome/browser/extensions/browser_action_test_util.h" 7 #include "chrome/browser/extensions/browser_action_test_util.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/extensions/extension_test_message_listener.h" 10 #include "chrome/browser/extensions/extension_test_message_listener.h"
11 #include "chrome/browser/extensions/user_script_master.h" 11 #include "chrome/browser/extensions/user_script_master.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 13 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "chrome/test/ui_test_utils.h" 16 #include "chrome/test/ui_test_utils.h"
18 #include "net/base/mock_host_resolver.h" 17 #include "net/base/mock_host_resolver.h"
19 18
20 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoNoScript) { 19 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoNoScript) {
21 ASSERT_TRUE(StartTestServer()); 20 ASSERT_TRUE(StartTestServer());
22 21
23 // Loads a simple extension which attempts to change the title of every page 22 // Loads a simple extension which attempts to change the title of every page
24 // that loads to "modified". 23 // that loads to "modified".
25 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("incognito") 24 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("incognito")
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 185
187 Browser* incognito_browser = BrowserList::FindBrowserWithType( 186 Browser* incognito_browser = BrowserList::FindBrowserWithType(
188 browser()->profile()->GetOffTheRecordProfile(), Browser::TYPE_NORMAL, 187 browser()->profile()->GetOffTheRecordProfile(), Browser::TYPE_NORMAL,
189 false); 188 false);
190 189
191 // Simulate the incognito's browser action being clicked. 190 // Simulate the incognito's browser action being clicked.
192 BrowserActionTestUtil(incognito_browser).Press(0); 191 BrowserActionTestUtil(incognito_browser).Press(0);
193 192
194 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); 193 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
195 } 194 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_idle_apitest.cc ('k') | chrome/browser/extensions/extension_install_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698