| 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 "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "chrome/browser/browser.h" | |
| 10 #include "chrome/browser/extensions/extension_test_api.h" | 9 #include "chrome/browser/extensions/extension_test_api.h" |
| 11 #include "chrome/browser/extensions/extensions_service.h" | 10 #include "chrome/browser/extensions/extensions_service.h" |
| 12 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
| 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
| 14 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 const char kTestServerPort[] = "testServer.port"; | 18 const char kTestServerPort[] = "testServer.port"; |
| 19 | 19 |
| 20 }; // namespace | 20 }; // namespace |
| 21 | 21 |
| 22 ExtensionApiTest::ResultCatcher::ResultCatcher() | 22 ExtensionApiTest::ResultCatcher::ResultCatcher() |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 test_config_->SetInteger(kTestServerPort, | 203 test_config_->SetInteger(kTestServerPort, |
| 204 test_server()->host_port_pair().port()); | 204 test_server()->host_port_pair().port()); |
| 205 | 205 |
| 206 return true; | 206 return true; |
| 207 } | 207 } |
| 208 | 208 |
| 209 void ExtensionApiTest::SetUpCommandLine(CommandLine* command_line) { | 209 void ExtensionApiTest::SetUpCommandLine(CommandLine* command_line) { |
| 210 ExtensionBrowserTest::SetUpCommandLine(command_line); | 210 ExtensionBrowserTest::SetUpCommandLine(command_line); |
| 211 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); | 211 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); |
| 212 } | 212 } |
| OLD | NEW |