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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |