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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 // Tests to retry in this iteration. | 188 // Tests to retry in this iteration. |
189 std::set<std::string> tests_to_retry_; | 189 std::set<std::string> tests_to_retry_; |
190 | 190 |
191 // Result to be returned from Run. | 191 // Result to be returned from Run. |
192 bool run_result_; | 192 bool run_result_; |
193 | 193 |
194 TestResultsTracker results_tracker_; | 194 TestResultsTracker results_tracker_; |
195 | 195 |
196 // Watchdog timer to make sure we do not go without output for too long. | 196 // Watchdog timer to make sure we do not go without output for too long. |
197 DelayTimer<TestLauncher> watchdog_timer_; | 197 DelayTimer watchdog_timer_; |
198 | 198 |
199 // Number of jobs to run in parallel. | 199 // Number of jobs to run in parallel. |
200 size_t parallel_jobs_; | 200 size_t parallel_jobs_; |
201 | 201 |
202 // Worker pool used to launch processes in parallel. | 202 // Worker pool used to launch processes in parallel. |
203 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_; | 203 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(TestLauncher); | 205 DISALLOW_COPY_AND_ASSIGN(TestLauncher); |
206 }; | 206 }; |
207 | 207 |
208 // Extract part from |full_output| that applies to |result|. | 208 // Extract part from |full_output| that applies to |result|. |
209 std::string GetTestOutputSnippet(const TestResult& result, | 209 std::string GetTestOutputSnippet(const TestResult& result, |
210 const std::string& full_output); | 210 const std::string& full_output); |
211 | 211 |
212 } // namespace base | 212 } // namespace base |
213 | 213 |
214 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 214 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
OLD | NEW |