1 // Copyright 2012 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_TEST_TEST_SUPPORT_IOS_H_ 6 #define BASE_TEST_TEST_SUPPORT_IOS_H_ 7 8 #include "base/test/test_suite.h" 9 10 namespace base { 11 12 using RunTestSuiteCallback = OnceCallback<int(void)>; 13 14 // Inits the message loop for tests on iOS. 15 void InitIOSTestMessageLoop(); 16 17 // Inits the run test suite hook. 18 void InitIOSRunHook(RunTestSuiteCallback callback); 19 20 // Inits the initial args for tests on iOS. 21 void InitIOSArgs(int argc, char* argv[]); 22 23 // Launches an iOS app that runs the tests in the suite passed to 24 // InitIOSRunHook. 25 int RunTestsFromIOSApp(); 26 27 // Returns true if unittests should be run by the XCTest runnner. 28 bool ShouldRunIOSUnittestsWithXCTest(); 29 30 } // namespace base 31 32 #endif // BASE_TEST_TEST_SUPPORT_IOS_H_ 33