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" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // If the delegate is running tests asynchronously, it must finish | 66 // If the delegate is running tests asynchronously, it must finish |
67 // running all pending tests and call their callbacks before returning | 67 // running all pending tests and call their callbacks before returning |
68 // from this method. | 68 // from this method. |
69 virtual void RunRemainingTests() = 0; | 69 virtual void RunRemainingTests() = 0; |
70 | 70 |
71 protected: | 71 protected: |
72 virtual ~TestLauncherDelegate(); | 72 virtual ~TestLauncherDelegate(); |
73 }; | 73 }; |
74 | 74 |
75 int LaunchChildGTestProcess(const CommandLine& command_line, | 75 int LaunchChildGTestProcess(const CommandLine& command_line, |
| 76 const std::string& wrapper, |
76 base::TimeDelta timeout, | 77 base::TimeDelta timeout, |
77 bool* was_timeout); | 78 bool* was_timeout); |
78 | 79 |
79 // Launches GTest-based tests from the current executable | 80 // Launches GTest-based tests from the current executable |
80 // using |launcher_delegate|. | 81 // using |launcher_delegate|. |
81 int LaunchTests(TestLauncherDelegate* launcher_delegate, | 82 int LaunchTests(TestLauncherDelegate* launcher_delegate, |
82 int argc, | 83 int argc, |
83 char** argv) WARN_UNUSED_RESULT; | 84 char** argv) WARN_UNUSED_RESULT; |
84 | 85 |
85 } // namespace base | 86 } // namespace base |
86 | 87 |
87 #endif // BASE_TEST_TEST_LAUNCHER_H_ | 88 #endif // BASE_TEST_TEST_LAUNCHER_H_ |
OLD | NEW |