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