| OLD | NEW |
| 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/browser.h" | |
| 7 #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" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/test/ui_test_utils.h" | 9 #include "chrome/test/ui_test_utils.h" |
| 10 #include "net/base/mock_host_resolver.h" | 10 #include "net/base/mock_host_resolver.h" |
| 11 | 11 |
| 12 class AppBackgroundPageApiTest : public ExtensionApiTest { | 12 class AppBackgroundPageApiTest : public ExtensionApiTest { |
| 13 public: | 13 public: |
| 14 void SetUpCommandLine(CommandLine* command_line) { | 14 void SetUpCommandLine(CommandLine* command_line) { |
| 15 ExtensionApiTest::SetUpCommandLine(command_line); | 15 ExtensionApiTest::SetUpCommandLine(command_line); |
| 16 command_line->AppendSwitch(switches::kDisablePopupBlocking); | 16 command_line->AppendSwitch(switches::kDisablePopupBlocking); |
| 17 } | 17 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 " }" | 83 " }" |
| 84 "}", | 84 "}", |
| 85 test_server()->host_port_pair().port()); | 85 test_server()->host_port_pair().port()); |
| 86 | 86 |
| 87 FilePath app_dir; | 87 FilePath app_dir; |
| 88 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); | 88 ASSERT_TRUE(CreateApp(app_manifest, &app_dir)); |
| 89 ASSERT_TRUE(LoadExtension(app_dir)); | 89 ASSERT_TRUE(LoadExtension(app_dir)); |
| 90 ASSERT_TRUE(RunExtensionTest("app_background_page/lacks_permission")) | 90 ASSERT_TRUE(RunExtensionTest("app_background_page/lacks_permission")) |
| 91 << message_; | 91 << message_; |
| 92 } | 92 } |
| OLD | NEW |