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 #ifndef BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ | 5 #ifndef BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ |
6 #define BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ | 6 #define BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 17 matching lines...) Expand all Loading... | |
28 // Only each test (testcase element in the XML) will have the correct | 28 // Only each test (testcase element in the XML) will have the correct |
29 // failed/disabled/elapsed_time information. Each test won't include | 29 // failed/disabled/elapsed_time information. Each test won't include |
30 // detailed failure messages either. | 30 // detailed failure messages either. |
31 class TestResultsTracker { | 31 class TestResultsTracker { |
32 public: | 32 public: |
33 TestResultsTracker(); | 33 TestResultsTracker(); |
34 ~TestResultsTracker(); | 34 ~TestResultsTracker(); |
35 | 35 |
36 // Initialize the result tracker. Must be called exactly once before | 36 // Initialize the result tracker. Must be called exactly once before |
37 // calling any other methods. Returns true on success. | 37 // calling any other methods. Returns true on success. |
38 bool Init(const CommandLine& command_line) WARN_UNUSED_RESULT; | 38 bool Init(const base::CommandLine& command_line) WARN_UNUSED_RESULT; |
brettw
2014/10/14 17:46:57
This file is already in base.
| |
39 | 39 |
40 // Called when a test iteration is starting. | 40 // Called when a test iteration is starting. |
41 void OnTestIterationStarting(); | 41 void OnTestIterationStarting(); |
42 | 42 |
43 // Adds |test_name| to the set of discovered tests (this includes all tests | 43 // Adds |test_name| to the set of discovered tests (this includes all tests |
44 // present in the executable, not necessarily run). | 44 // present in the executable, not necessarily run). |
45 void AddTest(const std::string& test_name); | 45 void AddTest(const std::string& test_name); |
46 | 46 |
47 // Adds |test_name| to the set of disabled tests. | 47 // Adds |test_name| to the set of disabled tests. |
48 void AddDisabledTest(const std::string& test_name); | 48 void AddDisabledTest(const std::string& test_name); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 | 114 |
115 // File handle of output file (can be NULL if no file). | 115 // File handle of output file (can be NULL if no file). |
116 FILE* out_; | 116 FILE* out_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(TestResultsTracker); | 118 DISALLOW_COPY_AND_ASSIGN(TestResultsTracker); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace base | 121 } // namespace base |
122 | 122 |
123 #endif // BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ | 123 #endif // BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ |
OLD | NEW |