| 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 #ifndef CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ | 5 #ifndef CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ |
| 6 #define CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ | 6 #define CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 explicit ChromeTestLauncherDelegate(ChromeTestSuiteRunner* runner); | 29 explicit ChromeTestLauncherDelegate(ChromeTestSuiteRunner* runner); |
| 30 ~ChromeTestLauncherDelegate() override; | 30 ~ChromeTestLauncherDelegate() override; |
| 31 | 31 |
| 32 protected: | 32 protected: |
| 33 // content::TestLauncherDelegate: | 33 // content::TestLauncherDelegate: |
| 34 int RunTestSuite(int argc, char** argv) override; | 34 int RunTestSuite(int argc, char** argv) override; |
| 35 bool AdjustChildProcessCommandLine( | 35 bool AdjustChildProcessCommandLine( |
| 36 base::CommandLine* command_line, | 36 base::CommandLine* command_line, |
| 37 const base::FilePath& temp_data_dir) override; | 37 const base::FilePath& temp_data_dir) override; |
| 38 content::ContentMainDelegate* CreateContentMainDelegate() override; | 38 content::ContentMainDelegate* CreateContentMainDelegate() override; |
| 39 void PreSharding() override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 ChromeTestSuiteRunner* runner_; | 42 ChromeTestSuiteRunner* runner_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(ChromeTestLauncherDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(ChromeTestLauncherDelegate); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 // Launches Chrome browser tests. |default_jobs| is number of test jobs to be | 47 // Launches Chrome browser tests. |default_jobs| is number of test jobs to be |
| 47 // run in parallel, unless overridden from the command line. Returns exit code. | 48 // run in parallel, unless overridden from the command line. Returns exit code. |
| 48 // Does not take ownership of ChromeTestLauncherDelegate. | 49 // Does not take ownership of ChromeTestLauncherDelegate. |
| 49 int LaunchChromeTests(int default_jobs, | 50 int LaunchChromeTests(int default_jobs, |
| 50 content::TestLauncherDelegate* delegate, | 51 content::TestLauncherDelegate* delegate, |
| 51 int argc, | 52 int argc, |
| 52 char** argv); | 53 char** argv); |
| 53 | 54 |
| 54 #endif // CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ | 55 #endif // CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ |
| OLD | NEW |