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

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

Issue 1469843005: Calculate broken tests threshold based on number of tests in binary, before applying filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | base/test/launcher/test_launcher.cc » ('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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 int cycles_; // Number of remaining test itreations, or -1 for infinite. 157 int cycles_; // Number of remaining test itreations, or -1 for infinite.
158 158
159 // Test filters (empty means no filter). 159 // Test filters (empty means no filter).
160 std::vector<std::string> positive_test_filter_; 160 std::vector<std::string> positive_test_filter_;
161 std::vector<std::string> negative_test_filter_; 161 std::vector<std::string> negative_test_filter_;
162 162
163 // Tests to use (cached result of TestLauncherDelegate::GetTests). 163 // Tests to use (cached result of TestLauncherDelegate::GetTests).
164 std::vector<TestIdentifier> tests_; 164 std::vector<TestIdentifier> tests_;
165 165
166 // Number of tests found in this binary.
167 size_t test_found_count_;
168
166 // Number of tests started in this iteration. 169 // Number of tests started in this iteration.
167 size_t test_started_count_; 170 size_t test_started_count_;
168 171
169 // Number of tests finished in this iteration. 172 // Number of tests finished in this iteration.
170 size_t test_finished_count_; 173 size_t test_finished_count_;
171 174
172 // Number of tests successfully finished in this iteration. 175 // Number of tests successfully finished in this iteration.
173 size_t test_success_count_; 176 size_t test_success_count_;
174 177
175 // Number of tests either timing out or having an unknown result, 178 // Number of tests either timing out or having an unknown result,
(...skipping 30 matching lines...) Expand all
206 DISALLOW_COPY_AND_ASSIGN(TestLauncher); 209 DISALLOW_COPY_AND_ASSIGN(TestLauncher);
207 }; 210 };
208 211
209 // Extract part from |full_output| that applies to |result|. 212 // Extract part from |full_output| that applies to |result|.
210 std::string GetTestOutputSnippet(const TestResult& result, 213 std::string GetTestOutputSnippet(const TestResult& result,
211 const std::string& full_output); 214 const std::string& full_output);
212 215
213 } // namespace base 216 } // namespace base
214 217
215 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ 218 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698