Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: webrtc/examples/BUILD.gn

Issue 2697603002: Move iOS tests to XCTest from gtest. (Closed)
Patch Set: fix nits Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_android) { 10 if (is_android) {
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 ] 426 ]
427 public_configs = [ ":socketrocket_include_config" ] 427 public_configs = [ ":socketrocket_include_config" ]
428 428
429 libs = [ 429 libs = [
430 "CFNetwork.framework", 430 "CFNetwork.framework",
431 "icucore", 431 "icucore",
432 ] 432 ]
433 } 433 }
434 434
435 if (rtc_include_tests) { 435 if (rtc_include_tests) {
436 config("rtc_apprtcmobile_config") { 436 # TODO(kthelgason): compile xctests on mac when chromium supports it.
437 defines = [ "GTEST_RELATIVE_PATH" ] 437 if (is_ios) {
438 } 438 rtc_source_set("apprtcmobile_test_sources") {
439 439 include_dirs = [
440 rtc_test("apprtcmobile_tests") { 440 "objc/AppRTCMobile",
441 include_dirs = [ "objc/AppRTCMobile/ios" ] 441 "objc/AppRTCMobile/ios",
442 deps = [ 442 ]
443 ":AppRTCMobile_lib", 443 testonly = true
444 ":apprtc_signaling", 444 sources = [
445 "//testing/gtest", 445 "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm",
446 "//third_party/ocmock", 446 "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm",
447 ] 447 "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm",
448 448 ]
449 sources = [ 449 public_deps = [
450 "objc/AppRTCMobile/tests/ARDAppClientTest.mm", 450 ":AppRTCMobile_ios_frameworks",
451 "objc/AppRTCMobile/tests/ARDSettingsModelTests.mm", 451 ":AppRTCMobile_lib",
452 ] 452 "//build/config/ios:xctest",
453 453 "//third_party/ocmock",
454 if (is_ios) { 454 ]
455 info_plist = "objc/AppRTCMobile/ios/Info.plist" 455 configs += [ "//build/config/compiler:enable_arc" ]
456 } 456 }
457 457
458 configs += [ 458 rtc_ios_xctest_test("apprtcmobile_tests") {
459 ":rtc_apprtcmobile_config", 459 info_plist = "objc/AppRTCMobile/ios/Info.plist"
460 "//build/config/compiler:enable_arc", 460 sources = [
461 ] 461 "objc/AppRTCMobile/ios/main.m",
462 ]
463 deps = [
464 ":apprtcmobile_test_sources",
465 ]
466 ldflags = [ "-all_load" ]
467 }
462 } 468 }
463 } 469 }
464 } 470 }
465 471
466 if (is_linux || is_win) { 472 if (is_linux || is_win) {
467 config("peerconnection_client_warnings_config") { 473 config("peerconnection_client_warnings_config") {
468 cflags = [] 474 cflags = []
469 if (is_win && is_clang) { 475 if (is_win && is_clang) {
470 cflags += [ 476 cflags += [
471 # Disable warnings failing when compiling with Clang on Windows. 477 # Disable warnings failing when compiling with Clang on Windows.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
624 } 630 }
625 631
626 deps = [ 632 deps = [
627 "../p2p:libstunprober", 633 "../p2p:libstunprober",
628 "../p2p:rtc_p2p", 634 "../p2p:rtc_p2p",
629 "../system_wrappers:field_trial_default", 635 "../system_wrappers:field_trial_default",
630 ] 636 ]
631 } 637 }
632 } 638 }
OLDNEW
« no previous file with comments | « tools-webrtc/ios/tests/common_tests.json ('k') | webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698