[telemetry] Add an option --upload-results to store the html results in google storag...
[chromium-blink-merge.git] / base / test / launcher / test_result.cc
blob706b51e36372550efb47ef5557ebcd69f238d4ca
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
3 // found in the LICENSE file.
5 #include "base/test/launcher/test_result.h"
7 #include "base/logging.h"
9 namespace base {
11 TestResult::TestResult() : status(TEST_UNKNOWN) {
14 TestResult::~TestResult() {
17 std::string TestResult::StatusAsString() const {
18 switch (status) {
19 case TEST_UNKNOWN:
20 return "UNKNOWN";
21 case TEST_SUCCESS:
22 return "SUCCESS";
23 case TEST_FAILURE:
24 return "FAILURE";
25 case TEST_CRASH:
26 return "CRASH";
27 case TEST_TIMEOUT:
28 return "TIMEOUT";
29 case TEST_SKIPPED:
30 return "SKIPPED";
31 // Rely on compiler warnings to ensure all possible values are handled.
34 NOTREACHED();
35 return std::string();
38 } // namespace base