1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Workerif (is_android) { 11*d9f75844SAndroid Build Coastguard Worker import("//build/config/android/config.gni") 12*d9f75844SAndroid Build Coastguard Worker import("//build/config/android/rules.gni") 13*d9f75844SAndroid Build Coastguard Worker} 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Workerrtc_library("audio") { 16*d9f75844SAndroid Build Coastguard Worker sources = [ 17*d9f75844SAndroid Build Coastguard Worker "audio_level.cc", 18*d9f75844SAndroid Build Coastguard Worker "audio_level.h", 19*d9f75844SAndroid Build Coastguard Worker "audio_receive_stream.cc", 20*d9f75844SAndroid Build Coastguard Worker "audio_receive_stream.h", 21*d9f75844SAndroid Build Coastguard Worker "audio_send_stream.cc", 22*d9f75844SAndroid Build Coastguard Worker "audio_send_stream.h", 23*d9f75844SAndroid Build Coastguard Worker "audio_state.cc", 24*d9f75844SAndroid Build Coastguard Worker "audio_state.h", 25*d9f75844SAndroid Build Coastguard Worker "audio_transport_impl.cc", 26*d9f75844SAndroid Build Coastguard Worker "audio_transport_impl.h", 27*d9f75844SAndroid Build Coastguard Worker "channel_receive.cc", 28*d9f75844SAndroid Build Coastguard Worker "channel_receive.h", 29*d9f75844SAndroid Build Coastguard Worker "channel_receive_frame_transformer_delegate.cc", 30*d9f75844SAndroid Build Coastguard Worker "channel_receive_frame_transformer_delegate.h", 31*d9f75844SAndroid Build Coastguard Worker "channel_send.cc", 32*d9f75844SAndroid Build Coastguard Worker "channel_send.h", 33*d9f75844SAndroid Build Coastguard Worker "channel_send_frame_transformer_delegate.cc", 34*d9f75844SAndroid Build Coastguard Worker "channel_send_frame_transformer_delegate.h", 35*d9f75844SAndroid Build Coastguard Worker "conversion.h", 36*d9f75844SAndroid Build Coastguard Worker "remix_resample.cc", 37*d9f75844SAndroid Build Coastguard Worker "remix_resample.h", 38*d9f75844SAndroid Build Coastguard Worker ] 39*d9f75844SAndroid Build Coastguard Worker 40*d9f75844SAndroid Build Coastguard Worker deps = [ 41*d9f75844SAndroid Build Coastguard Worker "../api:array_view", 42*d9f75844SAndroid Build Coastguard Worker "../api:call_api", 43*d9f75844SAndroid Build Coastguard Worker "../api:field_trials_view", 44*d9f75844SAndroid Build Coastguard Worker "../api:frame_transformer_interface", 45*d9f75844SAndroid Build Coastguard Worker "../api:function_view", 46*d9f75844SAndroid Build Coastguard Worker "../api:rtp_headers", 47*d9f75844SAndroid Build Coastguard Worker "../api:rtp_parameters", 48*d9f75844SAndroid Build Coastguard Worker "../api:scoped_refptr", 49*d9f75844SAndroid Build Coastguard Worker "../api:sequence_checker", 50*d9f75844SAndroid Build Coastguard Worker "../api:transport_api", 51*d9f75844SAndroid Build Coastguard Worker "../api/audio:aec3_factory", 52*d9f75844SAndroid Build Coastguard Worker "../api/audio:audio_frame_api", 53*d9f75844SAndroid Build Coastguard Worker "../api/audio:audio_frame_processor", 54*d9f75844SAndroid Build Coastguard Worker "../api/audio:audio_mixer_api", 55*d9f75844SAndroid Build Coastguard Worker "../api/audio_codecs:audio_codecs_api", 56*d9f75844SAndroid Build Coastguard Worker "../api/crypto:frame_decryptor_interface", 57*d9f75844SAndroid Build Coastguard Worker "../api/crypto:frame_encryptor_interface", 58*d9f75844SAndroid Build Coastguard Worker "../api/crypto:options", 59*d9f75844SAndroid Build Coastguard Worker "../api/neteq:neteq_api", 60*d9f75844SAndroid Build Coastguard Worker "../api/rtc_event_log", 61*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 62*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:pending_task_safety_flag", 63*d9f75844SAndroid Build Coastguard Worker "../api/transport/rtp:rtp_source", 64*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 65*d9f75844SAndroid Build Coastguard Worker "../call:audio_sender_interface", 66*d9f75844SAndroid Build Coastguard Worker "../call:bitrate_allocator", 67*d9f75844SAndroid Build Coastguard Worker "../call:call_interfaces", 68*d9f75844SAndroid Build Coastguard Worker "../call:rtp_interfaces", 69*d9f75844SAndroid Build Coastguard Worker "../common_audio", 70*d9f75844SAndroid Build Coastguard Worker "../common_audio:common_audio_c", 71*d9f75844SAndroid Build Coastguard Worker "../logging:rtc_event_audio", 72*d9f75844SAndroid Build Coastguard Worker "../logging:rtc_stream_config", 73*d9f75844SAndroid Build Coastguard Worker "../media:rtc_media_base", 74*d9f75844SAndroid Build Coastguard Worker "../modules/async_audio_processing", 75*d9f75844SAndroid Build Coastguard Worker "../modules/audio_coding", 76*d9f75844SAndroid Build Coastguard Worker "../modules/audio_coding:audio_coding_module_typedefs", 77*d9f75844SAndroid Build Coastguard Worker "../modules/audio_coding:audio_encoder_cng", 78*d9f75844SAndroid Build Coastguard Worker "../modules/audio_coding:audio_network_adaptor_config", 79*d9f75844SAndroid Build Coastguard Worker "../modules/audio_coding:red", 80*d9f75844SAndroid Build Coastguard Worker "../modules/audio_device", 81*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing", 82*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing:api", 83*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing:audio_frame_proxies", 84*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing:rms_level", 85*d9f75844SAndroid Build Coastguard Worker "../modules/pacing", 86*d9f75844SAndroid Build Coastguard Worker "../modules/rtp_rtcp", 87*d9f75844SAndroid Build Coastguard Worker "../modules/rtp_rtcp:rtp_rtcp_format", 88*d9f75844SAndroid Build Coastguard Worker "../modules/utility:utility", 89*d9f75844SAndroid Build Coastguard Worker "../rtc_base:audio_format_to_string", 90*d9f75844SAndroid Build Coastguard Worker "../rtc_base:buffer", 91*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 92*d9f75844SAndroid Build Coastguard Worker "../rtc_base:event_tracer", 93*d9f75844SAndroid Build Coastguard Worker "../rtc_base:logging", 94*d9f75844SAndroid Build Coastguard Worker "../rtc_base:macromagic", 95*d9f75844SAndroid Build Coastguard Worker "../rtc_base:race_checker", 96*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rate_limiter", 97*d9f75844SAndroid Build Coastguard Worker "../rtc_base:refcount", 98*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_event", 99*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_task_queue", 100*d9f75844SAndroid Build Coastguard Worker "../rtc_base:safe_conversions", 101*d9f75844SAndroid Build Coastguard Worker "../rtc_base:safe_minmax", 102*d9f75844SAndroid Build Coastguard Worker "../rtc_base:stringutils", 103*d9f75844SAndroid Build Coastguard Worker "../rtc_base:threading", 104*d9f75844SAndroid Build Coastguard Worker "../rtc_base:timeutils", 105*d9f75844SAndroid Build Coastguard Worker "../rtc_base/containers:flat_set", 106*d9f75844SAndroid Build Coastguard Worker "../rtc_base/experiments:field_trial_parser", 107*d9f75844SAndroid Build Coastguard Worker "../rtc_base/synchronization:mutex", 108*d9f75844SAndroid Build Coastguard Worker "../rtc_base/system:no_unique_address", 109*d9f75844SAndroid Build Coastguard Worker "../rtc_base/task_utils:repeating_task", 110*d9f75844SAndroid Build Coastguard Worker "../system_wrappers", 111*d9f75844SAndroid Build Coastguard Worker "../system_wrappers:field_trial", 112*d9f75844SAndroid Build Coastguard Worker "../system_wrappers:metrics", 113*d9f75844SAndroid Build Coastguard Worker "utility:audio_frame_operations", 114*d9f75844SAndroid Build Coastguard Worker ] 115*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 116*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/functional:any_invocable", 117*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/memory", 118*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 119*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 120*d9f75844SAndroid Build Coastguard Worker ] 121*d9f75844SAndroid Build Coastguard Worker} 122*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 123*d9f75844SAndroid Build Coastguard Worker rtc_library("audio_end_to_end_test") { 124*d9f75844SAndroid Build Coastguard Worker testonly = true 125*d9f75844SAndroid Build Coastguard Worker 126*d9f75844SAndroid Build Coastguard Worker sources = [ 127*d9f75844SAndroid Build Coastguard Worker "test/audio_end_to_end_test.cc", 128*d9f75844SAndroid Build Coastguard Worker "test/audio_end_to_end_test.h", 129*d9f75844SAndroid Build Coastguard Worker ] 130*d9f75844SAndroid Build Coastguard Worker deps = [ 131*d9f75844SAndroid Build Coastguard Worker ":audio", 132*d9f75844SAndroid Build Coastguard Worker "../api:simulated_network_api", 133*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 134*d9f75844SAndroid Build Coastguard Worker "../call:fake_network", 135*d9f75844SAndroid Build Coastguard Worker "../call:simulated_network", 136*d9f75844SAndroid Build Coastguard Worker "../system_wrappers", 137*d9f75844SAndroid Build Coastguard Worker "../test:test_common", 138*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 139*d9f75844SAndroid Build Coastguard Worker ] 140*d9f75844SAndroid Build Coastguard Worker } 141*d9f75844SAndroid Build Coastguard Worker 142*d9f75844SAndroid Build Coastguard Worker rtc_library("audio_tests") { 143*d9f75844SAndroid Build Coastguard Worker testonly = true 144*d9f75844SAndroid Build Coastguard Worker 145*d9f75844SAndroid Build Coastguard Worker sources = [ 146*d9f75844SAndroid Build Coastguard Worker "audio_receive_stream_unittest.cc", 147*d9f75844SAndroid Build Coastguard Worker "audio_send_stream_tests.cc", 148*d9f75844SAndroid Build Coastguard Worker "audio_send_stream_unittest.cc", 149*d9f75844SAndroid Build Coastguard Worker "audio_state_unittest.cc", 150*d9f75844SAndroid Build Coastguard Worker "channel_receive_frame_transformer_delegate_unittest.cc", 151*d9f75844SAndroid Build Coastguard Worker "channel_send_frame_transformer_delegate_unittest.cc", 152*d9f75844SAndroid Build Coastguard Worker "mock_voe_channel_proxy.h", 153*d9f75844SAndroid Build Coastguard Worker "remix_resample_unittest.cc", 154*d9f75844SAndroid Build Coastguard Worker "test/audio_stats_test.cc", 155*d9f75844SAndroid Build Coastguard Worker "test/nack_test.cc", 156*d9f75844SAndroid Build Coastguard Worker "test/non_sender_rtt_test.cc", 157*d9f75844SAndroid Build Coastguard Worker ] 158*d9f75844SAndroid Build Coastguard Worker deps = [ 159*d9f75844SAndroid Build Coastguard Worker ":audio", 160*d9f75844SAndroid Build Coastguard Worker ":audio_end_to_end_test", 161*d9f75844SAndroid Build Coastguard Worker "../api:libjingle_peerconnection_api", 162*d9f75844SAndroid Build Coastguard Worker "../api:mock_audio_mixer", 163*d9f75844SAndroid Build Coastguard Worker "../api:mock_frame_decryptor", 164*d9f75844SAndroid Build Coastguard Worker "../api:mock_frame_encryptor", 165*d9f75844SAndroid Build Coastguard Worker "../api/audio:audio_frame_api", 166*d9f75844SAndroid Build Coastguard Worker "../api/audio_codecs:audio_codecs_api", 167*d9f75844SAndroid Build Coastguard Worker "../api/audio_codecs/opus:audio_decoder_opus", 168*d9f75844SAndroid Build Coastguard Worker "../api/audio_codecs/opus:audio_encoder_opus", 169*d9f75844SAndroid Build Coastguard Worker "../api/crypto:frame_decryptor_interface", 170*d9f75844SAndroid Build Coastguard Worker "../api/rtc_event_log", 171*d9f75844SAndroid Build Coastguard Worker "../api/task_queue:default_task_queue_factory", 172*d9f75844SAndroid Build Coastguard Worker "../api/task_queue/test:mock_task_queue_base", 173*d9f75844SAndroid Build Coastguard Worker "../api/units:time_delta", 174*d9f75844SAndroid Build Coastguard Worker "../call:mock_bitrate_allocator", 175*d9f75844SAndroid Build Coastguard Worker "../call:mock_call_interfaces", 176*d9f75844SAndroid Build Coastguard Worker "../call:mock_rtp_interfaces", 177*d9f75844SAndroid Build Coastguard Worker "../call:rtp_interfaces", 178*d9f75844SAndroid Build Coastguard Worker "../call:rtp_receiver", 179*d9f75844SAndroid Build Coastguard Worker "../call:rtp_sender", 180*d9f75844SAndroid Build Coastguard Worker "../common_audio", 181*d9f75844SAndroid Build Coastguard Worker "../logging:mocks", 182*d9f75844SAndroid Build Coastguard Worker "../modules/audio_device:audio_device_impl", # For TestAudioDeviceModule 183*d9f75844SAndroid Build Coastguard Worker "../modules/audio_device:mock_audio_device", 184*d9f75844SAndroid Build Coastguard Worker "../modules/audio_mixer:audio_mixer_impl", 185*d9f75844SAndroid Build Coastguard Worker "../modules/audio_mixer:audio_mixer_test_utils", 186*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing:audio_processing_statistics", 187*d9f75844SAndroid Build Coastguard Worker "../modules/audio_processing:mocks", 188*d9f75844SAndroid Build Coastguard Worker "../modules/pacing", 189*d9f75844SAndroid Build Coastguard Worker "../modules/rtp_rtcp:mock_rtp_rtcp", 190*d9f75844SAndroid Build Coastguard Worker "../modules/rtp_rtcp:rtp_rtcp_format", 191*d9f75844SAndroid Build Coastguard Worker "../modules/utility:utility", 192*d9f75844SAndroid Build Coastguard Worker "../rtc_base:checks", 193*d9f75844SAndroid Build Coastguard Worker "../rtc_base:macromagic", 194*d9f75844SAndroid Build Coastguard Worker "../rtc_base:refcount", 195*d9f75844SAndroid Build Coastguard Worker "../rtc_base:rtc_base_tests_utils", 196*d9f75844SAndroid Build Coastguard Worker "../rtc_base:safe_compare", 197*d9f75844SAndroid Build Coastguard Worker "../rtc_base:task_queue_for_test", 198*d9f75844SAndroid Build Coastguard Worker "../rtc_base:timeutils", 199*d9f75844SAndroid Build Coastguard Worker "../system_wrappers", 200*d9f75844SAndroid Build Coastguard Worker "../test:audio_codec_mocks", 201*d9f75844SAndroid Build Coastguard Worker "../test:field_trial", 202*d9f75844SAndroid Build Coastguard Worker "../test:mock_frame_transformer", 203*d9f75844SAndroid Build Coastguard Worker "../test:mock_transformable_frame", 204*d9f75844SAndroid Build Coastguard Worker "../test:mock_transport", 205*d9f75844SAndroid Build Coastguard Worker "../test:rtp_test_utils", 206*d9f75844SAndroid Build Coastguard Worker "../test:scoped_key_value_config", 207*d9f75844SAndroid Build Coastguard Worker "../test:test_common", 208*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 209*d9f75844SAndroid Build Coastguard Worker "../test/time_controller:time_controller", 210*d9f75844SAndroid Build Coastguard Worker "utility:utility_tests", 211*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 212*d9f75844SAndroid Build Coastguard Worker ] 213*d9f75844SAndroid Build Coastguard Worker } 214*d9f75844SAndroid Build Coastguard Worker 215*d9f75844SAndroid Build Coastguard Worker if (rtc_enable_protobuf && !build_with_chromium) { 216*d9f75844SAndroid Build Coastguard Worker rtc_test("low_bandwidth_audio_test") { 217*d9f75844SAndroid Build Coastguard Worker testonly = true 218*d9f75844SAndroid Build Coastguard Worker 219*d9f75844SAndroid Build Coastguard Worker sources = [ 220*d9f75844SAndroid Build Coastguard Worker "test/low_bandwidth_audio_test.cc", 221*d9f75844SAndroid Build Coastguard Worker "test/low_bandwidth_audio_test_flags.cc", 222*d9f75844SAndroid Build Coastguard Worker "test/pc_low_bandwidth_audio_test.cc", 223*d9f75844SAndroid Build Coastguard Worker ] 224*d9f75844SAndroid Build Coastguard Worker 225*d9f75844SAndroid Build Coastguard Worker deps = [ 226*d9f75844SAndroid Build Coastguard Worker ":audio_end_to_end_test", 227*d9f75844SAndroid Build Coastguard Worker "../api:create_network_emulation_manager", 228*d9f75844SAndroid Build Coastguard Worker "../api:create_peerconnection_quality_test_fixture", 229*d9f75844SAndroid Build Coastguard Worker "../api:network_emulation_manager_api", 230*d9f75844SAndroid Build Coastguard Worker "../api:peer_connection_quality_test_fixture_api", 231*d9f75844SAndroid Build Coastguard Worker "../api:simulated_network_api", 232*d9f75844SAndroid Build Coastguard Worker "../api:time_controller", 233*d9f75844SAndroid Build Coastguard Worker "../api/test/metrics:chrome_perf_dashboard_metrics_exporter", 234*d9f75844SAndroid Build Coastguard Worker "../api/test/metrics:global_metrics_logger_and_exporter", 235*d9f75844SAndroid Build Coastguard Worker "../api/test/metrics:metrics_exporter", 236*d9f75844SAndroid Build Coastguard Worker "../api/test/metrics:stdout_metrics_exporter", 237*d9f75844SAndroid Build Coastguard Worker "../api/test/pclf:media_configuration", 238*d9f75844SAndroid Build Coastguard Worker "../api/test/pclf:media_quality_test_params", 239*d9f75844SAndroid Build Coastguard Worker "../api/test/pclf:peer_configurer", 240*d9f75844SAndroid Build Coastguard Worker "../call:simulated_network", 241*d9f75844SAndroid Build Coastguard Worker "../common_audio", 242*d9f75844SAndroid Build Coastguard Worker "../system_wrappers", 243*d9f75844SAndroid Build Coastguard Worker "../test:fileutils", 244*d9f75844SAndroid Build Coastguard Worker "../test:test_common", 245*d9f75844SAndroid Build Coastguard Worker "../test:test_main", 246*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 247*d9f75844SAndroid Build Coastguard Worker "../test/pc/e2e:network_quality_metrics_reporter", 248*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 249*d9f75844SAndroid Build Coastguard Worker ] 250*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 251*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/flags:flag", 252*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 253*d9f75844SAndroid Build Coastguard Worker ] 254*d9f75844SAndroid Build Coastguard Worker if (is_android) { 255*d9f75844SAndroid Build Coastguard Worker use_default_launcher = false 256*d9f75844SAndroid Build Coastguard Worker deps += [ 257*d9f75844SAndroid Build Coastguard Worker "//build/android/gtest_apk:native_test_instrumentation_test_runner_java", 258*d9f75844SAndroid Build Coastguard Worker "//testing/android/native_test:native_test_java", 259*d9f75844SAndroid Build Coastguard Worker "//testing/android/native_test:native_test_support", 260*d9f75844SAndroid Build Coastguard Worker ] 261*d9f75844SAndroid Build Coastguard Worker } 262*d9f75844SAndroid Build Coastguard Worker data = [ 263*d9f75844SAndroid Build Coastguard Worker "../resources/voice_engine/audio_tiny16.wav", 264*d9f75844SAndroid Build Coastguard Worker "../resources/voice_engine/audio_tiny48.wav", 265*d9f75844SAndroid Build Coastguard Worker ] 266*d9f75844SAndroid Build Coastguard Worker } 267*d9f75844SAndroid Build Coastguard Worker 268*d9f75844SAndroid Build Coastguard Worker group("low_bandwidth_audio_perf_test") { 269*d9f75844SAndroid Build Coastguard Worker testonly = true 270*d9f75844SAndroid Build Coastguard Worker 271*d9f75844SAndroid Build Coastguard Worker deps = [ 272*d9f75844SAndroid Build Coastguard Worker ":low_bandwidth_audio_test", 273*d9f75844SAndroid Build Coastguard Worker "//third_party/catapult/tracing/tracing/proto:histogram_proto", 274*d9f75844SAndroid Build Coastguard Worker "//third_party/protobuf:py_proto_runtime", 275*d9f75844SAndroid Build Coastguard Worker ] 276*d9f75844SAndroid Build Coastguard Worker 277*d9f75844SAndroid Build Coastguard Worker data = [ 278*d9f75844SAndroid Build Coastguard Worker "test/low_bandwidth_audio_test.py", 279*d9f75844SAndroid Build Coastguard Worker "../resources/voice_engine/audio_tiny16.wav", 280*d9f75844SAndroid Build Coastguard Worker "../resources/voice_engine/audio_tiny48.wav", 281*d9f75844SAndroid Build Coastguard Worker "${root_out_dir}/pyproto/tracing/tracing/proto/histogram_pb2.py", 282*d9f75844SAndroid Build Coastguard Worker ] 283*d9f75844SAndroid Build Coastguard Worker 284*d9f75844SAndroid Build Coastguard Worker # TODO(http://crbug.com/1029452): Create a cleaner target with just the 285*d9f75844SAndroid Build Coastguard Worker # tracing python code. We don't need Polymer for instance. 286*d9f75844SAndroid Build Coastguard Worker data_deps = [ "//third_party/catapult/tracing:convert_chart_json" ] 287*d9f75844SAndroid Build Coastguard Worker 288*d9f75844SAndroid Build Coastguard Worker if (is_win) { 289*d9f75844SAndroid Build Coastguard Worker data += [ "${root_out_dir}/low_bandwidth_audio_test.exe" ] 290*d9f75844SAndroid Build Coastguard Worker } else { 291*d9f75844SAndroid Build Coastguard Worker data += [ "${root_out_dir}/low_bandwidth_audio_test" ] 292*d9f75844SAndroid Build Coastguard Worker } 293*d9f75844SAndroid Build Coastguard Worker 294*d9f75844SAndroid Build Coastguard Worker if (is_linux || is_chromeos || is_android || is_fuchsia) { 295*d9f75844SAndroid Build Coastguard Worker data += [ 296*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/linux/PolqaOem64", 297*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/linux/pesq", 298*d9f75844SAndroid Build Coastguard Worker ] 299*d9f75844SAndroid Build Coastguard Worker } 300*d9f75844SAndroid Build Coastguard Worker if (is_win) { 301*d9f75844SAndroid Build Coastguard Worker data += [ 302*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/win/PolqaOem64.dll", 303*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/win/PolqaOem64.exe", 304*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/win/pesq.exe", 305*d9f75844SAndroid Build Coastguard Worker "../tools_webrtc/audio_quality/win/vcomp120.dll", 306*d9f75844SAndroid Build Coastguard Worker ] 307*d9f75844SAndroid Build Coastguard Worker } 308*d9f75844SAndroid Build Coastguard Worker if (is_mac) { 309*d9f75844SAndroid Build Coastguard Worker data += [ "../tools_webrtc/audio_quality/mac/pesq" ] 310*d9f75844SAndroid Build Coastguard Worker } 311*d9f75844SAndroid Build Coastguard Worker } 312*d9f75844SAndroid Build Coastguard Worker } 313*d9f75844SAndroid Build Coastguard Worker 314*d9f75844SAndroid Build Coastguard Worker if (!build_with_chromium) { 315*d9f75844SAndroid Build Coastguard Worker rtc_library("audio_perf_tests") { 316*d9f75844SAndroid Build Coastguard Worker testonly = true 317*d9f75844SAndroid Build Coastguard Worker 318*d9f75844SAndroid Build Coastguard Worker sources = [ 319*d9f75844SAndroid Build Coastguard Worker "test/audio_bwe_integration_test.cc", 320*d9f75844SAndroid Build Coastguard Worker "test/audio_bwe_integration_test.h", 321*d9f75844SAndroid Build Coastguard Worker ] 322*d9f75844SAndroid Build Coastguard Worker deps = [ 323*d9f75844SAndroid Build Coastguard Worker "../api:simulated_network_api", 324*d9f75844SAndroid Build Coastguard Worker "../api/task_queue", 325*d9f75844SAndroid Build Coastguard Worker "../call:fake_network", 326*d9f75844SAndroid Build Coastguard Worker "../call:simulated_network", 327*d9f75844SAndroid Build Coastguard Worker "../common_audio", 328*d9f75844SAndroid Build Coastguard Worker "../rtc_base:task_queue_for_test", 329*d9f75844SAndroid Build Coastguard Worker "../system_wrappers", 330*d9f75844SAndroid Build Coastguard Worker "../test:field_trial", 331*d9f75844SAndroid Build Coastguard Worker "../test:fileutils", 332*d9f75844SAndroid Build Coastguard Worker "../test:test_common", 333*d9f75844SAndroid Build Coastguard Worker "../test:test_main", 334*d9f75844SAndroid Build Coastguard Worker "../test:test_support", 335*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 336*d9f75844SAndroid Build Coastguard Worker ] 337*d9f75844SAndroid Build Coastguard Worker absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ] 338*d9f75844SAndroid Build Coastguard Worker data = [ "//resources/voice_engine/audio_dtx16.wav" ] 339*d9f75844SAndroid Build Coastguard Worker } 340*d9f75844SAndroid Build Coastguard Worker } 341*d9f75844SAndroid Build Coastguard Worker} 342