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

Side by Side Diff: base/test/launcher/test_results_tracker.cc

Issue 131663002: Only print summary of all test iterations if there is more than one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | no next file » | 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 #include "base/test/launcher/test_results_tracker.h" 5 #include "base/test/launcher/test_results_tracker.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 for (PerIterationData::ResultsMap::const_iterator j = 222 for (PerIterationData::ResultsMap::const_iterator j =
223 per_iteration_data_[i].results.begin(); 223 per_iteration_data_[i].results.begin();
224 j != per_iteration_data_[i].results.end(); 224 j != per_iteration_data_[i].results.end();
225 ++j) { 225 ++j) {
226 // Use the last test result as the final one. 226 // Use the last test result as the final one.
227 TestResult result = j->second.test_results.back(); 227 TestResult result = j->second.test_results.back();
228 tests_by_status[result.status].insert(result.full_name); 228 tests_by_status[result.status].insert(result.full_name);
229 } 229 }
230 } 230 }
231 231
232 fprintf(stdout, "Summary of all itest iterations:\n"); 232 fprintf(stdout, "Summary of all test iterations:\n");
233 fflush(stdout); 233 fflush(stdout);
234 234
235 PrintTests(tests_by_status[TestResult::TEST_FAILURE].begin(), 235 PrintTests(tests_by_status[TestResult::TEST_FAILURE].begin(),
236 tests_by_status[TestResult::TEST_FAILURE].end(), 236 tests_by_status[TestResult::TEST_FAILURE].end(),
237 "failed"); 237 "failed");
238 PrintTests(tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].begin(), 238 PrintTests(tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].begin(),
239 tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].end(), 239 tests_by_status[TestResult::TEST_FAILURE_ON_EXIT].end(),
240 "failed on exit"); 240 "failed on exit");
241 PrintTests(tests_by_status[TestResult::TEST_TIMEOUT].begin(), 241 PrintTests(tests_by_status[TestResult::TEST_TIMEOUT].begin(),
242 tests_by_status[TestResult::TEST_TIMEOUT].end(), 242 tests_by_status[TestResult::TEST_TIMEOUT].end(),
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 TestResultsTracker::AggregateTestResult::~AggregateTestResult() { 346 TestResultsTracker::AggregateTestResult::~AggregateTestResult() {
347 } 347 }
348 348
349 TestResultsTracker::PerIterationData::PerIterationData() { 349 TestResultsTracker::PerIterationData::PerIterationData() {
350 } 350 }
351 351
352 TestResultsTracker::PerIterationData::~PerIterationData() { 352 TestResultsTracker::PerIterationData::~PerIterationData() {
353 } 353 }
354 354
355 } // namespace base 355 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698