| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SUPPORT_IOS_H_ | 5 #ifndef BASE_TEST_TEST_SUPPORT_IOS_H_ |
| 6 #define BASE_TEST_TEST_SUPPORT_IOS_H_ | 6 #define BASE_TEST_TEST_SUPPORT_IOS_H_ |
| 7 | 7 |
| 8 #include "base/test/test_suite.h" | 8 #include "base/test/test_suite.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 | 11 |
| 12 // Inits the message loop for tests on iOS. | 12 // Inits the message loop for tests on iOS. |
| 13 void InitIOSTestMessageLoop(); | 13 void InitIOSTestMessageLoop(); |
| 14 | 14 |
| 15 // Inits the run hook for tests on iOS. | 15 // Inits the run hook for tests on iOS. |
| 16 void InitIOSRunHook(TestSuite* suite, int argc, char* argv[]); | 16 void InitIOSRunHook(TestSuite* suite, int argc, char* argv[]); |
| 17 | 17 |
| 18 // Launches an iOS app that runs the tests in the suite passed to | 18 // Launches an iOS app that runs the tests in the suite passed to |
| 19 // InitIOSRunHook. | 19 // InitIOSRunHook. |
| 20 void RunTestsFromIOSApp(); | 20 void RunTestsFromIOSApp(); |
| 21 | 21 |
| 22 // Returns true if the test app is being run with an XCTest module. |
| 23 bool IsRunningWithXCTest(); |
| 24 |
| 22 } // namespace base | 25 } // namespace base |
| 23 | 26 |
| 24 #endif // BASE_TEST_TEST_SUPPORT_IOS_H_ | 27 #endif // BASE_TEST_TEST_SUPPORT_IOS_H_ |
| OLD | NEW |