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 "content/public/test/test_launcher.h" | 5 #include "content/public/test/test_launcher.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/leak_annotations.h" | 8 #include "base/debug/leak_annotations.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/process/process_metrics.h" | 13 #include "base/process/process_metrics.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/test/test_file_util.h" | 16 #include "base/test/test_file_util.h" |
17 #include "chrome/app/chrome_main_delegate.h" | 17 #include "chrome/app/chrome_main_delegate.h" |
18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/test/base/chrome_test_suite.h" | 20 #include "chrome/test/base/chrome_test_suite.h" |
21 #include "chrome/test/base/test_switches.h" | 21 #include "chrome/test/base/test_switches.h" |
22 #include "content/public/app/content_main.h" | 22 #include "content/public/app/content_main.h" |
23 #include "content/public/browser/browser_thread.h" | |
24 #include "content/public/test/test_utils.h" | 23 #include "content/public/test/test_utils.h" |
25 #include "ui/base/test/ui_controls.h" | 24 #include "ui/base/test/ui_controls.h" |
26 | 25 |
27 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
28 #include "chrome/browser/chrome_browser_application_mac.h" | 27 #include "chrome/browser/chrome_browser_application_mac.h" |
29 #endif // defined(OS_MACOSX) | 28 #endif // defined(OS_MACOSX) |
30 | 29 |
31 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
32 #include "content/public/app/startup_helper_win.h" | 31 #include "content/public/app/startup_helper_win.h" |
33 #include "sandbox/win/src/sandbox_types.h" | 32 #include "sandbox/win/src/sandbox_types.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // all other code. | 121 // all other code. |
123 chrome::ChromeBreakpadClient* breakpad_client = | 122 chrome::ChromeBreakpadClient* breakpad_client = |
124 new chrome::ChromeBreakpadClient(); | 123 new chrome::ChromeBreakpadClient(); |
125 ANNOTATE_LEAKING_OBJECT_PTR(breakpad_client); | 124 ANNOTATE_LEAKING_OBJECT_PTR(breakpad_client); |
126 breakpad::SetBreakpadClient(breakpad_client); | 125 breakpad::SetBreakpadClient(breakpad_client); |
127 #endif | 126 #endif |
128 | 127 |
129 ChromeTestLauncherDelegate launcher_delegate; | 128 ChromeTestLauncherDelegate launcher_delegate; |
130 return content::LaunchTests(&launcher_delegate, default_jobs, argc, argv); | 129 return content::LaunchTests(&launcher_delegate, default_jobs, argc, argv); |
131 } | 130 } |
OLD | NEW |