summaryrefslogtreecommitdiffstats
path: root/base/test/gtest_xml_util.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-03 18:13:52 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-03 18:13:52 +0000
commitf11b3b179a68ed3c04f1a7da5fc8ec410eb62390 (patch)
treedc68b2acc926aefa1163419b75b564a640a6a0f2 /base/test/gtest_xml_util.cc
parent5974f03d908c1d8beaa810794cde9a943a48a514 (diff)
downloadchromium_src-f11b3b179a68ed3c04f1a7da5fc8ec410eb62390.zip
chromium_src-f11b3b179a68ed3c04f1a7da5fc8ec410eb62390.tar.gz
chromium_src-f11b3b179a68ed3c04f1a7da5fc8ec410eb62390.tar.bz2
GTTF: Basic parallel unit test launcher.
BUG=236893 R=jar@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/23531009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test/gtest_xml_util.cc')
-rw-r--r--base/test/gtest_xml_util.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/base/test/gtest_xml_util.cc b/base/test/gtest_xml_util.cc
index a143458..666a3a5 100644
--- a/base/test/gtest_xml_util.cc
+++ b/base/test/gtest_xml_util.cc
@@ -147,8 +147,7 @@ bool ProcessGTestOutput(const base::FilePath& output_file,
result.elapsed_time = TimeDelta();
// Assume the test crashed - we can correct that later.
- result.success = false;
- result.crashed = true;
+ result.status = TestResult::TEST_CRASH;
results->push_back(result);
} else if (node_name == "testcase" && !xml_reader.IsClosingElement()) {
@@ -174,13 +173,13 @@ bool ProcessGTestOutput(const base::FilePath& output_file,
TimeDelta::FromMicroseconds(strtod(test_time_str.c_str(), NULL) *
Time::kMicrosecondsPerSecond);
- result.success = true;
- result.crashed = false;
+ result.status = TestResult::TEST_SUCCESS;
if (!results->empty() &&
results->at(results->size() - 1).GetFullName() ==
result.GetFullName() &&
- results->at(results->size() - 1).crashed) {
+ results->at(results->size() - 1).status ==
+ TestResult::TEST_CRASH) {
// Erase the fail-safe "crashed" result - now we know the test did
// not crash.
results->pop_back();
@@ -193,7 +192,7 @@ bool ProcessGTestOutput(const base::FilePath& output_file,
return false;
DCHECK(!results->empty());
- results->at(results->size() - 1).success = false;
+ results->at(results->size() - 1).status = TestResult::TEST_FAILURE;
state = STATE_FAILURE;
} else if (node_name == "testcase" && xml_reader.IsClosingElement()) {