test_support_ios.h 763 B

123456789101112131415161718192021222324252627
  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
  3. // found in the LICENSE file.
  4. #ifndef BASE_TEST_TEST_SUPPORT_IOS_H_
  5. #define BASE_TEST_TEST_SUPPORT_IOS_H_
  6. #include "base/test/test_suite.h"
  7. namespace base {
  8. // Inits the message loop for tests on iOS.
  9. void InitIOSTestMessageLoop();
  10. // Inits the run hook for tests on iOS.
  11. void InitIOSRunHook(TestSuite* suite, int argc, char* argv[]);
  12. // Launches an iOS app that runs the tests in the suite passed to
  13. // InitIOSRunHook.
  14. void RunTestsFromIOSApp();
  15. // Returns true if unittests should be run by the XCTest runnner.
  16. bool ShouldRunIOSUnittestsWithXCTest();
  17. } // namespace base
  18. #endif // BASE_TEST_TEST_SUPPORT_IOS_H_