blob: 10958572cfb7f20f13ac064a88a32b1919e63e22 [file] [log] [blame]
Kári Tristan Helgasone2baffb2017-06-09 10:31:58 +02001/*
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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef TEST_IOS_TEST_SUPPORT_H_
12#define TEST_IOS_TEST_SUPPORT_H_
Kári Tristan Helgasone2baffb2017-06-09 10:31:58 +020013
Artem Titov694b74b2020-02-20 23:52:26 +010014#include <string>
15#include <vector>
16
17#include "absl/types/optional.h"
18
Kári Tristan Helgasone2baffb2017-06-09 10:31:58 +020019namespace rtc {
20namespace test {
21// Launches an iOS app that serves as a host for a test suite.
22// This is necessary as iOS doesn't like processes without a gui
23// running for longer than a few seconds.
24void RunTestsFromIOSApp();
Yves Gerey665174f2018-06-19 15:03:05 +020025void InitTestSuite(int (*test_suite)(void),
26 int argc,
27 char* argv[],
Artem Titov694b74b2020-02-20 23:52:26 +010028 bool save_chartjson_result,
29 absl::optional<std::vector<std::string>> metrics_to_plot);
Kári Tristan Helgasone2baffb2017-06-09 10:31:58 +020030
31} // namespace test
32} // namespace rtc
33
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020034#endif // TEST_IOS_TEST_SUPPORT_H_