1 /* 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 // to avoid the //base dependency. This protocol is required 16 // to run iOS Unittest. 17 @protocol GoogleTestRunnerDelegate 18 19 // Returns YES if this delegate supports running GoogleTests via a call to 20 // `runGoogleTests`. 21 @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_ 29