| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. | 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. |
| 10 | 10 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 } | 350 } |
| 351 } | 351 } |
| 352 | 352 |
| 353 if (rtc_include_tests) { | 353 if (rtc_include_tests) { |
| 354 config("rtc_unittests_config") { | 354 config("rtc_unittests_config") { |
| 355 # GN orders flags on a target before flags from configs. The default config | 355 # GN orders flags on a target before flags from configs. The default config |
| 356 # adds -Wall, and this flag have to be after -Wall -- so they need to | 356 # adds -Wall, and this flag have to be after -Wall -- so they need to |
| 357 # come from a config and can"t be on the target directly. | 357 # come from a config and can"t be on the target directly. |
| 358 if (is_clang) { | 358 if (is_clang) { |
| 359 cflags = [ | 359 cflags = [ |
| 360 "-Wno-missing-braces", | |
| 361 "-Wno-sign-compare", | 360 "-Wno-sign-compare", |
| 362 "-Wno-unused-const-variable", | 361 "-Wno-unused-const-variable", |
| 363 ] | 362 ] |
| 364 } | 363 } |
| 365 } | 364 } |
| 366 | 365 |
| 367 rtc_test("rtc_unittests") { | 366 rtc_test("rtc_unittests") { |
| 368 testonly = true | 367 testonly = true |
| 369 sources = [ | |
| 370 "api/fakemetricsobserver.cc", | |
| 371 "base/analytics/exp_filter_unittest.cc", | |
| 372 "base/analytics/percentile_filter_unittest.cc", | |
| 373 "base/array_view_unittest.cc", | |
| 374 "base/atomicops_unittest.cc", | |
| 375 "base/autodetectproxy_unittest.cc", | |
| 376 "base/base64_unittest.cc", | |
| 377 "base/basictypes_unittest.cc", | |
| 378 "base/bind_unittest.cc", | |
| 379 "base/bitbuffer_unittest.cc", | |
| 380 "base/buffer_unittest.cc", | |
| 381 "base/bufferqueue_unittest.cc", | |
| 382 "base/bytebuffer_unittest.cc", | |
| 383 "base/byteorder_unittest.cc", | |
| 384 "base/callback_unittest.cc", | |
| 385 "base/copyonwritebuffer_unittest.cc", | |
| 386 "base/crc32_unittest.cc", | |
| 387 "base/criticalsection_unittest.cc", | |
| 388 "base/event_tracer_unittest.cc", | |
| 389 "base/event_unittest.cc", | |
| 390 "base/file_unittest.cc", | |
| 391 "base/filerotatingstream_unittest.cc", | |
| 392 "base/fileutils_unittest.cc", | |
| 393 "base/function_view_unittest.cc", | |
| 394 "base/helpers_unittest.cc", | |
| 395 "base/httpbase_unittest.cc", | |
| 396 "base/httpcommon_unittest.cc", | |
| 397 "base/httpserver_unittest.cc", | |
| 398 "base/ipaddress_unittest.cc", | |
| 399 "base/logging_unittest.cc", | |
| 400 "base/md5digest_unittest.cc", | |
| 401 "base/messagedigest_unittest.cc", | |
| 402 "base/messagequeue_unittest.cc", | |
| 403 "base/mod_ops_unittest.cc", | |
| 404 "base/nat_unittest.cc", | |
| 405 "base/network_unittest.cc", | |
| 406 "base/onetimeevent_unittest.cc", | |
| 407 "base/optional_unittest.cc", | |
| 408 "base/optionsfile_unittest.cc", | |
| 409 "base/pathutils_unittest.cc", | |
| 410 "base/platform_thread_unittest.cc", | |
| 411 "base/proxy_unittest.cc", | |
| 412 "base/proxydetect_unittest.cc", | |
| 413 "base/random_unittest.cc", | |
| 414 "base/rate_limiter_unittest.cc", | |
| 415 "base/rate_statistics_unittest.cc", | |
| 416 "base/ratelimiter_unittest.cc", | |
| 417 "base/ratetracker_unittest.cc", | |
| 418 "base/refcountedobject_unittest.cc", | |
| 419 "base/rollingaccumulator_unittest.cc", | |
| 420 "base/rtccertificate_unittest.cc", | |
| 421 "base/rtccertificategenerator_unittest.cc", | |
| 422 "base/safe_compare_unittest.cc", | |
| 423 "base/scopedptrcollection_unittest.cc", | |
| 424 "base/sequenced_task_checker_unittest.cc", | |
| 425 "base/sha1digest_unittest.cc", | |
| 426 "base/sharedexclusivelock_unittest.cc", | |
| 427 "base/signalthread_unittest.cc", | |
| 428 "base/sigslot_unittest.cc", | |
| 429 "base/sigslottester_unittest.cc", | |
| 430 "base/stream_unittest.cc", | |
| 431 "base/stringencode_unittest.cc", | |
| 432 "base/stringutils_unittest.cc", | |
| 433 "base/swap_queue_unittest.cc", | |
| 434 | |
| 435 # TODO(ronghuawu): Reenable this test. | |
| 436 # "systeminfo_unittest.cc", | |
| 437 "base/task_queue_unittest.cc", | |
| 438 "base/task_unittest.cc", | |
| 439 "base/testclient_unittest.cc", | |
| 440 "base/thread_annotations_unittest.cc", | |
| 441 "base/thread_checker_unittest.cc", | |
| 442 "base/thread_unittest.cc", | |
| 443 "base/timestampaligner_unittest.cc", | |
| 444 "base/timeutils_unittest.cc", | |
| 445 "base/weak_ptr_unittest.cc", | |
| 446 "p2p/base/asyncstuntcpsocket_unittest.cc", | |
| 447 "p2p/base/dtlstransportchannel_unittest.cc", | |
| 448 "p2p/base/fakeportallocator.h", | |
| 449 "p2p/base/faketransportcontroller.h", | |
| 450 "p2p/base/jseptransport_unittest.cc", | |
| 451 "p2p/base/p2ptransportchannel_unittest.cc", | |
| 452 "p2p/base/port_unittest.cc", | |
| 453 "p2p/base/portallocator_unittest.cc", | |
| 454 "p2p/base/pseudotcp_unittest.cc", | |
| 455 "p2p/base/relayport_unittest.cc", | |
| 456 "p2p/base/relayserver_unittest.cc", | |
| 457 "p2p/base/stun_unittest.cc", | |
| 458 "p2p/base/stunport_unittest.cc", | |
| 459 "p2p/base/stunrequest_unittest.cc", | |
| 460 "p2p/base/stunserver_unittest.cc", | |
| 461 "p2p/base/tcpport_unittest.cc", | |
| 462 "p2p/base/testrelayserver.h", | |
| 463 "p2p/base/teststunserver.h", | |
| 464 "p2p/base/testturnserver.h", | |
| 465 "p2p/base/transportcontroller_unittest.cc", | |
| 466 "p2p/base/transportdescriptionfactory_unittest.cc", | |
| 467 "p2p/base/turnport_unittest.cc", | |
| 468 "p2p/base/turnserver_unittest.cc", | |
| 469 "p2p/base/udptransportchannel_unittest.cc", | |
| 470 "p2p/client/basicportallocator_unittest.cc", | |
| 471 "p2p/stunprober/stunprober_unittest.cc", | |
| 472 ] | |
| 473 | |
| 474 if (is_win) { | |
| 475 sources += [ | |
| 476 "base/win32_unittest.cc", | |
| 477 "base/win32window_unittest.cc", | |
| 478 ] | |
| 479 } | |
| 480 | |
| 481 if (is_mac) { | |
| 482 sources += [ "base/macutils_unittest.cc" ] | |
| 483 } | |
| 484 | |
| 485 if (is_posix) { | |
| 486 sources += [ | |
| 487 "base/ssladapter_unittest.cc", | |
| 488 "base/sslidentity_unittest.cc", | |
| 489 "base/sslstreamadapter_unittest.cc", | |
| 490 ] | |
| 491 } | |
| 492 if (rtc_use_quic) { | |
| 493 sources += [ | |
| 494 "p2p/quic/quicconnectionhelper_unittest.cc", | |
| 495 "p2p/quic/quicsession_unittest.cc", | |
| 496 "p2p/quic/quictransport_unittest.cc", | |
| 497 "p2p/quic/quictransportchannel_unittest.cc", | |
| 498 "p2p/quic/reliablequicstream_unittest.cc", | |
| 499 ] | |
| 500 } | |
| 501 | |
| 502 configs += [ ":rtc_unittests_config" ] | |
| 503 | |
| 504 if (!build_with_chromium && is_clang) { | |
| 505 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 506 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 507 } | |
| 508 | 368 |
| 509 deps = [ | 369 deps = [ |
| 510 "base:rtc_analytics", | 370 "base:rtc_analytics_unittests", |
| 511 "base:rtc_base", | 371 "base:rtc_base_approved_unittests", |
| 512 "base:rtc_base_tests_utils", | 372 "base:rtc_base_unittests", |
| 513 "base:rtc_task_queue", | 373 "base:rtc_task_queue_unittests", |
| 514 "p2p:libstunprober", | 374 "p2p:libstunprober_unittests", |
| 515 "p2p:rtc_p2p", | 375 "p2p:rtc_p2p_unittests", |
| 516 "//testing/gmock", | |
| 517 "//testing/gtest", | |
| 518 ] | 376 ] |
| 519 | 377 |
| 520 if (rtc_enable_protobuf) { | 378 if (rtc_enable_protobuf) { |
| 521 deps += [ "logging:rtc_event_log_tests" ] | 379 deps += [ "logging:rtc_event_log_tests" ] |
| 522 } | 380 } |
| 523 | 381 |
| 524 if (is_android) { | 382 if (is_android) { |
| 525 deps += [ "//testing/android/native_test:native_test_support" ] | 383 deps += [ "//testing/android/native_test:native_test_support" ] |
| 526 shard_timeout = 900 | 384 shard_timeout = 900 |
| 527 } | 385 } |
| 528 | 386 |
| 529 if (is_ios || is_mac) { | 387 if (is_ios || is_mac) { |
| 530 deps += [ | 388 deps += [ "sdk:rtc_sdk_peerconnection_objc_unittests" ] |
| 531 "sdk:rtc_sdk_peerconnection_objc", | |
| 532 "system_wrappers:system_wrappers_default", | |
| 533 "//third_party/ocmock", | |
| 534 ] | |
| 535 sources += [ | |
| 536 "sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm", | |
| 537 "sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", | |
| 538 "sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm", | |
| 539 "sdk/objc/Framework/UnitTests/RTCIceServerTest.mm", | |
| 540 "sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", | |
| 541 "sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", | |
| 542 "sdk/objc/Framework/UnitTests/avformatmappertests.mm", | |
| 543 ] | |
| 544 | |
| 545 # TODO(tkchin): Cleanup this warning. | |
| 546 cflags = [ "-Wno-objc-property-no-attribute" ] | |
| 547 | |
| 548 # |-ObjC| flag needed to make sure category method implementations | |
| 549 # are included: | |
| 550 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | |
| 551 ldflags = [ "-ObjC" ] | |
| 552 } | 389 } |
| 553 } | 390 } |
| 554 | 391 |
| 555 # TODO(pbos): Rename test suite, this is no longer "just" for video targets. | 392 # TODO(pbos): Rename test suite, this is no longer "just" for video targets. |
| 556 video_engine_tests_resources = [ | 393 video_engine_tests_resources = [ |
| 557 "//resources/foreman_cif_short.yuv", | 394 "//resources/foreman_cif_short.yuv", |
| 558 "//resources/voice_engine/audio_long16.pcm", | 395 "//resources/voice_engine/audio_long16.pcm", |
| 559 ] | 396 ] |
| 560 | 397 |
| 561 if (is_ios) { | 398 if (is_ios) { |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 ] | 549 ] |
| 713 | 550 |
| 714 deps = [ | 551 deps = [ |
| 715 "//base:base_java_test_support", | 552 "//base:base_java_test_support", |
| 716 "//webrtc/examples:AppRTCMobile_javalib", | 553 "//webrtc/examples:AppRTCMobile_javalib", |
| 717 "//webrtc/sdk/android:libjingle_peerconnection_java", | 554 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 718 ] | 555 ] |
| 719 } | 556 } |
| 720 } | 557 } |
| 721 } | 558 } |
| OLD | NEW |