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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 // |callback| is called on the same thread this method was called. | 92 // |callback| is called on the same thread this method was called. |
93 void LaunchChildGTestProcess(const CommandLine& command_line, | 93 void LaunchChildGTestProcess(const CommandLine& command_line, |
94 const std::string& wrapper, | 94 const std::string& wrapper, |
95 base::TimeDelta timeout, | 95 base::TimeDelta timeout, |
96 bool use_job_objects, | 96 bool use_job_objects, |
97 const LaunchChildGTestProcessCallback& callback); | 97 const LaunchChildGTestProcessCallback& callback); |
98 | 98 |
99 // Called when a test has finished running. | 99 // Called when a test has finished running. |
100 void OnTestFinished(const TestResult& result); | 100 void OnTestFinished(const TestResult& result); |
101 | 101 |
102 static std::string FormatFullTestName(const std::string& test_case_name, | |
sky
2014/07/31 15:57:22
Add description.
Sergiy Byelozyorov
2014/07/31 17:33:03
Done.
| |
103 const std::string& test_name); | |
104 | |
102 private: | 105 private: |
103 bool Init() WARN_UNUSED_RESULT; | 106 bool Init() WARN_UNUSED_RESULT; |
104 | 107 |
105 // Runs all tests in current iteration. Uses callbacks to communicate success. | 108 // Runs all tests in current iteration. Uses callbacks to communicate success. |
106 void RunTests(); | 109 void RunTests(); |
107 | 110 |
108 void RunTestIteration(); | 111 void RunTestIteration(); |
109 | 112 |
110 // Saves test results summary as JSON if requested from command line. | 113 // Saves test results summary as JSON if requested from command line. |
111 void MaybeSaveSummaryAsJSON(); | 114 void MaybeSaveSummaryAsJSON(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 const std::string& full_output); | 190 const std::string& full_output); |
188 | 191 |
189 // Returns command line command line after gtest-specific processing | 192 // Returns command line command line after gtest-specific processing |
190 // and applying |wrapper|. | 193 // and applying |wrapper|. |
191 CommandLine PrepareCommandLineForGTest(const CommandLine& command_line, | 194 CommandLine PrepareCommandLineForGTest(const CommandLine& command_line, |
192 const std::string& wrapper); | 195 const std::string& wrapper); |
193 | 196 |
194 } // namespace base | 197 } // namespace base |
195 | 198 |
196 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 199 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
OLD | NEW |