blob: bb3493aea6dd5a80e6b896975689746b65dd4b4f [file] [log] [blame]
Byoungchan Leeb66cfb72021-07-26 07:32:101/*
2 * Copyright (c) 2021 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
11#ifndef TEST_IOS_GOOGLE_TEST_RUNNER_DELEGATE_H_
12#define TEST_IOS_GOOGLE_TEST_RUNNER_DELEGATE_H_
13
14// Copied from Chromium base/test/ios/google_test_runner_delegate.h
15// The WebRTC test cannot depend on //base, but this protocol is required
16// to run iOS Unittest, so it is a workaround for the dependency.
17@protocol GoogleTestRunnerDelegate
18
19// Returns YES if this delegate supports running GoogleTests via a call to
Artem Titovcfea2182021-08-09 23:22:3120// `runGoogleTests`.
Byoungchan Leeb66cfb72021-07-26 07:32:1021@property(nonatomic, readonly, assign) BOOL supportsRunningGoogleTests;
22
23// Runs GoogleTests and returns the final exit code.
24- (int)runGoogleTests;
25
26@end
27
28#endif // TEST_IOS_GOOGLE_TEST_RUNNER_DELEGATE_H_