Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: base/test/launcher/test_launcher.h

Issue 2411003003: Save an early test summary in case the test launcher crashes or gets killed (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698