kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1 | # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("../build/webrtc.gni") |
| 10 | import("audio_coding/audio_coding.gni") |
| 11 | import("//testing/test.gni") |
| 12 | |
| 13 | declare_args() { |
| 14 | # Desktop capturer is supported only on Windows, OSX and Linux. |
| 15 | rtc_desktop_capture_supported = is_win || is_mac || is_linux |
| 16 | } |
| 17 | |
| 18 | group("modules") { |
| 19 | deps = [ |
| 20 | "audio_coding", |
| 21 | "audio_conference_mixer", |
| 22 | "audio_device", |
aleloi | 09f4510 | 2016-07-28 03:52:15 -0700 | [diff] [blame] | 23 | "audio_mixer", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 24 | "audio_processing", |
| 25 | "bitrate_controller", |
| 26 | "desktop_capture", |
| 27 | "media_file", |
| 28 | "rtp_rtcp", |
| 29 | "utility", |
| 30 | "video_coding", |
| 31 | "video_processing", |
| 32 | ] |
| 33 | } |
| 34 | |
| 35 | if (rtc_include_tests) { |
ehmaldonado | f98dc10 | 2016-08-03 10:46:47 -0700 | [diff] [blame] | 36 | test("modules_tests") { |
| 37 | testonly = true |
| 38 | |
| 39 | configs += [ "..:common_config" ] |
| 40 | public_configs = [ "..:common_inherited_config" ] |
| 41 | |
| 42 | videoprocessor_defines = [] |
| 43 | if (rtc_use_h264) { |
| 44 | videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
| 45 | } |
| 46 | |
| 47 | defines = audio_coding_defines + videoprocessor_defines |
| 48 | |
| 49 | deps = [ |
| 50 | "..:webrtc_common", |
| 51 | "../common_video", |
| 52 | "../modules/audio_coding", |
| 53 | "../modules/rtp_rtcp", |
| 54 | "../modules/utility", |
| 55 | "../modules/video_coding", |
| 56 | "../modules/video_coding:video_codecs_test_framework", |
| 57 | "../system_wrappers", |
| 58 | "../test:test_support", |
| 59 | "../test:test_support_main", |
| 60 | "//testing/gtest", |
| 61 | ] |
| 62 | |
| 63 | sources = [ |
| 64 | "audio_coding/test/APITest.cc", |
| 65 | "audio_coding/test/Channel.cc", |
| 66 | "audio_coding/test/EncodeDecodeTest.cc", |
| 67 | "audio_coding/test/PCMFile.cc", |
| 68 | "audio_coding/test/PacketLossTest.cc", |
| 69 | "audio_coding/test/RTPFile.cc", |
| 70 | "audio_coding/test/TestAllCodecs.cc", |
| 71 | "audio_coding/test/TestRedFec.cc", |
| 72 | "audio_coding/test/TestStereo.cc", |
| 73 | "audio_coding/test/TestVADDTX.cc", |
| 74 | "audio_coding/test/Tester.cc", |
| 75 | "audio_coding/test/TwoWayCommunication.cc", |
| 76 | "audio_coding/test/iSACTest.cc", |
| 77 | "audio_coding/test/opus_test.cc", |
| 78 | "audio_coding/test/target_delay_unittest.cc", |
| 79 | "audio_coding/test/utility.cc", |
| 80 | "rtp_rtcp/test/testFec/test_fec.cc", |
| 81 | "video_coding/codecs/test/videoprocessor_integrationtest.cc", |
| 82 | "video_coding/codecs/vp8/test/vp8_impl_unittest.cc", |
| 83 | ] |
| 84 | |
| 85 | if (is_android) { |
| 86 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 87 | shard_timeout = 900 |
ehmaldonado | f98dc10 | 2016-08-03 10:46:47 -0700 | [diff] [blame] | 88 | } |
| 89 | if (is_android || is_ios) { |
| 90 | data = [ |
| 91 | "//resources/audio_coding/testfile32kHz.pcm", |
| 92 | "//resources/audio_coding/teststereo32kHz.pcm", |
| 93 | "//resources/foreman_cif.yuv", |
| 94 | "//resources/paris_qcif.yuv", |
| 95 | ] |
| 96 | } |
| 97 | |
| 98 | if (is_clang) { |
| 99 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 100 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 101 | } |
| 102 | if (is_win) { |
| 103 | cflags = [ |
| 104 | # TODO(phoglund): get rid of 4373 supression when |
| 105 | # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
| 106 | # legacy warning for ignoring const / volatile in signatures. |
| 107 | "/wd4373", |
| 108 | ] |
| 109 | } |
| 110 | } |
| 111 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 112 | test("modules_unittests") { |
| 113 | testonly = true |
| 114 | |
| 115 | defines = audio_coding_defines |
| 116 | deps = [] |
| 117 | sources = [ |
| 118 | "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", |
| 119 | "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", |
| 120 | "audio_coding/acm2/call_statistics_unittest.cc", |
| 121 | "audio_coding/acm2/codec_manager_unittest.cc", |
| 122 | "audio_coding/acm2/initial_delay_manager_unittest.cc", |
| 123 | "audio_coding/acm2/rent_a_codec_unittest.cc", |
| 124 | "audio_coding/codecs/audio_decoder_factory_unittest.cc", |
| 125 | "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc", |
| 126 | "audio_coding/codecs/cng/cng_unittest.cc", |
| 127 | "audio_coding/codecs/isac/fix/source/filterbanks_unittest.cc", |
| 128 | "audio_coding/codecs/isac/fix/source/filters_unittest.cc", |
| 129 | "audio_coding/codecs/isac/fix/source/lpc_masking_model_unittest.cc", |
| 130 | "audio_coding/codecs/isac/fix/source/transform_unittest.cc", |
| 131 | "audio_coding/codecs/isac/main/source/audio_encoder_isac_unittest.cc", |
| 132 | "audio_coding/codecs/isac/main/source/isac_unittest.cc", |
| 133 | "audio_coding/codecs/isac/unittest.cc", |
| 134 | "audio_coding/codecs/mock/mock_audio_encoder.cc", |
| 135 | "audio_coding/codecs/opus/audio_encoder_opus_unittest.cc", |
| 136 | "audio_coding/codecs/opus/opus_unittest.cc", |
| 137 | "audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc", |
| 138 | "audio_coding/neteq/audio_classifier_unittest.cc", |
| 139 | "audio_coding/neteq/audio_multi_vector_unittest.cc", |
| 140 | "audio_coding/neteq/audio_vector_unittest.cc", |
| 141 | "audio_coding/neteq/background_noise_unittest.cc", |
| 142 | "audio_coding/neteq/buffer_level_filter_unittest.cc", |
| 143 | "audio_coding/neteq/comfort_noise_unittest.cc", |
| 144 | "audio_coding/neteq/decision_logic_unittest.cc", |
| 145 | "audio_coding/neteq/decoder_database_unittest.cc", |
| 146 | "audio_coding/neteq/delay_manager_unittest.cc", |
| 147 | "audio_coding/neteq/delay_peak_detector_unittest.cc", |
| 148 | "audio_coding/neteq/dsp_helper_unittest.cc", |
| 149 | "audio_coding/neteq/dtmf_buffer_unittest.cc", |
| 150 | "audio_coding/neteq/dtmf_tone_generator_unittest.cc", |
| 151 | "audio_coding/neteq/expand_unittest.cc", |
| 152 | "audio_coding/neteq/merge_unittest.cc", |
| 153 | "audio_coding/neteq/mock/mock_audio_decoder.h", |
| 154 | "audio_coding/neteq/mock/mock_audio_vector.h", |
| 155 | "audio_coding/neteq/mock/mock_buffer_level_filter.h", |
| 156 | "audio_coding/neteq/mock/mock_decoder_database.h", |
| 157 | "audio_coding/neteq/mock/mock_delay_manager.h", |
| 158 | "audio_coding/neteq/mock/mock_delay_peak_detector.h", |
| 159 | "audio_coding/neteq/mock/mock_dtmf_buffer.h", |
| 160 | "audio_coding/neteq/mock/mock_dtmf_tone_generator.h", |
| 161 | "audio_coding/neteq/mock/mock_expand.h", |
| 162 | "audio_coding/neteq/mock/mock_external_decoder_pcm16b.h", |
| 163 | "audio_coding/neteq/mock/mock_packet_buffer.h", |
| 164 | "audio_coding/neteq/mock/mock_payload_splitter.h", |
| 165 | "audio_coding/neteq/nack_tracker_unittest.cc", |
| 166 | "audio_coding/neteq/neteq_external_decoder_unittest.cc", |
| 167 | "audio_coding/neteq/neteq_impl_unittest.cc", |
| 168 | "audio_coding/neteq/neteq_network_stats_unittest.cc", |
| 169 | "audio_coding/neteq/neteq_stereo_unittest.cc", |
| 170 | "audio_coding/neteq/neteq_unittest.cc", |
| 171 | "audio_coding/neteq/normal_unittest.cc", |
| 172 | "audio_coding/neteq/packet_buffer_unittest.cc", |
| 173 | "audio_coding/neteq/payload_splitter_unittest.cc", |
| 174 | "audio_coding/neteq/post_decode_vad_unittest.cc", |
| 175 | "audio_coding/neteq/random_vector_unittest.cc", |
| 176 | "audio_coding/neteq/sync_buffer_unittest.cc", |
| 177 | "audio_coding/neteq/tick_timer_unittest.cc", |
| 178 | "audio_coding/neteq/time_stretch_unittest.cc", |
| 179 | "audio_coding/neteq/timestamp_scaler_unittest.cc", |
| 180 | "audio_coding/neteq/tools/input_audio_file_unittest.cc", |
| 181 | "audio_coding/neteq/tools/packet_unittest.cc", |
| 182 | "audio_conference_mixer/test/audio_conference_mixer_unittest.cc", |
| 183 | "audio_device/fine_audio_buffer_unittest.cc", |
aleloi | 09f4510 | 2016-07-28 03:52:15 -0700 | [diff] [blame] | 184 | "audio_mixer/test/audio_mixer_unittest.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 185 | "audio_processing/aec/echo_cancellation_unittest.cc", |
| 186 | "audio_processing/aec/system_delay_unittest.cc", |
| 187 | "audio_processing/agc/agc_manager_direct_unittest.cc", |
| 188 | |
| 189 | # TODO(ajm): Fix to match new interface. |
| 190 | # "audio_processing/agc/agc_unittest.cc", |
| 191 | "audio_processing/agc/loudness_histogram_unittest.cc", |
| 192 | "audio_processing/agc/mock_agc.h", |
Alejandro Luebs | a181c9a | 2016-06-30 15:33:37 -0700 | [diff] [blame] | 193 | "audio_processing/audio_buffer_unittest.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 194 | "audio_processing/beamformer/array_util_unittest.cc", |
| 195 | "audio_processing/beamformer/complex_matrix_unittest.cc", |
| 196 | "audio_processing/beamformer/covariance_matrix_generator_unittest.cc", |
| 197 | "audio_processing/beamformer/matrix_unittest.cc", |
| 198 | "audio_processing/beamformer/mock_nonlinear_beamformer.h", |
| 199 | "audio_processing/beamformer/nonlinear_beamformer_unittest.cc", |
| 200 | "audio_processing/echo_cancellation_impl_unittest.cc", |
| 201 | "audio_processing/intelligibility/intelligibility_enhancer_unittest.cc", |
| 202 | "audio_processing/intelligibility/intelligibility_utils_unittest.cc", |
| 203 | "audio_processing/splitting_filter_unittest.cc", |
| 204 | "audio_processing/transient/dyadic_decimator_unittest.cc", |
| 205 | "audio_processing/transient/file_utils.cc", |
| 206 | "audio_processing/transient/file_utils.h", |
| 207 | "audio_processing/transient/file_utils_unittest.cc", |
| 208 | "audio_processing/transient/moving_moments_unittest.cc", |
| 209 | "audio_processing/transient/transient_detector_unittest.cc", |
| 210 | "audio_processing/transient/transient_suppressor_unittest.cc", |
| 211 | "audio_processing/transient/wpd_node_unittest.cc", |
| 212 | "audio_processing/transient/wpd_tree_unittest.cc", |
| 213 | "audio_processing/utility/block_mean_calculator_unittest.cc", |
| 214 | "audio_processing/utility/delay_estimator_unittest.cc", |
| 215 | "audio_processing/vad/gmm_unittest.cc", |
| 216 | "audio_processing/vad/pitch_based_vad_unittest.cc", |
| 217 | "audio_processing/vad/pitch_internal_unittest.cc", |
| 218 | "audio_processing/vad/pole_zero_filter_unittest.cc", |
| 219 | "audio_processing/vad/standalone_vad_unittest.cc", |
| 220 | "audio_processing/vad/vad_audio_proc_unittest.cc", |
| 221 | "audio_processing/vad/vad_circular_buffer_unittest.cc", |
| 222 | "audio_processing/vad/voice_activity_detector_unittest.cc", |
| 223 | "bitrate_controller/bitrate_controller_unittest.cc", |
| 224 | "bitrate_controller/send_side_bandwidth_estimation_unittest.cc", |
| 225 | "congestion_controller/congestion_controller_unittest.cc", |
stefan | 5e12d36 | 2016-07-11 01:44:02 -0700 | [diff] [blame] | 226 | "congestion_controller/delay_based_bwe_unittest.cc", |
| 227 | "congestion_controller/delay_based_bwe_unittest_helper.cc", |
| 228 | "congestion_controller/delay_based_bwe_unittest_helper.h", |
philipel | bf8a2c9 | 2016-08-10 19:00:39 +0200 | [diff] [blame] | 229 | "congestion_controller/probe_bitrate_estimator_unittest.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 230 | "media_file/media_file_unittest.cc", |
| 231 | "module_common_types_unittest.cc", |
| 232 | "pacing/bitrate_prober_unittest.cc", |
| 233 | "pacing/paced_sender_unittest.cc", |
| 234 | "pacing/packet_router_unittest.cc", |
| 235 | "remote_bitrate_estimator/bwe_simulations.cc", |
| 236 | "remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h", |
| 237 | "remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h", |
| 238 | "remote_bitrate_estimator/inter_arrival_unittest.cc", |
| 239 | "remote_bitrate_estimator/overuse_detector_unittest.cc", |
| 240 | "remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc", |
| 241 | "remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc", |
| 242 | "remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc", |
| 243 | "remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h", |
| 244 | "remote_bitrate_estimator/remote_estimator_proxy_unittest.cc", |
| 245 | "remote_bitrate_estimator/send_time_history_unittest.cc", |
| 246 | "remote_bitrate_estimator/test/bwe_test_framework_unittest.cc", |
| 247 | "remote_bitrate_estimator/test/bwe_unittest.cc", |
| 248 | "remote_bitrate_estimator/test/estimators/nada_unittest.cc", |
| 249 | "remote_bitrate_estimator/test/metric_recorder_unittest.cc", |
| 250 | "remote_bitrate_estimator/transport_feedback_adapter_unittest.cc", |
| 251 | "rtp_rtcp/source/byte_io_unittest.cc", |
| 252 | "rtp_rtcp/source/fec_receiver_unittest.cc", |
| 253 | "rtp_rtcp/source/fec_test_helper.cc", |
| 254 | "rtp_rtcp/source/fec_test_helper.h", |
| 255 | "rtp_rtcp/source/mock/mock_rtp_payload_strategy.h", |
| 256 | "rtp_rtcp/source/nack_rtx_unittest.cc", |
| 257 | "rtp_rtcp/source/packet_loss_stats_unittest.cc", |
| 258 | "rtp_rtcp/source/producer_fec_unittest.cc", |
| 259 | "rtp_rtcp/source/receive_statistics_unittest.cc", |
| 260 | "rtp_rtcp/source/remote_ntp_time_estimator_unittest.cc", |
| 261 | "rtp_rtcp/source/rtcp_format_remb_unittest.cc", |
| 262 | "rtp_rtcp/source/rtcp_packet/app_unittest.cc", |
| 263 | "rtp_rtcp/source/rtcp_packet/bye_unittest.cc", |
| 264 | "rtp_rtcp/source/rtcp_packet/common_header_unittest.cc", |
| 265 | "rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc", |
| 266 | "rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc", |
| 267 | "rtp_rtcp/source/rtcp_packet/extended_jitter_report_unittest.cc", |
| 268 | "rtp_rtcp/source/rtcp_packet/extended_reports_unittest.cc", |
| 269 | "rtp_rtcp/source/rtcp_packet/fir_unittest.cc", |
| 270 | "rtp_rtcp/source/rtcp_packet/nack_unittest.cc", |
| 271 | "rtp_rtcp/source/rtcp_packet/pli_unittest.cc", |
| 272 | "rtp_rtcp/source/rtcp_packet/rapid_resync_request_unittest.cc", |
| 273 | "rtp_rtcp/source/rtcp_packet/receiver_report_unittest.cc", |
| 274 | "rtp_rtcp/source/rtcp_packet/remb_unittest.cc", |
| 275 | "rtp_rtcp/source/rtcp_packet/report_block_unittest.cc", |
| 276 | "rtp_rtcp/source/rtcp_packet/rpsi_unittest.cc", |
| 277 | "rtp_rtcp/source/rtcp_packet/rrtr_unittest.cc", |
| 278 | "rtp_rtcp/source/rtcp_packet/sdes_unittest.cc", |
| 279 | "rtp_rtcp/source/rtcp_packet/sender_report_unittest.cc", |
| 280 | "rtp_rtcp/source/rtcp_packet/sli_unittest.cc", |
| 281 | "rtp_rtcp/source/rtcp_packet/tmmbn_unittest.cc", |
| 282 | "rtp_rtcp/source/rtcp_packet/tmmbr_unittest.cc", |
| 283 | "rtp_rtcp/source/rtcp_packet/transport_feedback_unittest.cc", |
| 284 | "rtp_rtcp/source/rtcp_packet/voip_metric_unittest.cc", |
| 285 | "rtp_rtcp/source/rtcp_packet_unittest.cc", |
| 286 | "rtp_rtcp/source/rtcp_receiver_unittest.cc", |
| 287 | "rtp_rtcp/source/rtcp_sender_unittest.cc", |
| 288 | "rtp_rtcp/source/rtcp_utility_unittest.cc", |
| 289 | "rtp_rtcp/source/rtp_fec_unittest.cc", |
| 290 | "rtp_rtcp/source/rtp_format_h264_unittest.cc", |
| 291 | "rtp_rtcp/source/rtp_format_vp8_test_helper.cc", |
| 292 | "rtp_rtcp/source/rtp_format_vp8_test_helper.h", |
| 293 | "rtp_rtcp/source/rtp_format_vp8_unittest.cc", |
| 294 | "rtp_rtcp/source/rtp_format_vp9_unittest.cc", |
| 295 | "rtp_rtcp/source/rtp_header_extension_unittest.cc", |
| 296 | "rtp_rtcp/source/rtp_packet_history_unittest.cc", |
| 297 | "rtp_rtcp/source/rtp_packet_unittest.cc", |
| 298 | "rtp_rtcp/source/rtp_payload_registry_unittest.cc", |
| 299 | "rtp_rtcp/source/rtp_rtcp_impl_unittest.cc", |
| 300 | "rtp_rtcp/source/rtp_sender_unittest.cc", |
| 301 | "rtp_rtcp/source/time_util_unittest.cc", |
| 302 | "rtp_rtcp/source/vp8_partition_aggregator_unittest.cc", |
| 303 | "rtp_rtcp/test/testAPI/test_api.cc", |
| 304 | "rtp_rtcp/test/testAPI/test_api.h", |
| 305 | "rtp_rtcp/test/testAPI/test_api_audio.cc", |
| 306 | "rtp_rtcp/test/testAPI/test_api_rtcp.cc", |
| 307 | "rtp_rtcp/test/testAPI/test_api_video.cc", |
| 308 | "utility/source/audio_frame_operations_unittest.cc", |
kwiberg | c8c71f4 | 2016-08-15 11:43:51 -0700 | [diff] [blame^] | 309 | "utility/source/file_player_unittests.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 310 | "utility/source/process_thread_impl_unittest.cc", |
| 311 | "video_coding/codecs/test/packet_manipulator_unittest.cc", |
| 312 | "video_coding/codecs/test/stats_unittest.cc", |
| 313 | "video_coding/codecs/test/videoprocessor_unittest.cc", |
| 314 | "video_coding/codecs/vp8/default_temporal_layers_unittest.cc", |
| 315 | "video_coding/codecs/vp8/reference_picture_selection_unittest.cc", |
| 316 | "video_coding/codecs/vp8/screenshare_layers_unittest.cc", |
| 317 | "video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc", |
| 318 | "video_coding/codecs/vp8/simulcast_unittest.cc", |
| 319 | "video_coding/codecs/vp8/simulcast_unittest.h", |
| 320 | "video_coding/decoding_state_unittest.cc", |
| 321 | "video_coding/frame_buffer2_unittest.cc", |
| 322 | "video_coding/histogram_unittest.cc", |
| 323 | "video_coding/include/mock/mock_vcm_callbacks.h", |
| 324 | "video_coding/jitter_buffer_unittest.cc", |
| 325 | "video_coding/jitter_estimator_tests.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 326 | "video_coding/nack_module_unittest.cc", |
| 327 | "video_coding/percentile_filter_unittest.cc", |
| 328 | "video_coding/protection_bitrate_calculator_unittest.cc", |
| 329 | "video_coding/receiver_unittest.cc", |
philipel | 17deeb4 | 2016-08-11 15:09:26 +0200 | [diff] [blame] | 330 | "video_coding/rtp_frame_reference_finder_unittest.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 331 | "video_coding/sequence_number_util_unittest.cc", |
| 332 | "video_coding/session_info_unittest.cc", |
| 333 | "video_coding/test/stream_generator.cc", |
| 334 | "video_coding/test/stream_generator.h", |
| 335 | "video_coding/timing_unittest.cc", |
| 336 | "video_coding/utility/frame_dropper_unittest.cc", |
| 337 | "video_coding/utility/h264_bitstream_parser_unittest.cc", |
| 338 | "video_coding/utility/ivf_file_writer_unittest.cc", |
| 339 | "video_coding/utility/quality_scaler_unittest.cc", |
| 340 | "video_coding/video_coding_robustness_unittest.cc", |
| 341 | "video_coding/video_packet_buffer_unittest.cc", |
| 342 | "video_coding/video_receiver_unittest.cc", |
| 343 | "video_coding/video_sender_unittest.cc", |
| 344 | "video_processing/test/denoiser_test.cc", |
| 345 | "video_processing/test/video_processing_unittest.cc", |
| 346 | "video_processing/test/video_processing_unittest.h", |
| 347 | ] |
| 348 | |
| 349 | if (rtc_libvpx_build_vp9) { |
| 350 | sources += |
| 351 | [ "video_coding/codecs/vp9/vp9_screenshare_layers_unittest.cc" ] |
| 352 | } |
| 353 | |
| 354 | if (rtc_desktop_capture_supported || is_android) { |
| 355 | deps += [ "desktop_capture" ] |
| 356 | sources += [ |
| 357 | "desktop_capture/desktop_region_unittest.cc", |
| 358 | "desktop_capture/differ_block_unittest.cc", |
| 359 | "desktop_capture/differ_unittest.cc", |
| 360 | ] |
| 361 | } |
| 362 | |
| 363 | if (rtc_desktop_capture_supported) { |
| 364 | deps += [ "desktop_capture" ] |
| 365 | sources += [ |
| 366 | "desktop_capture/desktop_and_cursor_composer_unittest.cc", |
| 367 | "desktop_capture/mouse_cursor_monitor_unittest.cc", |
| 368 | "desktop_capture/screen_capturer_helper_unittest.cc", |
| 369 | "desktop_capture/screen_capturer_mac_unittest.cc", |
| 370 | "desktop_capture/screen_capturer_mock_objects.h", |
| 371 | "desktop_capture/screen_capturer_unittest.cc", |
| 372 | "desktop_capture/win/cursor_unittest.cc", |
| 373 | "desktop_capture/win/cursor_unittest_resources.h", |
| 374 | "desktop_capture/win/cursor_unittest_resources.rc", |
| 375 | "desktop_capture/window_capturer_unittest.cc", |
| 376 | ] |
| 377 | } |
| 378 | |
| 379 | if (rtc_prefer_fixed_point) { |
| 380 | defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ] |
| 381 | } else { |
| 382 | defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] |
| 383 | } |
| 384 | |
| 385 | if (rtc_enable_protobuf) { |
| 386 | defines += [ |
| 387 | "WEBRTC_AUDIOPROC_DEBUG_DUMP", |
| 388 | "WEBRTC_NETEQ_UNITTEST_BITEXACT", |
| 389 | ] |
| 390 | deps += [ |
| 391 | "audio_coding:neteq_unittest_proto", |
| 392 | "audio_processing:audioproc_protobuf_utils", |
| 393 | "audio_processing:audioproc_unittest_proto", |
| 394 | ] |
| 395 | sources += [ |
| 396 | "audio_processing/audio_processing_impl_locking_unittest.cc", |
| 397 | "audio_processing/audio_processing_impl_unittest.cc", |
| 398 | "audio_processing/audio_processing_unittest.cc", |
| 399 | "audio_processing/echo_cancellation_bit_exact_unittest.cc", |
| 400 | "audio_processing/echo_control_mobile_unittest.cc", |
| 401 | "audio_processing/gain_control_unittest.cc", |
| 402 | "audio_processing/high_pass_filter_unittest.cc", |
| 403 | "audio_processing/level_estimator_unittest.cc", |
| 404 | "audio_processing/noise_suppression_unittest.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 405 | "audio_processing/test/bitexactness_tools.cc", |
| 406 | "audio_processing/test/bitexactness_tools.h", |
| 407 | "audio_processing/test/debug_dump_replayer.cc", |
| 408 | "audio_processing/test/debug_dump_replayer.h", |
| 409 | "audio_processing/test/debug_dump_test.cc", |
| 410 | "audio_processing/test/test_utils.h", |
| 411 | "audio_processing/voice_detection_unittest.cc", |
| 412 | ] |
| 413 | } |
| 414 | |
| 415 | if (rtc_build_libvpx) { |
| 416 | deps += [ rtc_libvpx_dir ] |
| 417 | } |
| 418 | |
| 419 | configs += [ "..:common_config" ] |
| 420 | public_configs = [ "..:common_inherited_config" ] |
| 421 | |
| 422 | # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 423 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 424 | |
| 425 | if (is_clang) { |
| 426 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 427 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 428 | } |
| 429 | |
| 430 | if (is_win) { |
| 431 | cflags = [ |
| 432 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 433 | "/wd4373", # virtual function override. |
| 434 | ] |
| 435 | } |
| 436 | |
| 437 | deps += [ |
| 438 | "..:webrtc_common", |
| 439 | "../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
| 440 | "../common_audio", |
| 441 | "../common_video", |
| 442 | "../system_wrappers:system_wrappers", |
| 443 | "../test:rtp_test_utils", |
| 444 | "../test:test_common", |
| 445 | "../test:test_support_main", |
| 446 | "../test:test_support_main", |
| 447 | "../test:video_test_common", |
| 448 | "../tools:agc_test_utils", |
| 449 | "audio_coding", |
| 450 | "audio_coding:acm_receive_test", |
| 451 | "audio_coding:acm_send_test", |
| 452 | "audio_coding:builtin_audio_decoder_factory", |
| 453 | "audio_coding:cng", |
| 454 | "audio_coding:isac_fix", |
| 455 | "audio_coding:neteq", |
| 456 | "audio_coding:neteq_test_support", |
| 457 | "audio_coding:neteq_unittest_tools", |
| 458 | "audio_coding:pcm16b", |
| 459 | "audio_coding:red", |
| 460 | "audio_coding:webrtc_opus", |
| 461 | "audio_conference_mixer", |
| 462 | "audio_device", |
aleloi | 09f4510 | 2016-07-28 03:52:15 -0700 | [diff] [blame] | 463 | "audio_mixer", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 464 | "audio_processing", |
| 465 | "audio_processing:audioproc_test_utils", |
| 466 | "bitrate_controller", |
| 467 | "media_file", |
| 468 | "pacing", |
| 469 | "remote_bitrate_estimator", |
| 470 | "remote_bitrate_estimator:bwe_simulator", |
| 471 | "rtp_rtcp", |
| 472 | "utility", |
| 473 | "video_capture", |
| 474 | "video_coding", |
| 475 | "video_coding:video_codecs_test_framework", |
| 476 | "video_coding:webrtc_vp8", |
| 477 | "video_coding:webrtc_vp9", |
| 478 | "video_processing", |
| 479 | "//testing/gmock", |
| 480 | "//testing/gtest", |
| 481 | "//third_party/gflags", |
| 482 | ] |
| 483 | |
| 484 | if (is_android) { |
sakal | bd59c71 | 2016-08-11 00:59:15 -0700 | [diff] [blame] | 485 | deps += [ |
| 486 | "//testing/android/native_test:native_test_support", |
| 487 | "//webrtc/api:libjingle_peerconnection_java", |
| 488 | ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 489 | |
| 490 | # Need to disable error due to the line in |
| 491 | # base/android/jni_android.h triggering it: |
| 492 | # const BASE_EXPORT jobject GetApplicationContext() |
| 493 | # error: type qualifiers ignored on function return type |
| 494 | cflags = [ "-Wno-ignored-qualifiers" ] |
| 495 | sources += [ |
| 496 | "audio_device/android/audio_device_unittest.cc", |
| 497 | "audio_device/android/audio_manager_unittest.cc", |
| 498 | "audio_device/android/ensure_initialized.cc", |
| 499 | "audio_device/android/ensure_initialized.h", |
| 500 | ] |
| 501 | |
| 502 | # This needs to be kept in sync with the .isolate file. |
| 503 | # TODO(kjellander); Move this to android_assets targets instead. |
| 504 | data = [ |
| 505 | "//data/audio_processing/output_data_fixed.pb", |
| 506 | "//data/audio_processing/output_data_float.pb", |
| 507 | "//data/audio_processing/output_data_mac.pb", |
| 508 | "//data/voice_engine/audio_tiny48.wav", |
| 509 | "//resources/att-downlink.rx", |
| 510 | "//resources/att-uplink.rx", |
| 511 | "//resources/audio_coding/neteq_opus.rtp", |
| 512 | "//resources/audio_coding/neteq_universal_new.rtp", |
| 513 | "//resources/audio_coding/speech_mono_16kHz.pcm", |
| 514 | "//resources/audio_coding/speech_mono_32_48kHz.pcm", |
| 515 | "//resources/audio_coding/testfile32kHz.pcm", |
| 516 | "//resources/audio_coding/teststereo32kHz.pcm", |
| 517 | "//resources/audio_device/audio_short16.pcm", |
| 518 | "//resources/audio_device/audio_short44.pcm", |
| 519 | "//resources/audio_device/audio_short48.pcm", |
| 520 | "//resources/audio_processing/agc/agc_audio.pcm", |
| 521 | "//resources/audio_processing/agc/agc_no_circular_buffer.dat", |
| 522 | "//resources/audio_processing/agc/agc_pitch_gain.dat", |
| 523 | "//resources/audio_processing/agc/agc_pitch_lag.dat", |
| 524 | "//resources/audio_processing/agc/agc_spectral_peak.dat", |
| 525 | "//resources/audio_processing/agc/agc_vad.dat", |
| 526 | "//resources/audio_processing/agc/agc_voicing_prob.dat", |
| 527 | "//resources/audio_processing/agc/agc_with_circular_buffer.dat", |
| 528 | "//resources/audio_processing/transient/ajm-macbook-1-spke16m.pcm", |
| 529 | "//resources/audio_processing/transient/audio16kHz.pcm", |
| 530 | "//resources/audio_processing/transient/audio32kHz.pcm", |
| 531 | "//resources/audio_processing/transient/audio48kHz.pcm", |
| 532 | "//resources/audio_processing/transient/audio8kHz.pcm", |
| 533 | "//resources/audio_processing/transient/detect16kHz.dat", |
| 534 | "//resources/audio_processing/transient/detect32kHz.dat", |
| 535 | "//resources/audio_processing/transient/detect48kHz.dat", |
| 536 | "//resources/audio_processing/transient/detect8kHz.dat", |
| 537 | "//resources/audio_processing/transient/double-utils.dat", |
| 538 | "//resources/audio_processing/transient/float-utils.dat", |
| 539 | "//resources/audio_processing/transient/suppressed16kHz.pcm", |
| 540 | "//resources/audio_processing/transient/suppressed32kHz.pcm", |
| 541 | "//resources/audio_processing/transient/suppressed8kHz.pcm", |
| 542 | "//resources/audio_processing/transient/wpd0.dat", |
| 543 | "//resources/audio_processing/transient/wpd1.dat", |
| 544 | "//resources/audio_processing/transient/wpd2.dat", |
| 545 | "//resources/audio_processing/transient/wpd3.dat", |
| 546 | "//resources/audio_processing/transient/wpd4.dat", |
| 547 | "//resources/audio_processing/transient/wpd5.dat", |
| 548 | "//resources/audio_processing/transient/wpd6.dat", |
| 549 | "//resources/audio_processing/transient/wpd7.dat", |
| 550 | "//resources/deflicker_before_cif_short.yuv", |
| 551 | "//resources/far16_stereo.pcm", |
| 552 | "//resources/far32_stereo.pcm", |
| 553 | "//resources/far44_stereo.pcm", |
| 554 | "//resources/far48_stereo.pcm", |
| 555 | "//resources/far8_stereo.pcm", |
| 556 | "//resources/foremanColorEnhanced_cif_short.yuv", |
| 557 | "//resources/foreman_cif.yuv", |
| 558 | "//resources/foreman_cif_short.yuv", |
| 559 | "//resources/near16_stereo.pcm", |
| 560 | "//resources/near32_stereo.pcm", |
| 561 | "//resources/near44_stereo.pcm", |
| 562 | "//resources/near48_stereo.pcm", |
| 563 | "//resources/near8_stereo.pcm", |
| 564 | "//resources/ref03.aecdump", |
| 565 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_0_AST.bin", |
| 566 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_0_TOF.bin", |
| 567 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_1_AST.bin", |
| 568 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_1_TOF.bin", |
| 569 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_0_AST.bin", |
| 570 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_0_TOF.bin", |
| 571 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_1_AST.bin", |
| 572 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_1_TOF.bin", |
| 573 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingDelay1_0_AST.bin", |
| 574 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingDelay1_0_TOF.bin", |
| 575 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingLoss1_0_AST.bin", |
| 576 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingLoss1_0_TOF.bin", |
| 577 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_AST.bin", |
| 578 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_TOF.bin", |
| 579 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_0_AST.bin", |
| 580 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_0_TOF.bin", |
| 581 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_1_AST.bin", |
| 582 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_1_TOF.bin", |
| 583 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay_0_AST.bin", |
| 584 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay_0_TOF.bin", |
| 585 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_0_AST.bin", |
| 586 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_0_TOF.bin", |
| 587 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_AST.bin", |
| 588 | "//resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_TOF.bin", |
| 589 | "//resources/short_mixed_mono_48.dat", |
| 590 | "//resources/short_mixed_mono_48_arm.dat", |
| 591 | "//resources/short_mixed_mono_48.pcm", |
| 592 | "//resources/short_mixed_stereo_48.dat", |
| 593 | "//resources/short_mixed_stereo_48.pcm", |
| 594 | "//resources/sprint-downlink.rx", |
| 595 | "//resources/sprint-uplink.rx", |
| 596 | "//resources/synthetic-trace.rx", |
| 597 | "//resources/tmobile-downlink.rx", |
| 598 | "//resources/tmobile-uplink.rx", |
kwiberg | c8c71f4 | 2016-08-15 11:43:51 -0700 | [diff] [blame^] | 599 | "//resources/utility/encapsulated_pcm16b_8khz.wav", |
| 600 | "//resources/utility/encapsulated_pcmu_8khz.wav", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 601 | "//resources/verizon3g-downlink.rx", |
| 602 | "//resources/verizon3g-uplink.rx", |
| 603 | "//resources/verizon4g-downlink.rx", |
| 604 | "//resources/verizon4g-uplink.rx", |
| 605 | ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 606 | |
| 607 | shard_timeout = 900 |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 608 | } |
| 609 | |
| 610 | if (is_ios) { |
| 611 | configs += [ |
| 612 | "..:common_objc", |
| 613 | "//build/config/compiler:enable_arc", |
| 614 | ] |
| 615 | |
| 616 | sources += [ |
| 617 | "audio_device/ios/audio_device_unittest_ios.cc", |
| 618 | "audio_device/ios/objc/RTCAudioSessionTest.mm", |
| 619 | "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", |
| 620 | ] |
| 621 | |
| 622 | ldflags = [ "-ObjC" ] |
| 623 | |
| 624 | # TODO(kjellander): Mac bundle files. |
| 625 | } |
| 626 | } |
| 627 | } |