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/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/path_service.h" | |
13 #include "base/process/memory.h" | 12 #include "base/process/memory.h" |
14 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
15 #include "base/test/test_suite.h" | 14 #include "base/test/test_suite.h" |
16 #include "base/test/test_timeouts.h" | 15 #include "base/test/test_timeouts.h" |
17 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
18 #include "content/public/test/content_test_suite_base.h" | 17 #include "content/public/test/content_test_suite_base.h" |
19 #include "content/shell/app/shell_main_delegate.h" | 18 #include "content/shell/app/shell_main_delegate.h" |
20 #include "content/shell/common/shell_switches.h" | 19 #include "content/shell/common/shell_switches.h" |
21 #include "media/base/media_switches.h" | 20 #include "media/base/media_switches.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); | 121 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); |
123 }; | 122 }; |
124 | 123 |
125 } // namespace content | 124 } // namespace content |
126 | 125 |
127 int main(int argc, char** argv) { | 126 int main(int argc, char** argv) { |
128 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); | 127 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); |
129 content::ContentTestLauncherDelegate launcher_delegate; | 128 content::ContentTestLauncherDelegate launcher_delegate; |
130 return LaunchTests(&launcher_delegate, default_jobs, argc, argv); | 129 return LaunchTests(&launcher_delegate, default_jobs, argc, argv); |
131 } | 130 } |
OLD | NEW |