Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: base/test/launcher/test_launcher.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/power_monitor/power_monitor_device_source.h ('k') | base/timer/timer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/power_monitor/power_monitor_device_source.h ('k') | base/timer/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698