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_UNIT_TEST_LAUNCHER_H_ | 5 #ifndef BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ |
6 #define BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ | 6 #define BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
10 #include "base/test/launcher/test_launcher.h" | 13 #include "base/test/launcher/test_launcher.h" |
| 14 #include "build/build_config.h" |
11 | 15 |
12 namespace base { | 16 namespace base { |
13 | 17 |
14 // Callback that runs a test suite and returns exit code. | 18 // Callback that runs a test suite and returns exit code. |
15 typedef base::Callback<int(void)> RunTestSuiteCallback; | 19 typedef base::Callback<int(void)> RunTestSuiteCallback; |
16 | 20 |
17 // Launches unit tests in given test suite. Returns exit code. | 21 // Launches unit tests in given test suite. Returns exit code. |
18 int LaunchUnitTests(int argc, | 22 int LaunchUnitTests(int argc, |
19 char** argv, | 23 char** argv, |
20 const RunTestSuiteCallback& run_test_suite); | 24 const RunTestSuiteCallback& run_test_suite); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 120 |
117 // Determines whether we use job objects on Windows. | 121 // Determines whether we use job objects on Windows. |
118 bool use_job_objects_; | 122 bool use_job_objects_; |
119 | 123 |
120 DISALLOW_COPY_AND_ASSIGN(UnitTestLauncherDelegate); | 124 DISALLOW_COPY_AND_ASSIGN(UnitTestLauncherDelegate); |
121 }; | 125 }; |
122 | 126 |
123 } // namespace base | 127 } // namespace base |
124 | 128 |
125 #endif // BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ | 129 #endif // BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ |
OLD | NEW |