| 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_TEST_LAUNCHER_H_ | 5 #ifndef BASE_TEST_TEST_LAUNCHER_H_ |
| 6 #define BASE_TEST_TEST_LAUNCHER_H_ | 6 #define BASE_TEST_TEST_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 | 14 |
| 15 class CommandLine; | 15 class CommandLine; |
| 16 | 16 |
| 17 namespace testing { | 17 namespace testing { |
| 18 class TestCase; | 18 class TestCase; |
| 19 class TestInfo; | 19 class TestInfo; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 | 23 |
| 24 struct LaunchOptions; | 24 struct LaunchOptions; |
| 25 | 25 |
| 26 // Constants for GTest command-line flags. | 26 // Constants for GTest command-line flags. |
| 27 extern const char kGTestFilterFlag[]; | 27 extern const char kGTestFilterFlag[]; |
| 28 extern const char kGTestHelpFlag[]; |
| 28 extern const char kGTestListTestsFlag[]; | 29 extern const char kGTestListTestsFlag[]; |
| 29 extern const char kGTestRepeatFlag[]; | 30 extern const char kGTestRepeatFlag[]; |
| 30 extern const char kGTestRunDisabledTestsFlag[]; | 31 extern const char kGTestRunDisabledTestsFlag[]; |
| 31 extern const char kGTestOutputFlag[]; | 32 extern const char kGTestOutputFlag[]; |
| 32 | 33 |
| 33 // Structure containing result of a single test. | 34 // Structure containing result of a single test. |
| 34 struct TestResult { | 35 struct TestResult { |
| 35 enum Status { | 36 enum Status { |
| 36 TEST_UNKNOWN, // Status not set. | 37 TEST_UNKNOWN, // Status not set. |
| 37 TEST_SUCCESS, // Test passed. | 38 TEST_SUCCESS, // Test passed. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 // Launches GTest-based tests from the current executable | 116 // Launches GTest-based tests from the current executable |
| 116 // using |launcher_delegate|. | 117 // using |launcher_delegate|. |
| 117 int LaunchTests(TestLauncherDelegate* launcher_delegate, | 118 int LaunchTests(TestLauncherDelegate* launcher_delegate, |
| 118 int argc, | 119 int argc, |
| 119 char** argv) WARN_UNUSED_RESULT; | 120 char** argv) WARN_UNUSED_RESULT; |
| 120 | 121 |
| 121 } // namespace base | 122 } // namespace base |
| 122 | 123 |
| 123 #endif // BASE_TEST_TEST_LAUNCHER_H_ | 124 #endif // BASE_TEST_TEST_LAUNCHER_H_ |
| OLD | NEW |