OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/sys_info.h" | 7 #include "base/sys_info.h" |
8 #include "chrome/test/base/chrome_test_launcher.h" | 8 #include "chrome/test/base/chrome_test_launcher.h" |
9 #include "chrome/test/base/chrome_test_suite.h" | 9 #include "chrome/test/base/chrome_test_suite.h" |
10 | 10 |
11 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner { | 11 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner { |
12 public: | 12 public: |
13 virtual int RunTestSuite(int argc, char** argv) OVERRIDE { | 13 virtual int RunTestSuite(int argc, char** argv) override { |
14 return ChromeTestSuite(argc, argv).Run(); | 14 return ChromeTestSuite(argc, argv).Run(); |
15 } | 15 } |
16 }; | 16 }; |
17 | 17 |
18 int main(int argc, char** argv) { | 18 int main(int argc, char** argv) { |
19 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); | 19 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); |
20 ChromeBrowserTestSuiteRunner runner; | 20 ChromeBrowserTestSuiteRunner runner; |
21 return LaunchChromeTests(default_jobs, &runner, argc, argv); | 21 return LaunchChromeTests(default_jobs, &runner, argc, argv); |
22 } | 22 } |
OLD | NEW |