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_LAUNCHER_H_ | 5 #ifndef BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 private: | 144 private: |
145 bool Init() WARN_UNUSED_RESULT; | 145 bool Init() WARN_UNUSED_RESULT; |
146 | 146 |
147 // Runs all tests in current iteration. Uses callbacks to communicate success. | 147 // Runs all tests in current iteration. Uses callbacks to communicate success. |
148 void RunTests(); | 148 void RunTests(); |
149 | 149 |
150 void RunTestIteration(); | 150 void RunTestIteration(); |
151 | 151 |
152 // Saves test results summary as JSON if requested from command line. | 152 // Saves test results summary as JSON if requested from command line. |
153 void MaybeSaveSummaryAsJSON(); | 153 void MaybeSaveSummaryAsJSON(const std::vector<std::string>& additional_tags); |
154 | 154 |
155 // Called on a worker thread after a child process finishes. | 155 // Called on a worker thread after a child process finishes. |
156 void OnLaunchTestProcessFinished( | 156 void OnLaunchTestProcessFinished( |
157 const GTestProcessCompletedCallback& callback, | 157 const GTestProcessCompletedCallback& callback, |
158 int exit_code, | 158 int exit_code, |
159 const TimeDelta& elapsed_time, | 159 const TimeDelta& elapsed_time, |
160 bool was_timeout, | 160 bool was_timeout, |
161 const std::string& output); | 161 const std::string& output); |
162 | 162 |
163 // Called when a test iteration is finished. | 163 // Called when a test iteration is finished. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 DISALLOW_COPY_AND_ASSIGN(TestLauncher); | 240 DISALLOW_COPY_AND_ASSIGN(TestLauncher); |
241 }; | 241 }; |
242 | 242 |
243 // Extract part from |full_output| that applies to |result|. | 243 // Extract part from |full_output| that applies to |result|. |
244 std::string GetTestOutputSnippet(const TestResult& result, | 244 std::string GetTestOutputSnippet(const TestResult& result, |
245 const std::string& full_output); | 245 const std::string& full_output); |
246 | 246 |
247 } // namespace base | 247 } // namespace base |
248 | 248 |
249 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 249 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
OLD | NEW |