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 3 // found in the LICENSE file. 4 5 #include <algorithm> 6 7 #include "base/sys_info.h" 8 #include "chrome/test/base/chrome_test_launcher.h" 9 #include "chrome/test/base/chrome_test_suite.h" 10 11 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner { 12 public: 13 virtual int RunTestSuite(int argc, char** argv) OVERRIDE { 14 return ChromeTestSuite(argc, argv).Run(); 15 } 16 }; 17 18 int main(int argc, char** argv) { 19 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); 20 ChromeBrowserTestSuiteRunner runner; 21 return LaunchChromeTests(default_jobs, &runner, argc, argv); 22 } 23