Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 1 | # Copyright (c) 2015 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 14 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 15 | rtc_static_library("audio") { |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 16 | sources = [ |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 17 | "audio_level.cc", |
| 18 | "audio_level.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 19 | "audio_receive_stream.cc", |
| 20 | "audio_receive_stream.h", |
solenberg | c7a8b08 | 2015-10-16 14:35:07 -0700 | [diff] [blame] | 21 | "audio_send_stream.cc", |
| 22 | "audio_send_stream.h", |
solenberg | 566ef24 | 2015-11-06 15:34:49 -0800 | [diff] [blame] | 23 | "audio_state.cc", |
| 24 | "audio_state.h", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 25 | "audio_transport_impl.cc", |
| 26 | "audio_transport_impl.h", |
Niels Möller | 530ead4 | 2018-10-04 14:28:39 +0200 | [diff] [blame] | 27 | "channel_receive.cc", |
| 28 | "channel_receive.h", |
Niels Möller | 530ead4 | 2018-10-04 14:28:39 +0200 | [diff] [blame] | 29 | "channel_send.cc", |
| 30 | "channel_send.h", |
Fredrik Solenberg | 4f4ec0a | 2015-10-22 10:49:27 +0200 | [diff] [blame] | 31 | "conversion.h", |
henrika | 5f6bf24 | 2017-11-01 11:06:56 +0100 | [diff] [blame] | 32 | "null_audio_poller.cc", |
| 33 | "null_audio_poller.h", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 34 | "remix_resample.cc", |
| 35 | "remix_resample.h", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 36 | "transport_feedback_packet_loss_tracker.cc", |
| 37 | "transport_feedback_packet_loss_tracker.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 38 | ] |
| 39 | |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 40 | deps = [ |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 41 | "../api:array_view", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 42 | "../api:call_api", |
Artem Titov | 741daaf | 2019-03-21 14:37:36 +0100 | [diff] [blame] | 43 | "../api:function_view", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 44 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 45 | "../api:rtp_headers", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 46 | "../api:scoped_refptr", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 47 | "../api:transport_api", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 48 | "../api/audio:aec3_factory", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 49 | "../api/audio:audio_frame_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 50 | "../api/audio:audio_mixer_api", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 51 | "../api/audio_codecs:audio_codecs_api", |
Danil Chapovalov | 83bbe91 | 2019-08-07 12:24:53 +0200 | [diff] [blame] | 52 | "../api/rtc_event_log", |
Sebastian Jansson | 0b69826 | 2019-03-07 09:17:19 +0100 | [diff] [blame] | 53 | "../api/task_queue", |
Mirko Bonadei | 245660a | 2017-10-10 14:38:11 +0200 | [diff] [blame] | 54 | "../call:bitrate_allocator", |
ossu | f515ab8 | 2016-12-07 04:52:58 -0800 | [diff] [blame] | 55 | "../call:call_interfaces", |
nisse | d76b7b2 | 2017-06-01 04:02:35 -0700 | [diff] [blame] | 56 | "../call:rtp_interfaces", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 57 | "../common_audio", |
Mirko Bonadei | dbbb33c | 2018-02-05 15:50:41 +0100 | [diff] [blame] | 58 | "../common_audio:common_audio_c", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 59 | "../logging:rtc_event_audio", |
Oskar Sundbom | 56ef305 | 2018-10-30 16:11:02 +0100 | [diff] [blame] | 60 | "../logging:rtc_stream_config", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 61 | "../modules/audio_coding", |
Niels Möller | ed44f54 | 2019-07-30 15:15:59 +0200 | [diff] [blame] | 62 | "../modules/audio_coding:audio_coding_module_typedefs", |
Karl Wiberg | 2365936 | 2018-11-01 11:13:44 +0100 | [diff] [blame] | 63 | "../modules/audio_coding:audio_encoder_cng", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 64 | "../modules/audio_coding:audio_network_adaptor_config", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 65 | "../modules/audio_device", |
| 66 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 67 | "../modules/audio_processing:api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 68 | "../modules/bitrate_controller", |
| 69 | "../modules/pacing", |
| 70 | "../modules/remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 71 | "../modules/rtp_rtcp", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 72 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 73 | "../modules/utility", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 74 | "../rtc_base", |
Jonas Olsson | abbe841 | 2018-04-03 13:40:05 +0200 | [diff] [blame] | 75 | "../rtc_base:audio_format_to_string", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 76 | "../rtc_base:checks", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 77 | "../rtc_base:rate_limiter", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 78 | "../rtc_base:rtc_base_approved", |
| 79 | "../rtc_base:rtc_task_queue", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 80 | "../rtc_base:safe_minmax", |
Sebastian Jansson | 470a5ea | 2019-01-23 12:37:49 +0100 | [diff] [blame] | 81 | "../rtc_base/experiments:audio_allocation_settings", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 82 | "../system_wrappers", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 83 | "../system_wrappers:field_trial", |
| 84 | "../system_wrappers:metrics", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 85 | "utility:audio_frame_operations", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 86 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | b9b146c | 2018-06-15 12:28:07 +0200 | [diff] [blame] | 87 | "//third_party/abseil-cpp/absl/types:optional", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 88 | ] |
| 89 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 90 | if (rtc_include_tests) { |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 91 | rtc_source_set("audio_end_to_end_test") { |
| 92 | testonly = true |
| 93 | |
| 94 | sources = [ |
| 95 | "test/audio_end_to_end_test.cc", |
| 96 | "test/audio_end_to_end_test.h", |
| 97 | ] |
| 98 | deps = [ |
| 99 | ":audio", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 100 | "../api:simulated_network_api", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 101 | "../call:fake_network", |
| 102 | "../call:simulated_network", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 103 | "../system_wrappers", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 104 | "../test:test_common", |
| 105 | "../test:test_support", |
Steve Anton | 40d5533 | 2019-01-07 10:21:47 -0800 | [diff] [blame] | 106 | "//third_party/abseil-cpp/absl/memory", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 107 | ] |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 108 | } |
| 109 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 110 | rtc_source_set("audio_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 111 | testonly = true |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 112 | |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 113 | sources = [ |
| 114 | "audio_receive_stream_unittest.cc", |
solenberg | 18f5427 | 2017-09-15 09:56:08 -0700 | [diff] [blame] | 115 | "audio_send_stream_tests.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 116 | "audio_send_stream_unittest.cc", |
| 117 | "audio_state_unittest.cc", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 118 | "mock_voe_channel_proxy.h", |
| 119 | "remix_resample_unittest.cc", |
Mirko Bonadei | 264bee8 | 2018-08-07 08:53:41 +0200 | [diff] [blame] | 120 | "test/audio_stats_test.cc", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 121 | "test/media_transport_test.cc", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 122 | "transport_feedback_packet_loss_tracker_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 123 | ] |
| 124 | deps = [ |
| 125 | ":audio", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 126 | ":audio_end_to_end_test", |
Anton Sukhanov | 4f08faa | 2019-05-21 11:12:57 -0700 | [diff] [blame] | 127 | "../api:libjingle_peerconnection_api", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 128 | "../api:loopback_media_transport", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 129 | "../api:mock_audio_mixer", |
Benjamin Wright | 78410ad | 2018-10-25 09:52:57 -0700 | [diff] [blame] | 130 | "../api:mock_frame_decryptor", |
| 131 | "../api:mock_frame_encryptor", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 132 | "../api/audio:audio_frame_api", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 133 | "../api/audio_codecs:audio_codecs_api", |
| 134 | "../api/audio_codecs/opus:audio_decoder_opus", |
| 135 | "../api/audio_codecs/opus:audio_encoder_opus", |
Danil Chapovalov | 83bbe91 | 2019-08-07 12:24:53 +0200 | [diff] [blame] | 136 | "../api/rtc_event_log", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 137 | "../api/task_queue:default_task_queue_factory", |
Sebastian Jansson | 5f83cf0 | 2018-05-08 14:52:22 +0200 | [diff] [blame] | 138 | "../api/units:time_delta", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 139 | "../call:mock_bitrate_allocator", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 140 | "../call:mock_call_interfaces", |
Sebastian Jansson | ef9daee | 2018-02-22 14:49:02 +0100 | [diff] [blame] | 141 | "../call:mock_rtp_interfaces", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 142 | "../call:rtp_interfaces", |
nisse | 0f15f92 | 2017-06-21 01:05:22 -0700 | [diff] [blame] | 143 | "../call:rtp_receiver", |
Sebastian Jansson | 0b69826 | 2019-03-07 09:17:19 +0100 | [diff] [blame] | 144 | "../call:rtp_sender", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 145 | "../common_audio", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 146 | "../logging:mocks", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 147 | "../modules/audio_device:audio_device_impl", # For TestAudioDeviceModule |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 148 | "../modules/audio_device:mock_audio_device", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 149 | "../modules/audio_mixer:audio_mixer_impl", |
Henrik Boström | d2c336f | 2019-07-03 17:11:10 +0200 | [diff] [blame] | 150 | "../modules/audio_mixer:audio_mixer_test_utils", |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 151 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 152 | "../modules/audio_processing:mocks", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 153 | "../modules/pacing", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 154 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
| 155 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 156 | "../modules/utility", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 157 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 158 | "../rtc_base:rtc_base_approved", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 159 | "../rtc_base:rtc_base_tests_utils", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 160 | "../rtc_base:safe_compare", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 161 | "../rtc_base:task_queue_for_test", |
Bjorn Terelius | 5c2f1f0 | 2019-01-16 17:45:05 +0100 | [diff] [blame] | 162 | "../rtc_base:timeutils", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 163 | "../system_wrappers", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 164 | "../test:audio_codec_mocks", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 165 | "../test:field_trial", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 166 | "../test:rtp_test_utils", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 167 | "../test:test_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 168 | "../test:test_support", |
ehmaldonado | 894c2bb | 2017-01-05 06:03:24 -0800 | [diff] [blame] | 169 | "utility:utility_tests", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 170 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 171 | "//third_party/abseil-cpp/absl/memory", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 172 | ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 173 | } |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 174 | |
| 175 | if (rtc_enable_protobuf) { |
oprypin | 6d305ba | 2017-03-30 04:01:30 -0700 | [diff] [blame] | 176 | rtc_test("low_bandwidth_audio_test") { |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 177 | testonly = true |
| 178 | |
| 179 | sources = [ |
| 180 | "test/low_bandwidth_audio_test.cc", |
Artem Titov | b1f2d60 | 2019-07-10 14:40:58 +0200 | [diff] [blame] | 181 | "test/low_bandwidth_audio_test_flags.cc", |
Artem Titov | c8263e0 | 2019-07-05 12:34:36 +0200 | [diff] [blame] | 182 | "test/pc_low_bandwidth_audio_test.cc", |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 183 | ] |
| 184 | |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 185 | deps = [ |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 186 | ":audio_end_to_end_test", |
Artem Titov | c8263e0 | 2019-07-05 12:34:36 +0200 | [diff] [blame] | 187 | "../api:create_network_emulation_manager", |
| 188 | "../api:create_peerconnection_quality_test_fixture", |
| 189 | "../api:network_emulation_manager_api", |
| 190 | "../api:peer_connection_quality_test_fixture_api", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 191 | "../api:simulated_network_api", |
Artem Titov | c8263e0 | 2019-07-05 12:34:36 +0200 | [diff] [blame] | 192 | "../call:simulated_network", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 193 | "../common_audio", |
| 194 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 195 | "../test:fileutils", |
Artem Titov | b1f2d60 | 2019-07-10 14:40:58 +0200 | [diff] [blame] | 196 | "../test:perf_test", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 197 | "../test:test_common", |
| 198 | "../test:test_main", |
Artem Titov | c8263e0 | 2019-07-05 12:34:36 +0200 | [diff] [blame] | 199 | "../test:test_support", |
| 200 | "../test/pc/e2e:network_quality_metrics_reporter", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 201 | "//testing/gtest", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 202 | "//third_party/abseil-cpp/absl/flags:flag", |
| 203 | "//third_party/abseil-cpp/absl/memory", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 204 | ] |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 205 | if (is_android) { |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 206 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 207 | } |
| 208 | |
| 209 | data = [ |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 210 | "../resources/voice_engine/audio_tiny16.wav", |
Oleh Prypin | 9c1ee36 | 2018-03-19 15:58:08 +0100 | [diff] [blame] | 211 | "../resources/voice_engine/audio_tiny48.wav", |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 212 | ] |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | group("low_bandwidth_audio_perf_test") { |
| 216 | testonly = true |
| 217 | |
| 218 | deps = [ |
| 219 | ":low_bandwidth_audio_test", |
| 220 | ] |
| 221 | |
| 222 | data = [ |
| 223 | "test/low_bandwidth_audio_test.py", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 224 | "../resources/voice_engine/audio_tiny16.wav", |
| 225 | "../resources/voice_engine/audio_tiny48.wav", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 226 | ] |
Oleh Prypin | 7b2676f | 2018-03-19 11:33:03 +0100 | [diff] [blame] | 227 | if (is_win) { |
| 228 | data += [ "${root_out_dir}/low_bandwidth_audio_test.exe" ] |
| 229 | } else { |
| 230 | data += [ "${root_out_dir}/low_bandwidth_audio_test" ] |
| 231 | } |
| 232 | |
Edward Lemur | 98d4036 | 2018-01-15 17:37:04 +0100 | [diff] [blame] | 233 | if (is_linux || is_android) { |
Edward Lemur | 2011075 | 2017-09-28 16:14:37 +0200 | [diff] [blame] | 234 | data += [ |
| 235 | "../tools_webrtc/audio_quality/linux/PolqaOem64", |
| 236 | "../tools_webrtc/audio_quality/linux/pesq", |
| 237 | ] |
| 238 | } |
| 239 | if (is_win) { |
| 240 | data += [ |
| 241 | "../tools_webrtc/audio_quality/win/PolqaOem64.dll", |
| 242 | "../tools_webrtc/audio_quality/win/PolqaOem64.exe", |
| 243 | "../tools_webrtc/audio_quality/win/pesq.exe", |
| 244 | "../tools_webrtc/audio_quality/win/vcomp120.dll", |
| 245 | ] |
| 246 | } |
| 247 | if (is_mac) { |
| 248 | data += [ "../tools_webrtc/audio_quality/mac/pesq" ] |
| 249 | } |
Oleh Prypin | 650a826 | 2018-03-15 13:52:41 +0000 | [diff] [blame] | 250 | |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 251 | write_runtime_deps = "${root_out_dir}/${target_name}.runtime_deps" |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 252 | } |
| 253 | } |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 254 | |
| 255 | rtc_source_set("audio_perf_tests") { |
| 256 | testonly = true |
| 257 | |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 258 | sources = [ |
| 259 | "test/audio_bwe_integration_test.cc", |
| 260 | "test/audio_bwe_integration_test.h", |
| 261 | ] |
| 262 | deps = [ |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 263 | "../api:simulated_network_api", |
Danil Chapovalov | ad89528 | 2019-03-11 10:28:05 +0000 | [diff] [blame] | 264 | "../api/task_queue", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 265 | "../call:fake_network", |
| 266 | "../call:simulated_network", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 267 | "../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 268 | "../rtc_base:rtc_base_approved", |
Danil Chapovalov | 31660fd | 2019-03-22 12:59:48 +0100 | [diff] [blame] | 269 | "../rtc_base:task_queue_for_test", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 270 | "../system_wrappers", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 271 | "../test:field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 272 | "../test:fileutils", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 273 | "../test:single_threaded_task_queue", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 274 | "../test:test_common", |
| 275 | "../test:test_main", |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 276 | "../test:test_support", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 277 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 278 | "//third_party/abseil-cpp/absl/memory", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 279 | ] |
| 280 | |
| 281 | data = [ |
| 282 | "//resources/voice_engine/audio_dtx16.wav", |
| 283 | ] |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 284 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 285 | } |