| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/test/launcher/test_result.h" | 14 #include "base/test/launcher/test_result.h" |
| 15 #include "base/test/launcher/test_results_tracker.h" | 15 #include "base/test/launcher/test_results_tracker.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 | 18 |
| 19 class CommandLine; | |
| 20 | |
| 21 namespace testing { | 19 namespace testing { |
| 22 class TestCase; | 20 class TestCase; |
| 23 class TestInfo; | 21 class TestInfo; |
| 24 } | 22 } |
| 25 | 23 |
| 26 namespace base { | 24 namespace base { |
| 27 | 25 |
| 26 class CommandLine; |
| 28 struct LaunchOptions; | 27 struct LaunchOptions; |
| 29 class SequencedWorkerPoolOwner; | 28 class SequencedWorkerPoolOwner; |
| 30 class TestLauncher; | 29 class TestLauncher; |
| 31 | 30 |
| 32 // Constants for GTest command-line flags. | 31 // Constants for GTest command-line flags. |
| 33 extern const char kGTestFilterFlag[]; | 32 extern const char kGTestFilterFlag[]; |
| 34 extern const char kGTestHelpFlag[]; | 33 extern const char kGTestHelpFlag[]; |
| 35 extern const char kGTestListTestsFlag[]; | 34 extern const char kGTestListTestsFlag[]; |
| 36 extern const char kGTestRepeatFlag[]; | 35 extern const char kGTestRepeatFlag[]; |
| 37 extern const char kGTestRunDisabledTestsFlag[]; | 36 extern const char kGTestRunDisabledTestsFlag[]; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // running after |timeout|, it is terminated and |*was_timeout| is set to true. | 202 // running after |timeout|, it is terminated and |*was_timeout| is set to true. |
| 204 // Returns exit code of the process. | 203 // Returns exit code of the process. |
| 205 int LaunchChildTestProcessWithOptions(const CommandLine& command_line, | 204 int LaunchChildTestProcessWithOptions(const CommandLine& command_line, |
| 206 const LaunchOptions& options, | 205 const LaunchOptions& options, |
| 207 base::TimeDelta timeout, | 206 base::TimeDelta timeout, |
| 208 bool* was_timeout); | 207 bool* was_timeout); |
| 209 | 208 |
| 210 } // namespace base | 209 } // namespace base |
| 211 | 210 |
| 212 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 211 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| OLD | NEW |