| OLD | NEW |
| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
| 11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/extensions/unpacked_installer.h" | 16 #include "chrome/browser/extensions/unpacked_installer.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/browser/ui/extensions/app_launch_params.h" | 19 #include "chrome/browser/ui/extensions/app_launch_params.h" |
| 20 #include "chrome/browser/ui/extensions/application_launch.h" | 20 #include "chrome/browser/ui/extensions/application_launch.h" |
| 21 #include "chrome/common/extensions/extension_process_policy.h" | |
| 22 #include "chrome/test/base/ui_test_utils.h" | 21 #include "chrome/test/base/ui_test_utils.h" |
| 23 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
| 24 #include "extensions/browser/api/test/test_api.h" | 23 #include "extensions/browser/api/test/test_api.h" |
| 25 #include "extensions/browser/extension_registry.h" | 24 #include "extensions/browser/extension_registry.h" |
| 26 #include "extensions/browser/extension_system.h" | 25 #include "extensions/browser/extension_system.h" |
| 27 #include "extensions/common/constants.h" | 26 #include "extensions/common/constants.h" |
| 28 #include "extensions/common/extension.h" | 27 #include "extensions/common/extension.h" |
| 29 #include "extensions/common/extension_set.h" | 28 #include "extensions/common/extension_set.h" |
| 30 #include "extensions/common/switches.h" | 29 #include "extensions/common/switches.h" |
| 31 #include "extensions/test/result_catcher.h" | 30 #include "extensions/test/result_catcher.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 } | 444 } |
| 446 | 445 |
| 447 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { | 446 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { |
| 448 ExtensionBrowserTest::SetUpCommandLine(command_line); | 447 ExtensionBrowserTest::SetUpCommandLine(command_line); |
| 449 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); | 448 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); |
| 450 // Backgrounded renderer processes run at a lower priority, causing the | 449 // Backgrounded renderer processes run at a lower priority, causing the |
| 451 // tests to take more time to complete. Disable backgrounding so that the | 450 // tests to take more time to complete. Disable backgrounding so that the |
| 452 // tests don't time out. | 451 // tests don't time out. |
| 453 command_line->AppendSwitch(switches::kDisableRendererBackgrounding); | 452 command_line->AppendSwitch(switches::kDisableRendererBackgrounding); |
| 454 } | 453 } |
| OLD | NEW |