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

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

Issue 6260001: Cleanup: Remove unneeded chrome/browser/ui/browser.h usage.... (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 "base/string_util.h" 5 #include "base/string_util.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
9 #include "chrome/test/ui_test_utils.h" 8 #include "chrome/test/ui_test_utils.h"
10 #include "net/base/mock_host_resolver.h" 9 #include "net/base/mock_host_resolver.h"
11 10
12 class AppBackgroundPageApiTest : public ExtensionApiTest { 11 class AppBackgroundPageApiTest : public ExtensionApiTest {
13 public: 12 public:
14 void SetUpCommandLine(CommandLine* command_line) { 13 void SetUpCommandLine(CommandLine* command_line) {
15 ExtensionApiTest::SetUpCommandLine(command_line); 14 ExtensionApiTest::SetUpCommandLine(command_line);
16 command_line->AppendSwitch(switches::kDisablePopupBlocking); 15 command_line->AppendSwitch(switches::kDisablePopupBlocking);
17 } 16 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 " }" 83 " }"
85 "}", 84 "}",
86 test_server()->host_port_pair().port()); 85 test_server()->host_port_pair().port());
87 86
88 FilePath app_dir; 87 FilePath app_dir;
89 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); 88 ASSERT_TRUE(CreateApp(app_manifest, &app_dir));
90 ASSERT_TRUE(LoadExtension(app_dir)); 89 ASSERT_TRUE(LoadExtension(app_dir));
91 ASSERT_TRUE(RunExtensionTest("app_background_page/lacks_permission")) 90 ASSERT_TRUE(RunExtensionTest("app_background_page/lacks_permission"))
92 << message_; 91 << message_;
93 } 92 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_shelf.cc ('k') | chrome/browser/extensions/content_script_extension_process_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698