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

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

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 years, 6 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Number of tests either timing out or having an unknown result, 174 // Number of tests either timing out or having an unknown result,
175 // likely indicating a more systemic problem if widespread. 175 // likely indicating a more systemic problem if widespread.
176 size_t test_broken_count_; 176 size_t test_broken_count_;
177 177
178 // Number of retries in this iteration. 178 // Number of retries in this iteration.
179 size_t retry_count_; 179 size_t retry_count_;
180 180
181 // Maximum number of retries per iteration. 181 // Maximum number of retries per iteration.
182 size_t retry_limit_; 182 size_t retry_limit_;
183 183
184 // If true will not early exit nor skip retries even if too many tests are
185 // broken.
186 bool force_run_broken_tests_;
187
184 // Tests to retry in this iteration. 188 // Tests to retry in this iteration.
185 std::set<std::string> tests_to_retry_; 189 std::set<std::string> tests_to_retry_;
186 190
187 // Result to be returned from Run. 191 // Result to be returned from Run.
188 bool run_result_; 192 bool run_result_;
189 193
190 TestResultsTracker results_tracker_; 194 TestResultsTracker results_tracker_;
191 195
192 // 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.
193 DelayTimer<TestLauncher> watchdog_timer_; 197 DelayTimer<TestLauncher> watchdog_timer_;
194 198
195 // Number of jobs to run in parallel. 199 // Number of jobs to run in parallel.
196 size_t parallel_jobs_; 200 size_t parallel_jobs_;
197 201
198 // Worker pool used to launch processes in parallel. 202 // Worker pool used to launch processes in parallel.
199 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_; 203 scoped_ptr<SequencedWorkerPoolOwner> worker_pool_owner_;
200 204
201 DISALLOW_COPY_AND_ASSIGN(TestLauncher); 205 DISALLOW_COPY_AND_ASSIGN(TestLauncher);
202 }; 206 };
203 207
204 // Extract part from |full_output| that applies to |result|. 208 // Extract part from |full_output| that applies to |result|.
205 std::string GetTestOutputSnippet(const TestResult& result, 209 std::string GetTestOutputSnippet(const TestResult& result,
206 const std::string& full_output); 210 const std::string& full_output);
207 211
208 } // namespace base 212 } // namespace base
209 213
210 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ 214 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « test/android/junit/src/org/chromium/base/test/shadows/ShadowMultiDex.java ('k') | test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698