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