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