| 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 BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 5 #ifndef BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 std::set<std::string> tests_to_retry_; | 174 std::set<std::string> tests_to_retry_; |
| 175 | 175 |
| 176 // Result to be returned from Run. | 176 // Result to be returned from Run. |
| 177 bool run_result_; | 177 bool run_result_; |
| 178 | 178 |
| 179 TestResultsTracker results_tracker_; | 179 TestResultsTracker results_tracker_; |
| 180 | 180 |
| 181 // Watchdog timer to make sure we do not go without output for too long. | 181 // Watchdog timer to make sure we do not go without output for too long. |
| 182 DelayTimer<TestLauncher> watchdog_timer_; | 182 DelayTimer<TestLauncher> watchdog_timer_; |
| 183 | 183 |
| 184 // Number of jobs to run in parallel. |
| 185 size_t parallel_jobs_; |
| 186 |
| 184 // Worker pool used to launch processes in parallel. | 187 // Worker pool used to launch processes in parallel. |
| 185 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_; | 188 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_; |
| 186 | 189 |
| 187 DISALLOW_COPY_AND_ASSIGN(TestLauncher); | 190 DISALLOW_COPY_AND_ASSIGN(TestLauncher); |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 // Extract part from |full_output| that applies to |result|. | 193 // Extract part from |full_output| that applies to |result|. |
| 191 std::string GetTestOutputSnippet(const TestResult& result, | 194 std::string GetTestOutputSnippet(const TestResult& result, |
| 192 const std::string& full_output); | 195 const std::string& full_output); |
| 193 | 196 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 209 // running after |timeout|, it is terminated and |*was_timeout| is set to true. | 212 // running after |timeout|, it is terminated and |*was_timeout| is set to true. |
| 210 // Returns exit code of the process. | 213 // Returns exit code of the process. |
| 211 int LaunchChildTestProcessWithOptions(const CommandLine& command_line, | 214 int LaunchChildTestProcessWithOptions(const CommandLine& command_line, |
| 212 const LaunchOptions& options, | 215 const LaunchOptions& options, |
| 213 base::TimeDelta timeout, | 216 base::TimeDelta timeout, |
| 214 bool* was_timeout); | 217 bool* was_timeout); |
| 215 | 218 |
| 216 } // namespace base | 219 } // namespace base |
| 217 | 220 |
| 218 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 221 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| OLD | NEW |