Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / base / browser_tests_main.cc
blob4806db51f2b8dd424001c5e3dbfcf55da750081a
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.
5 #include <algorithm>
7 #include "base/sys_info.h"
8 #include "chrome/test/base/chrome_test_launcher.h"
9 #include "chrome/test/base/chrome_test_suite.h"
11 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner {
12 public:
13 int RunTestSuite(int argc, char** argv) override {
14 return ChromeTestSuite(argc, argv).Run();
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);