test_support.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2017 The WebRTC Project Authors. All rights reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef TEST_IOS_TEST_SUPPORT_H_
  11. #define TEST_IOS_TEST_SUPPORT_H_
  12. #include <string>
  13. #include <vector>
  14. #include "absl/types/optional.h"
  15. namespace rtc {
  16. namespace test {
  17. // Launches an iOS app that serves as a host for a test suite.
  18. // This is necessary as iOS doesn't like processes without a gui
  19. // running for longer than a few seconds.
  20. void RunTestsFromIOSApp();
  21. void InitTestSuite(int (*test_suite)(void),
  22. int argc,
  23. char* argv[],
  24. bool save_chartjson_result,
  25. absl::optional<std::vector<std::string>> metrics_to_plot);
  26. } // namespace test
  27. } // namespace rtc
  28. #endif // TEST_IOS_TEST_SUPPORT_H_