Byoungchan Lee | b66cfb7 | 2021-07-26 07:32:10 | [diff] [blame] | 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 | // 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 Titov | cfea218 | 2021-08-09 23:22:31 | [diff] [blame] | 20 | // `runGoogleTests`. |
Byoungchan Lee | b66cfb7 | 2021-07-26 07:32:10 | [diff] [blame] | 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_ |