| OLD | NEW |
| 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("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 import("audio_coding/audio_coding.gni") | 10 import("audio_coding/audio_coding.gni") |
| 11 | 11 |
| 12 declare_args() { | |
| 13 # Desktop capturer is supported only on Windows, OSX and Linux. | |
| 14 rtc_desktop_capture_supported = is_win || is_mac || is_linux | |
| 15 } | |
| 16 | |
| 17 group("modules") { | 12 group("modules") { |
| 18 public_deps = [ | 13 public_deps = [ |
| 19 "audio_coding", | 14 "audio_coding", |
| 20 "audio_conference_mixer", | 15 "audio_conference_mixer", |
| 21 "audio_device", | 16 "audio_device", |
| 22 "audio_mixer", | 17 "audio_mixer", |
| 23 "audio_processing", | 18 "audio_processing", |
| 24 "bitrate_controller", | 19 "bitrate_controller", |
| 25 "congestion_controller", | 20 "congestion_controller", |
| 26 "desktop_capture", | 21 "desktop_capture", |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 if (is_ios) { | 236 if (is_ios) { |
| 242 bundle_data("modules_unittests_bundle_data") { | 237 bundle_data("modules_unittests_bundle_data") { |
| 243 testonly = true | 238 testonly = true |
| 244 sources = modules_unittests_resources | 239 sources = modules_unittests_resources |
| 245 outputs = [ | 240 outputs = [ |
| 246 "{{bundle_resources_dir}}/{{source_file_part}}", | 241 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 247 ] | 242 ] |
| 248 } | 243 } |
| 249 } | 244 } |
| 250 | 245 |
| 251 rtc_source_set("audio_network_adaptor_unittests") { | |
| 252 # Put sources for unittests of audio network adaptor in a separate | |
| 253 # rtc_source_set to solve name collision on bitrate_controller_unittest.cc. | |
| 254 testonly = true | |
| 255 sources = [ | |
| 256 "audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc
", | |
| 257 "audio_coding/audio_network_adaptor/bitrate_controller_unittest.cc", | |
| 258 "audio_coding/audio_network_adaptor/channel_controller_unittest.cc", | |
| 259 "audio_coding/audio_network_adaptor/controller_manager_unittest.cc", | |
| 260 "audio_coding/audio_network_adaptor/dtx_controller_unittest.cc", | |
| 261 "audio_coding/audio_network_adaptor/fec_controller_unittest.cc", | |
| 262 "audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc", | |
| 263 "audio_coding/audio_network_adaptor/mock/mock_controller.h", | |
| 264 "audio_coding/audio_network_adaptor/mock/mock_controller_manager.h", | |
| 265 ] | |
| 266 deps = [ | |
| 267 "audio_coding:audio_network_adaptor", | |
| 268 "//testing/gmock", | |
| 269 "//testing/gtest", | |
| 270 ] | |
| 271 if (rtc_enable_protobuf) { | |
| 272 deps += [ "audio_coding:ana_config_proto" ] | |
| 273 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ] | |
| 274 } | |
| 275 if (!build_with_chromium && is_clang) { | |
| 276 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 277 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 278 } | |
| 279 } | |
| 280 | |
| 281 rtc_test("modules_unittests") { | 246 rtc_test("modules_unittests") { |
| 282 testonly = true | 247 testonly = true |
| 283 | 248 |
| 284 defines = audio_coding_defines | |
| 285 deps = [] | 249 deps = [] |
| 250 defines = [] |
| 286 sources = [ | 251 sources = [ |
| 287 "audio_coding/acm2/acm_receiver_unittest.cc", | |
| 288 "audio_coding/acm2/audio_coding_module_unittest.cc", | |
| 289 "audio_coding/acm2/call_statistics_unittest.cc", | |
| 290 "audio_coding/acm2/codec_manager_unittest.cc", | |
| 291 "audio_coding/acm2/rent_a_codec_unittest.cc", | |
| 292 "audio_coding/codecs/audio_decoder_factory_unittest.cc", | |
| 293 "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc", | |
| 294 "audio_coding/codecs/cng/cng_unittest.cc", | |
| 295 "audio_coding/codecs/ilbc/ilbc_unittest.cc", | |
| 296 "audio_coding/codecs/isac/fix/source/filterbanks_unittest.cc", | |
| 297 "audio_coding/codecs/isac/fix/source/filters_unittest.cc", | |
| 298 "audio_coding/codecs/isac/fix/source/lpc_masking_model_unittest.cc", | |
| 299 "audio_coding/codecs/isac/fix/source/transform_unittest.cc", | |
| 300 "audio_coding/codecs/isac/main/source/audio_encoder_isac_unittest.cc", | |
| 301 "audio_coding/codecs/isac/main/source/isac_unittest.cc", | |
| 302 "audio_coding/codecs/isac/unittest.cc", | |
| 303 "audio_coding/codecs/legacy_encoded_audio_frame_unittest.cc", | |
| 304 "audio_coding/codecs/mock/mock_audio_encoder.cc", | |
| 305 "audio_coding/codecs/opus/audio_encoder_opus_unittest.cc", | |
| 306 "audio_coding/codecs/opus/opus_unittest.cc", | |
| 307 "audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc", | |
| 308 "audio_coding/neteq/audio_multi_vector_unittest.cc", | |
| 309 "audio_coding/neteq/audio_vector_unittest.cc", | |
| 310 "audio_coding/neteq/background_noise_unittest.cc", | |
| 311 "audio_coding/neteq/buffer_level_filter_unittest.cc", | |
| 312 "audio_coding/neteq/comfort_noise_unittest.cc", | |
| 313 "audio_coding/neteq/decision_logic_unittest.cc", | |
| 314 "audio_coding/neteq/decoder_database_unittest.cc", | |
| 315 "audio_coding/neteq/delay_manager_unittest.cc", | |
| 316 "audio_coding/neteq/delay_peak_detector_unittest.cc", | |
| 317 "audio_coding/neteq/dsp_helper_unittest.cc", | |
| 318 "audio_coding/neteq/dtmf_buffer_unittest.cc", | |
| 319 "audio_coding/neteq/dtmf_tone_generator_unittest.cc", | |
| 320 "audio_coding/neteq/expand_unittest.cc", | |
| 321 "audio_coding/neteq/merge_unittest.cc", | |
| 322 "audio_coding/neteq/mock/mock_audio_decoder.h", | |
| 323 "audio_coding/neteq/mock/mock_buffer_level_filter.h", | |
| 324 "audio_coding/neteq/mock/mock_decoder_database.h", | |
| 325 "audio_coding/neteq/mock/mock_delay_manager.h", | |
| 326 "audio_coding/neteq/mock/mock_delay_peak_detector.h", | |
| 327 "audio_coding/neteq/mock/mock_dtmf_buffer.h", | |
| 328 "audio_coding/neteq/mock/mock_dtmf_tone_generator.h", | |
| 329 "audio_coding/neteq/mock/mock_expand.h", | |
| 330 "audio_coding/neteq/mock/mock_external_decoder_pcm16b.h", | |
| 331 "audio_coding/neteq/mock/mock_packet_buffer.h", | |
| 332 "audio_coding/neteq/mock/mock_red_payload_splitter.h", | |
| 333 "audio_coding/neteq/nack_tracker_unittest.cc", | |
| 334 "audio_coding/neteq/neteq_external_decoder_unittest.cc", | |
| 335 "audio_coding/neteq/neteq_impl_unittest.cc", | |
| 336 "audio_coding/neteq/neteq_network_stats_unittest.cc", | |
| 337 "audio_coding/neteq/neteq_stereo_unittest.cc", | |
| 338 "audio_coding/neteq/neteq_unittest.cc", | |
| 339 "audio_coding/neteq/normal_unittest.cc", | |
| 340 "audio_coding/neteq/packet_buffer_unittest.cc", | |
| 341 "audio_coding/neteq/post_decode_vad_unittest.cc", | |
| 342 "audio_coding/neteq/random_vector_unittest.cc", | |
| 343 "audio_coding/neteq/red_payload_splitter_unittest.cc", | |
| 344 "audio_coding/neteq/sync_buffer_unittest.cc", | |
| 345 "audio_coding/neteq/tick_timer_unittest.cc", | |
| 346 "audio_coding/neteq/time_stretch_unittest.cc", | |
| 347 "audio_coding/neteq/timestamp_scaler_unittest.cc", | |
| 348 "audio_coding/neteq/tools/input_audio_file_unittest.cc", | |
| 349 "audio_coding/neteq/tools/packet_unittest.cc", | |
| 350 "audio_conference_mixer/test/audio_conference_mixer_unittest.cc", | |
| 351 "audio_device/fine_audio_buffer_unittest.cc", | |
| 352 "audio_mixer/audio_frame_manipulator_unittest.cc", | |
| 353 "audio_mixer/audio_mixer_impl_unittest.cc", | |
| 354 "audio_processing/aec/echo_cancellation_unittest.cc", | |
| 355 "audio_processing/aec/system_delay_unittest.cc", | |
| 356 "audio_processing/agc/agc_manager_direct_unittest.cc", | |
| 357 "audio_processing/agc/loudness_histogram_unittest.cc", | |
| 358 "audio_processing/agc/mock_agc.h", | |
| 359 "audio_processing/audio_buffer_unittest.cc", | |
| 360 "audio_processing/beamformer/array_util_unittest.cc", | |
| 361 "audio_processing/beamformer/complex_matrix_unittest.cc", | |
| 362 "audio_processing/beamformer/covariance_matrix_generator_unittest.cc", | |
| 363 "audio_processing/beamformer/matrix_unittest.cc", | |
| 364 "audio_processing/beamformer/mock_nonlinear_beamformer.h", | |
| 365 "audio_processing/beamformer/nonlinear_beamformer_unittest.cc", | |
| 366 "audio_processing/config_unittest.cc", | |
| 367 "audio_processing/echo_cancellation_impl_unittest.cc", | |
| 368 "audio_processing/splitting_filter_unittest.cc", | |
| 369 "audio_processing/transient/dyadic_decimator_unittest.cc", | |
| 370 "audio_processing/transient/file_utils.cc", | |
| 371 "audio_processing/transient/file_utils.h", | |
| 372 "audio_processing/transient/file_utils_unittest.cc", | |
| 373 "audio_processing/transient/moving_moments_unittest.cc", | |
| 374 "audio_processing/transient/transient_detector_unittest.cc", | |
| 375 "audio_processing/transient/transient_suppressor_unittest.cc", | |
| 376 "audio_processing/transient/wpd_node_unittest.cc", | |
| 377 "audio_processing/transient/wpd_tree_unittest.cc", | |
| 378 "audio_processing/utility/block_mean_calculator_unittest.cc", | |
| 379 "audio_processing/utility/delay_estimator_unittest.cc", | |
| 380 "audio_processing/vad/gmm_unittest.cc", | |
| 381 "audio_processing/vad/pitch_based_vad_unittest.cc", | |
| 382 "audio_processing/vad/pitch_internal_unittest.cc", | |
| 383 "audio_processing/vad/pole_zero_filter_unittest.cc", | |
| 384 "audio_processing/vad/standalone_vad_unittest.cc", | |
| 385 "audio_processing/vad/vad_audio_proc_unittest.cc", | |
| 386 "audio_processing/vad/vad_circular_buffer_unittest.cc", | |
| 387 "audio_processing/vad/voice_activity_detector_unittest.cc", | |
| 388 "bitrate_controller/bitrate_controller_unittest.cc", | |
| 389 "bitrate_controller/send_side_bandwidth_estimation_unittest.cc", | |
| 390 "congestion_controller/congestion_controller_unittest.cc", | |
| 391 "congestion_controller/delay_based_bwe_unittest.cc", | |
| 392 "congestion_controller/delay_based_bwe_unittest_helper.cc", | |
| 393 "congestion_controller/delay_based_bwe_unittest_helper.h", | |
| 394 "congestion_controller/median_slope_estimator_unittest.cc", | |
| 395 "congestion_controller/probe_bitrate_estimator_unittest.cc", | |
| 396 "congestion_controller/probe_controller_unittest.cc", | |
| 397 "congestion_controller/probing_interval_estimator_unittest.cc", | |
| 398 "congestion_controller/transport_feedback_adapter_unittest.cc", | |
| 399 "congestion_controller/trendline_estimator_unittest.cc", | |
| 400 "media_file/media_file_unittest.cc", | |
| 401 "module_common_types_unittest.cc", | 252 "module_common_types_unittest.cc", |
| 402 "pacing/alr_detector_unittest.cc", | |
| 403 "pacing/bitrate_prober_unittest.cc", | |
| 404 "pacing/paced_sender_unittest.cc", | |
| 405 "pacing/packet_router_unittest.cc", | |
| 406 "remote_bitrate_estimator/aimd_rate_control_unittest.cc", | |
| 407 "remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h", | |
| 408 "remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h", | |
| 409 "remote_bitrate_estimator/inter_arrival_unittest.cc", | |
| 410 "remote_bitrate_estimator/overuse_detector_unittest.cc", | |
| 411 "remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.
cc", | |
| 412 "remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.
cc", | |
| 413 "remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc", | |
| 414 "remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h", | |
| 415 "remote_bitrate_estimator/remote_estimator_proxy_unittest.cc", | |
| 416 "remote_bitrate_estimator/send_time_history_unittest.cc", | |
| 417 "remote_bitrate_estimator/test/bwe_test_framework_unittest.cc", | |
| 418 "remote_bitrate_estimator/test/bwe_unittest.cc", | |
| 419 "remote_bitrate_estimator/test/estimators/nada_unittest.cc", | |
| 420 "remote_bitrate_estimator/test/metric_recorder_unittest.cc", | |
| 421 "rtp_rtcp/mocks/mock_rtp_rtcp.h", | |
| 422 "rtp_rtcp/source/byte_io_unittest.cc", | |
| 423 "rtp_rtcp/source/fec_test_helper.cc", | |
| 424 "rtp_rtcp/source/fec_test_helper.h", | |
| 425 "rtp_rtcp/source/flexfec_header_reader_writer_unittest.cc", | |
| 426 "rtp_rtcp/source/flexfec_receiver_unittest.cc", | |
| 427 "rtp_rtcp/source/flexfec_sender_unittest.cc", | |
| 428 "rtp_rtcp/source/nack_rtx_unittest.cc", | |
| 429 "rtp_rtcp/source/packet_loss_stats_unittest.cc", | |
| 430 "rtp_rtcp/source/playout_delay_oracle_unittest.cc", | |
| 431 "rtp_rtcp/source/receive_statistics_unittest.cc", | |
| 432 "rtp_rtcp/source/remote_ntp_time_estimator_unittest.cc", | |
| 433 "rtp_rtcp/source/rtcp_packet/app_unittest.cc", | |
| 434 "rtp_rtcp/source/rtcp_packet/bye_unittest.cc", | |
| 435 "rtp_rtcp/source/rtcp_packet/common_header_unittest.cc", | |
| 436 "rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc", | |
| 437 "rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc", | |
| 438 "rtp_rtcp/source/rtcp_packet/extended_jitter_report_unittest.cc", | |
| 439 "rtp_rtcp/source/rtcp_packet/extended_reports_unittest.cc", | |
| 440 "rtp_rtcp/source/rtcp_packet/fir_unittest.cc", | |
| 441 "rtp_rtcp/source/rtcp_packet/nack_unittest.cc", | |
| 442 "rtp_rtcp/source/rtcp_packet/pli_unittest.cc", | |
| 443 "rtp_rtcp/source/rtcp_packet/rapid_resync_request_unittest.cc", | |
| 444 "rtp_rtcp/source/rtcp_packet/receiver_report_unittest.cc", | |
| 445 "rtp_rtcp/source/rtcp_packet/remb_unittest.cc", | |
| 446 "rtp_rtcp/source/rtcp_packet/report_block_unittest.cc", | |
| 447 "rtp_rtcp/source/rtcp_packet/rpsi_unittest.cc", | |
| 448 "rtp_rtcp/source/rtcp_packet/rrtr_unittest.cc", | |
| 449 "rtp_rtcp/source/rtcp_packet/sdes_unittest.cc", | |
| 450 "rtp_rtcp/source/rtcp_packet/sender_report_unittest.cc", | |
| 451 "rtp_rtcp/source/rtcp_packet/sli_unittest.cc", | |
| 452 "rtp_rtcp/source/rtcp_packet/target_bitrate_unittest.cc", | |
| 453 "rtp_rtcp/source/rtcp_packet/tmmbn_unittest.cc", | |
| 454 "rtp_rtcp/source/rtcp_packet/tmmbr_unittest.cc", | |
| 455 "rtp_rtcp/source/rtcp_packet/transport_feedback_unittest.cc", | |
| 456 "rtp_rtcp/source/rtcp_packet/voip_metric_unittest.cc", | |
| 457 "rtp_rtcp/source/rtcp_packet_unittest.cc", | |
| 458 "rtp_rtcp/source/rtcp_receiver_unittest.cc", | |
| 459 "rtp_rtcp/source/rtcp_sender_unittest.cc", | |
| 460 "rtp_rtcp/source/rtcp_utility_unittest.cc", | |
| 461 "rtp_rtcp/source/rtp_fec_unittest.cc", | |
| 462 "rtp_rtcp/source/rtp_format_h264_unittest.cc", | |
| 463 "rtp_rtcp/source/rtp_format_vp8_test_helper.cc", | |
| 464 "rtp_rtcp/source/rtp_format_vp8_test_helper.h", | |
| 465 "rtp_rtcp/source/rtp_format_vp8_unittest.cc", | |
| 466 "rtp_rtcp/source/rtp_format_vp9_unittest.cc", | |
| 467 "rtp_rtcp/source/rtp_header_extension_unittest.cc", | |
| 468 "rtp_rtcp/source/rtp_packet_history_unittest.cc", | |
| 469 "rtp_rtcp/source/rtp_packet_unittest.cc", | |
| 470 "rtp_rtcp/source/rtp_payload_registry_unittest.cc", | |
| 471 "rtp_rtcp/source/rtp_rtcp_impl_unittest.cc", | |
| 472 "rtp_rtcp/source/rtp_sender_unittest.cc", | |
| 473 "rtp_rtcp/source/rtp_utility_unittest.cc", | |
| 474 "rtp_rtcp/source/time_util_unittest.cc", | |
| 475 "rtp_rtcp/source/ulpfec_generator_unittest.cc", | |
| 476 "rtp_rtcp/source/ulpfec_header_reader_writer_unittest.cc", | |
| 477 "rtp_rtcp/source/ulpfec_receiver_unittest.cc", | |
| 478 "rtp_rtcp/source/vp8_partition_aggregator_unittest.cc", | |
| 479 "rtp_rtcp/test/testAPI/test_api.cc", | |
| 480 "rtp_rtcp/test/testAPI/test_api.h", | |
| 481 "rtp_rtcp/test/testAPI/test_api_audio.cc", | |
| 482 "rtp_rtcp/test/testAPI/test_api_rtcp.cc", | |
| 483 "rtp_rtcp/test/testAPI/test_api_video.cc", | |
| 484 "utility/source/process_thread_impl_unittest.cc", | |
| 485 "video_coding/codecs/test/packet_manipulator_unittest.cc", | |
| 486 "video_coding/codecs/test/stats_unittest.cc", | |
| 487 "video_coding/codecs/test/videoprocessor_unittest.cc", | |
| 488 "video_coding/codecs/vp8/default_temporal_layers_unittest.cc", | |
| 489 "video_coding/codecs/vp8/reference_picture_selection_unittest.cc", | |
| 490 "video_coding/codecs/vp8/screenshare_layers_unittest.cc", | |
| 491 "video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc", | |
| 492 "video_coding/codecs/vp8/simulcast_unittest.cc", | |
| 493 "video_coding/codecs/vp8/simulcast_unittest.h", | |
| 494 "video_coding/decoding_state_unittest.cc", | |
| 495 "video_coding/frame_buffer2_unittest.cc", | |
| 496 "video_coding/h264_sprop_parameter_sets_unittest.cc", | |
| 497 "video_coding/h264_sps_pps_tracker_unittest.cc", | |
| 498 "video_coding/histogram_unittest.cc", | |
| 499 "video_coding/include/mock/mock_vcm_callbacks.h", | |
| 500 "video_coding/jitter_buffer_unittest.cc", | |
| 501 "video_coding/jitter_estimator_tests.cc", | |
| 502 "video_coding/nack_module_unittest.cc", | |
| 503 "video_coding/protection_bitrate_calculator_unittest.cc", | |
| 504 "video_coding/receiver_unittest.cc", | |
| 505 "video_coding/rtp_frame_reference_finder_unittest.cc", | |
| 506 "video_coding/sequence_number_util_unittest.cc", | |
| 507 "video_coding/session_info_unittest.cc", | |
| 508 "video_coding/test/stream_generator.cc", | |
| 509 "video_coding/test/stream_generator.h", | |
| 510 "video_coding/timing_unittest.cc", | |
| 511 "video_coding/utility/default_video_bitrate_allocator_unittest.cc", | |
| 512 "video_coding/utility/frame_dropper_unittest.cc", | |
| 513 "video_coding/utility/ivf_file_writer_unittest.cc", | |
| 514 "video_coding/utility/moving_average_unittest.cc", | |
| 515 "video_coding/utility/quality_scaler_unittest.cc", | |
| 516 "video_coding/utility/simulcast_rate_allocator_unittest.cc", | |
| 517 "video_coding/video_coding_robustness_unittest.cc", | |
| 518 "video_coding/video_packet_buffer_unittest.cc", | |
| 519 "video_coding/video_receiver_unittest.cc", | |
| 520 "video_coding/video_sender_unittest.cc", | |
| 521 "video_processing/test/denoiser_test.cc", | |
| 522 ] | 253 ] |
| 523 | 254 |
| 524 if (apm_debug_dump) { | 255 if (!build_with_chromium && is_clang) { |
| 525 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] | |
| 526 } else { | |
| 527 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] | |
| 528 } | |
| 529 | |
| 530 if (rtc_enable_intelligibility_enhancer) { | |
| 531 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] | |
| 532 sources += [ | |
| 533 "audio_processing/intelligibility/intelligibility_enhancer_unittest.cc", | |
| 534 "audio_processing/intelligibility/intelligibility_utils_unittest.cc", | |
| 535 ] | |
| 536 } else { | |
| 537 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] | |
| 538 } | |
| 539 | |
| 540 if (rtc_libvpx_build_vp9) { | |
| 541 sources += | |
| 542 [ "video_coding/codecs/vp9/vp9_screenshare_layers_unittest.cc" ] | |
| 543 } | |
| 544 | |
| 545 if (rtc_use_h264) { | |
| 546 sources += [ "video_coding/codecs/h264/h264_encoder_impl_unittest.cc" ] | |
| 547 } | |
| 548 | |
| 549 if (rtc_desktop_capture_supported || is_android) { | |
| 550 deps += [ "desktop_capture" ] | |
| 551 sources += [ | |
| 552 "desktop_capture/desktop_region_unittest.cc", | |
| 553 "desktop_capture/differ_block_unittest.cc", | |
| 554 ] | |
| 555 } | |
| 556 | |
| 557 if (rtc_desktop_capture_supported) { | |
| 558 deps += [ "desktop_capture:desktop_capture_mock" ] | |
| 559 sources += [ | |
| 560 "desktop_capture/desktop_and_cursor_composer_unittest.cc", | |
| 561 "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc", | |
| 562 "desktop_capture/desktop_frame_rotation_unittest.cc", | |
| 563 "desktop_capture/mouse_cursor_monitor_unittest.cc", | |
| 564 "desktop_capture/rgba_color_unittest.cc", | |
| 565 "desktop_capture/screen_capturer_helper_unittest.cc", | |
| 566 "desktop_capture/screen_capturer_mac_unittest.cc", | |
| 567 "desktop_capture/screen_capturer_mock_objects.h", | |
| 568 "desktop_capture/screen_capturer_unittest.cc", | |
| 569 "desktop_capture/test_utils.cc", | |
| 570 "desktop_capture/test_utils.h", | |
| 571 "desktop_capture/test_utils_unittest.cc", | |
| 572 "desktop_capture/win/cursor_unittest.cc", | |
| 573 "desktop_capture/win/cursor_unittest_resources.h", | |
| 574 "desktop_capture/win/cursor_unittest_resources.rc", | |
| 575 "desktop_capture/window_capturer_unittest.cc", | |
| 576 ] | |
| 577 } | |
| 578 | |
| 579 if (rtc_prefer_fixed_point) { | |
| 580 defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ] | |
| 581 } else { | |
| 582 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] | |
| 583 } | |
| 584 | |
| 585 if (rtc_enable_protobuf) { | |
| 586 defines += [ | |
| 587 "WEBRTC_AUDIOPROC_DEBUG_DUMP", | |
| 588 "WEBRTC_NETEQ_UNITTEST_BITEXACT", | |
| 589 ] | |
| 590 deps += [ | |
| 591 "audio_coding:neteq_unittest_proto", | |
| 592 "audio_processing:audioproc_protobuf_utils", | |
| 593 "audio_processing:audioproc_unittest_proto", | |
| 594 ] | |
| 595 sources += [ | |
| 596 "audio_processing/aec3/block_framer_unittest.cc", | |
| 597 "audio_processing/aec3/block_processor_unittest.cc", | |
| 598 "audio_processing/aec3/cascaded_biquad_filter_unittest.cc", | |
| 599 "audio_processing/aec3/echo_canceller3_unittest.cc", | |
| 600 "audio_processing/aec3/frame_blocker_unittest.cc", | |
| 601 "audio_processing/aec3/mock/mock_block_processor.h", | |
| 602 "audio_processing/audio_processing_impl_locking_unittest.cc", | |
| 603 "audio_processing/audio_processing_impl_unittest.cc", | |
| 604 "audio_processing/audio_processing_unittest.cc", | |
| 605 "audio_processing/echo_cancellation_bit_exact_unittest.cc", | |
| 606 "audio_processing/echo_control_mobile_unittest.cc", | |
| 607 "audio_processing/echo_detector/circular_buffer_unittest.cc", | |
| 608 "audio_processing/echo_detector/mean_variance_estimator_unittest.cc", | |
| 609 "audio_processing/echo_detector/moving_max_unittest.cc", | |
| 610 "audio_processing/echo_detector/normalized_covariance_estimator_unittest
.cc", | |
| 611 "audio_processing/gain_control_unittest.cc", | |
| 612 "audio_processing/level_controller/level_controller_unittest.cc", | |
| 613 "audio_processing/level_estimator_unittest.cc", | |
| 614 "audio_processing/low_cut_filter_unittest.cc", | |
| 615 "audio_processing/noise_suppression_unittest.cc", | |
| 616 "audio_processing/residual_echo_detector_unittest.cc", | |
| 617 "audio_processing/rms_level_unittest.cc", | |
| 618 "audio_processing/test/bitexactness_tools.cc", | |
| 619 "audio_processing/test/bitexactness_tools.h", | |
| 620 "audio_processing/test/debug_dump_replayer.cc", | |
| 621 "audio_processing/test/debug_dump_replayer.h", | |
| 622 "audio_processing/test/debug_dump_test.cc", | |
| 623 "audio_processing/test/test_utils.h", | |
| 624 "audio_processing/voice_detection_unittest.cc", | |
| 625 ] | |
| 626 } | |
| 627 | |
| 628 if (rtc_build_libvpx) { | |
| 629 deps += [ rtc_libvpx_dir ] | |
| 630 } | |
| 631 | |
| 632 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | |
| 633 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 634 | |
| 635 if ((!build_with_chromium || is_win) && is_clang) { | |
| 636 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 256 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 637 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 257 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 638 } | 258 } |
| 639 | 259 |
| 640 if (is_win) { | |
| 641 cflags = [ | |
| 642 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | |
| 643 "/wd4373", # virtual function override. | |
| 644 ] | |
| 645 } | |
| 646 | |
| 647 deps += [ | 260 deps += [ |
| 648 ":audio_network_adaptor_unittests", | |
| 649 "..:webrtc_common", | |
| 650 "../api:transport_api", | |
| 651 "../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. | |
| 652 "../base:rtc_base_tests_utils", | |
| 653 "../common_audio", | |
| 654 "../common_video", | |
| 655 "../system_wrappers", | |
| 656 "../system_wrappers:metrics_default", | |
| 657 "../test:rtp_test_utils", | |
| 658 "../test:test_common", | |
| 659 "../test:test_main", | 261 "../test:test_main", |
| 660 "../test:video_test_common", | 262 "audio_coding:audio_coding_unittests", |
| 661 "audio_coding", | 263 "audio_device:audio_device_unittests", |
| 662 "audio_coding:acm_receive_test", | 264 "audio_mixer:audio_mixer_unittests", |
| 663 "audio_coding:acm_send_test", | 265 "audio_processing:audio_processing_unittests", |
| 664 "audio_coding:builtin_audio_decoder_factory", | 266 "bitrate_controller:bitrate_controller_unittests", |
| 665 "audio_coding:cng", | 267 "congestion_controller:congestion_controller_unittests", |
| 666 "audio_coding:isac_fix", | 268 "desktop_capture:desktop_capture_unittests", |
| 667 "audio_coding:neteq", | 269 "media_file:media_file_unittests", |
| 668 "audio_coding:neteq_test_support", | 270 "pacing:pacing_unittests", |
| 669 "audio_coding:neteq_unittest_tools", | 271 "remote_bitrate_estimator:remote_bitrate_estimator_unittests", |
| 670 "audio_coding:pcm16b", | 272 "rtp_rtcp:rtp_rtcp_unittests", |
| 671 "audio_coding:red", | 273 "utility:utility_unittests", |
| 672 "audio_coding:webrtc_opus", | 274 "video_coding:video_coding_unittests", |
| 673 "audio_conference_mixer", | 275 "video_processing:video_processing_unittests", |
| 674 "audio_device", | |
| 675 "audio_mixer", | |
| 676 "audio_processing", | |
| 677 "audio_processing:audioproc_test_utils", | |
| 678 "bitrate_controller", | |
| 679 "media_file", | |
| 680 "pacing", | |
| 681 "remote_bitrate_estimator", | |
| 682 "remote_bitrate_estimator:bwe_simulator_lib", | |
| 683 "rtp_rtcp", | |
| 684 "utility", | |
| 685 "video_capture", | |
| 686 "video_coding", | |
| 687 "video_coding:video_codecs_test_framework", | |
| 688 "video_coding:webrtc_vp8", | |
| 689 "video_coding:webrtc_vp9", | |
| 690 "video_processing", | |
| 691 "//testing/gmock", | |
| 692 "//testing/gtest", | |
| 693 "//third_party/gflags", | |
| 694 ] | 276 ] |
| 695 | 277 |
| 696 data = modules_unittests_resources | 278 data = modules_unittests_resources |
| 697 | 279 |
| 698 if (is_android) { | 280 if (is_android) { |
| 699 deps += [ | 281 deps += [ |
| 700 "//testing/android/native_test:native_test_support", | 282 "//testing/android/native_test:native_test_support", |
| 701 "//webrtc/sdk/android:libjingle_peerconnection_java", | 283 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 702 ] | 284 ] |
| 703 | |
| 704 # Need to disable error due to the line in | |
| 705 # base/android/jni_android.h triggering it: | |
| 706 # const BASE_EXPORT jobject GetApplicationContext() | |
| 707 # error: type qualifiers ignored on function return type | |
| 708 cflags = [ "-Wno-ignored-qualifiers" ] | |
| 709 sources += [ | |
| 710 "audio_device/android/audio_device_unittest.cc", | |
| 711 "audio_device/android/audio_manager_unittest.cc", | |
| 712 "audio_device/android/ensure_initialized.cc", | |
| 713 "audio_device/android/ensure_initialized.h", | |
| 714 ] | |
| 715 shard_timeout = 900 | 285 shard_timeout = 900 |
| 716 } | 286 } |
| 717 if (is_ios) { | 287 if (is_ios) { |
| 718 info_plist = "//webrtc/test/ios/Info.plist" | 288 info_plist = "//webrtc/test/ios/Info.plist" |
| 719 deps += [ ":modules_unittests_bundle_data" ] | 289 deps += [ ":modules_unittests_bundle_data" ] |
| 720 configs += [ | 290 configs += [ "..:common_objc" ] |
| 721 "..:common_objc", | |
| 722 "//build/config/compiler:enable_arc", | |
| 723 ] | |
| 724 | |
| 725 sources += [ "audio_device/ios/objc/RTCAudioSessionTest.mm" ] | |
| 726 | |
| 727 if (target_cpu != "x64") { | |
| 728 sources += [ "audio_device/ios/audio_device_unittest_ios.cc" ] | |
| 729 } | |
| 730 | |
| 731 ldflags = [ "-ObjC" ] | 291 ldflags = [ "-ObjC" ] |
| 732 } | 292 } |
| 733 } | 293 } |
| 734 | 294 |
| 735 rtc_test("bwe_simulator") { | 295 rtc_test("bwe_simulator") { |
| 736 testonly = true | 296 testonly = true |
| 737 | 297 |
| 738 deps = [] | 298 deps = [] |
| 739 sources = [ | 299 sources = [ |
| 740 "remote_bitrate_estimator/bwe_simulations.cc", | 300 "remote_bitrate_estimator/bwe_simulations.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 758 "../test:test_common", | 318 "../test:test_common", |
| 759 "../test:test_main", | 319 "../test:test_main", |
| 760 "remote_bitrate_estimator:bwe_simulator_lib", | 320 "remote_bitrate_estimator:bwe_simulator_lib", |
| 761 "video_capture", | 321 "video_capture", |
| 762 "//testing/gmock", | 322 "//testing/gmock", |
| 763 "//testing/gtest", | 323 "//testing/gtest", |
| 764 "//third_party/gflags", | 324 "//third_party/gflags", |
| 765 ] | 325 ] |
| 766 } | 326 } |
| 767 } | 327 } |
| OLD | NEW |