| Index: webrtc/examples/BUILD.gn
|
| diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn
|
| index 59842fc524532742cb85c3bd98b9e89ae45f90e3..1eca3171def750c5a207bb393e873cfe98a00329 100644
|
| --- a/webrtc/examples/BUILD.gn
|
| +++ b/webrtc/examples/BUILD.gn
|
| @@ -433,32 +433,38 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| }
|
|
|
| if (rtc_include_tests) {
|
| - config("rtc_apprtcmobile_config") {
|
| - defines = [ "GTEST_RELATIVE_PATH" ]
|
| - }
|
| -
|
| - rtc_test("apprtcmobile_tests") {
|
| - include_dirs = [ "objc/AppRTCMobile/ios" ]
|
| - deps = [
|
| - ":AppRTCMobile_lib",
|
| - ":apprtc_signaling",
|
| - "//testing/gtest",
|
| - "//third_party/ocmock",
|
| - ]
|
| -
|
| - sources = [
|
| - "objc/AppRTCMobile/tests/ARDAppClientTest.mm",
|
| - "objc/AppRTCMobile/tests/ARDSettingsModelTests.mm",
|
| - ]
|
| + # TODO(kthelgason): compile xctests on mac when chromium supports it.
|
| + if (is_ios) {
|
| + rtc_source_set("apprtcmobile_test_sources") {
|
| + include_dirs = [
|
| + "objc/AppRTCMobile",
|
| + "objc/AppRTCMobile/ios",
|
| + ]
|
| + testonly = true
|
| + sources = [
|
| + "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm",
|
| + "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm",
|
| + "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm",
|
| + ]
|
| + public_deps = [
|
| + ":AppRTCMobile_ios_frameworks",
|
| + ":AppRTCMobile_lib",
|
| + "//build/config/ios:xctest",
|
| + "//third_party/ocmock",
|
| + ]
|
| + configs += [ "//build/config/compiler:enable_arc" ]
|
| + }
|
|
|
| - if (is_ios) {
|
| + rtc_ios_xctest_test("apprtcmobile_tests") {
|
| info_plist = "objc/AppRTCMobile/ios/Info.plist"
|
| + sources = [
|
| + "objc/AppRTCMobile/ios/main.m",
|
| + ]
|
| + deps = [
|
| + ":apprtcmobile_test_sources",
|
| + ]
|
| + ldflags = [ "-all_load" ]
|
| }
|
| -
|
| - configs += [
|
| - ":rtc_apprtcmobile_config",
|
| - "//build/config/compiler:enable_arc",
|
| - ]
|
| }
|
| }
|
| }
|
|
|