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