xref: /aosp_15_r20/external/webrtc/modules/audio_coding/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2014 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 Workerimport("audio_coding.gni")
11*d9f75844SAndroid Build Coastguard Workerif (rtc_enable_protobuf) {
12*d9f75844SAndroid Build Coastguard Worker  import("//third_party/protobuf/proto_library.gni")
13*d9f75844SAndroid Build Coastguard Worker}
14*d9f75844SAndroid Build Coastguard Worker
15*d9f75844SAndroid Build Coastguard Workervisibility = [ ":*" ]
16*d9f75844SAndroid Build Coastguard Worker
17*d9f75844SAndroid Build Coastguard Workerrtc_source_set("audio_coding_module_typedefs") {
18*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
19*d9f75844SAndroid Build Coastguard Worker  sources = [ "include/audio_coding_module_typedefs.h" ]
20*d9f75844SAndroid Build Coastguard Worker}
21*d9f75844SAndroid Build Coastguard Worker
22*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_coding") {
23*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
24*d9f75844SAndroid Build Coastguard Worker  sources = [
25*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_receiver.cc",
26*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_receiver.h",
27*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_remixing.cc",
28*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_remixing.h",
29*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_resampler.cc",
30*d9f75844SAndroid Build Coastguard Worker    "acm2/acm_resampler.h",
31*d9f75844SAndroid Build Coastguard Worker    "acm2/audio_coding_module.cc",
32*d9f75844SAndroid Build Coastguard Worker    "acm2/call_statistics.cc",
33*d9f75844SAndroid Build Coastguard Worker    "acm2/call_statistics.h",
34*d9f75844SAndroid Build Coastguard Worker    "include/audio_coding_module.h",
35*d9f75844SAndroid Build Coastguard Worker  ]
36*d9f75844SAndroid Build Coastguard Worker
37*d9f75844SAndroid Build Coastguard Worker  defines = []
38*d9f75844SAndroid Build Coastguard Worker
39*d9f75844SAndroid Build Coastguard Worker  deps = [
40*d9f75844SAndroid Build Coastguard Worker    ":audio_coding_module_typedefs",
41*d9f75844SAndroid Build Coastguard Worker    ":default_neteq_factory",
42*d9f75844SAndroid Build Coastguard Worker    ":neteq",
43*d9f75844SAndroid Build Coastguard Worker    "..:module_api",
44*d9f75844SAndroid Build Coastguard Worker    "..:module_api_public",
45*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
46*d9f75844SAndroid Build Coastguard Worker    "../../api:function_view",
47*d9f75844SAndroid Build Coastguard Worker    "../../api/audio:audio_frame_api",
48*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
49*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_api",
50*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
51*d9f75844SAndroid Build Coastguard Worker    "../../common_audio:common_audio_c",
52*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:audio_format_to_string",
53*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
54*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
55*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
56*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:macromagic",
57*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
58*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/synchronization:mutex",
59*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
60*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:metrics",
61*d9f75844SAndroid Build Coastguard Worker  ]
62*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
63*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
64*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
65*d9f75844SAndroid Build Coastguard Worker  ]
66*d9f75844SAndroid Build Coastguard Worker}
67*d9f75844SAndroid Build Coastguard Worker
68*d9f75844SAndroid Build Coastguard Workerrtc_library("legacy_encoded_audio_frame") {
69*d9f75844SAndroid Build Coastguard Worker  sources = [
70*d9f75844SAndroid Build Coastguard Worker    "codecs/legacy_encoded_audio_frame.cc",
71*d9f75844SAndroid Build Coastguard Worker    "codecs/legacy_encoded_audio_frame.h",
72*d9f75844SAndroid Build Coastguard Worker  ]
73*d9f75844SAndroid Build Coastguard Worker  deps = [
74*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
75*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
76*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
77*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
78*d9f75844SAndroid Build Coastguard Worker  ]
79*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
80*d9f75844SAndroid Build Coastguard Worker}
81*d9f75844SAndroid Build Coastguard Worker
82*d9f75844SAndroid Build Coastguard Workerrtc_library("webrtc_cng") {
83*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
84*d9f75844SAndroid Build Coastguard Worker  sources = [
85*d9f75844SAndroid Build Coastguard Worker    "codecs/cng/webrtc_cng.cc",
86*d9f75844SAndroid Build Coastguard Worker    "codecs/cng/webrtc_cng.h",
87*d9f75844SAndroid Build Coastguard Worker  ]
88*d9f75844SAndroid Build Coastguard Worker
89*d9f75844SAndroid Build Coastguard Worker  deps = [
90*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
91*d9f75844SAndroid Build Coastguard Worker    "../../common_audio:common_audio_c",
92*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
93*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
94*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
95*d9f75844SAndroid Build Coastguard Worker  ]
96*d9f75844SAndroid Build Coastguard Worker}
97*d9f75844SAndroid Build Coastguard Worker
98*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_encoder_cng") {
99*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
100*d9f75844SAndroid Build Coastguard Worker  sources = [
101*d9f75844SAndroid Build Coastguard Worker    "codecs/cng/audio_encoder_cng.cc",
102*d9f75844SAndroid Build Coastguard Worker    "codecs/cng/audio_encoder_cng.h",
103*d9f75844SAndroid Build Coastguard Worker  ]
104*d9f75844SAndroid Build Coastguard Worker
105*d9f75844SAndroid Build Coastguard Worker  deps = [
106*d9f75844SAndroid Build Coastguard Worker    ":webrtc_cng",
107*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
108*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
109*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
110*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
111*d9f75844SAndroid Build Coastguard Worker  ]
112*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
113*d9f75844SAndroid Build Coastguard Worker}
114*d9f75844SAndroid Build Coastguard Worker
115*d9f75844SAndroid Build Coastguard Workerrtc_library("red") {
116*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
117*d9f75844SAndroid Build Coastguard Worker  sources = [
118*d9f75844SAndroid Build Coastguard Worker    "codecs/red/audio_encoder_copy_red.cc",
119*d9f75844SAndroid Build Coastguard Worker    "codecs/red/audio_encoder_copy_red.h",
120*d9f75844SAndroid Build Coastguard Worker  ]
121*d9f75844SAndroid Build Coastguard Worker
122*d9f75844SAndroid Build Coastguard Worker  deps = [
123*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
124*d9f75844SAndroid Build Coastguard Worker    "../../api:field_trials_view",
125*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
126*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
127*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
128*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
129*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:byte_order",
130*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
131*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
132*d9f75844SAndroid Build Coastguard Worker  ]
133*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
134*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
135*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
136*d9f75844SAndroid Build Coastguard Worker  ]
137*d9f75844SAndroid Build Coastguard Worker}
138*d9f75844SAndroid Build Coastguard Worker
139*d9f75844SAndroid Build Coastguard Workerrtc_library("g711") {
140*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
141*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
142*d9f75844SAndroid Build Coastguard Worker  sources = [
143*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/audio_decoder_pcm.cc",
144*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/audio_decoder_pcm.h",
145*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/audio_encoder_pcm.cc",
146*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/audio_encoder_pcm.h",
147*d9f75844SAndroid Build Coastguard Worker  ]
148*d9f75844SAndroid Build Coastguard Worker
149*d9f75844SAndroid Build Coastguard Worker  deps = [
150*d9f75844SAndroid Build Coastguard Worker    ":legacy_encoded_audio_frame",
151*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
152*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
153*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
154*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
155*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
156*d9f75844SAndroid Build Coastguard Worker  ]
157*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
158*d9f75844SAndroid Build Coastguard Worker  public_deps = [ ":g711_c" ]  # no-presubmit-check TODO(webrtc:8603)
159*d9f75844SAndroid Build Coastguard Worker}
160*d9f75844SAndroid Build Coastguard Worker
161*d9f75844SAndroid Build Coastguard Workerrtc_library("g711_c") {
162*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
163*d9f75844SAndroid Build Coastguard Worker  sources = [
164*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/g711_interface.c",
165*d9f75844SAndroid Build Coastguard Worker    "codecs/g711/g711_interface.h",
166*d9f75844SAndroid Build Coastguard Worker  ]
167*d9f75844SAndroid Build Coastguard Worker  deps = [ "../third_party/g711:g711_3p" ]
168*d9f75844SAndroid Build Coastguard Worker}
169*d9f75844SAndroid Build Coastguard Worker
170*d9f75844SAndroid Build Coastguard Workerrtc_library("g722") {
171*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
172*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
173*d9f75844SAndroid Build Coastguard Worker  sources = [
174*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/audio_decoder_g722.cc",
175*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/audio_decoder_g722.h",
176*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/audio_encoder_g722.cc",
177*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/audio_encoder_g722.h",
178*d9f75844SAndroid Build Coastguard Worker  ]
179*d9f75844SAndroid Build Coastguard Worker
180*d9f75844SAndroid Build Coastguard Worker  deps = [
181*d9f75844SAndroid Build Coastguard Worker    ":legacy_encoded_audio_frame",
182*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
183*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
184*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs/g722:audio_encoder_g722_config",
185*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
186*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
187*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
188*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
189*d9f75844SAndroid Build Coastguard Worker  ]
190*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
191*d9f75844SAndroid Build Coastguard Worker  public_deps = [ ":g722_c" ]  # no-presubmit-check TODO(webrtc:8603)
192*d9f75844SAndroid Build Coastguard Worker}
193*d9f75844SAndroid Build Coastguard Worker
194*d9f75844SAndroid Build Coastguard Workerrtc_library("g722_c") {
195*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
196*d9f75844SAndroid Build Coastguard Worker  sources = [
197*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/g722_interface.c",
198*d9f75844SAndroid Build Coastguard Worker    "codecs/g722/g722_interface.h",
199*d9f75844SAndroid Build Coastguard Worker  ]
200*d9f75844SAndroid Build Coastguard Worker  deps = [ "../third_party/g722:g722_3p" ]
201*d9f75844SAndroid Build Coastguard Worker}
202*d9f75844SAndroid Build Coastguard Worker
203*d9f75844SAndroid Build Coastguard Workerrtc_library("ilbc") {
204*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
205*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
206*d9f75844SAndroid Build Coastguard Worker  sources = [
207*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/audio_decoder_ilbc.cc",
208*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/audio_decoder_ilbc.h",
209*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/audio_encoder_ilbc.cc",
210*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/audio_encoder_ilbc.h",
211*d9f75844SAndroid Build Coastguard Worker  ]
212*d9f75844SAndroid Build Coastguard Worker
213*d9f75844SAndroid Build Coastguard Worker  deps = [
214*d9f75844SAndroid Build Coastguard Worker    ":legacy_encoded_audio_frame",
215*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
216*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
217*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
218*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
219*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
220*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
221*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
222*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
223*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
224*d9f75844SAndroid Build Coastguard Worker  ]
225*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
226*d9f75844SAndroid Build Coastguard Worker  public_deps = [ ":ilbc_c" ]  # no-presubmit-check TODO(webrtc:8603)
227*d9f75844SAndroid Build Coastguard Worker}
228*d9f75844SAndroid Build Coastguard Worker
229*d9f75844SAndroid Build Coastguard Workerrtc_library("ilbc_c") {
230*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
231*d9f75844SAndroid Build Coastguard Worker  sources = [
232*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/abs_quant.c",
233*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/abs_quant.h",
234*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/abs_quant_loop.c",
235*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/abs_quant_loop.h",
236*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/augmented_cb_corr.c",
237*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/augmented_cb_corr.h",
238*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/bw_expand.c",
239*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/bw_expand.h",
240*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_construct.c",
241*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_construct.h",
242*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy.c",
243*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy.h",
244*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy_augmentation.c",
245*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy_augmentation.h",
246*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy_calc.c",
247*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_mem_energy_calc.h",
248*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_search.c",
249*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_search.h",
250*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_search_core.c",
251*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_search_core.h",
252*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_update_best_index.c",
253*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/cb_update_best_index.h",
254*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/chebyshev.c",
255*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/chebyshev.h",
256*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/comp_corr.c",
257*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/comp_corr.h",
258*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/constants.c",
259*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/constants.h",
260*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/create_augmented_vec.c",
261*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/create_augmented_vec.h",
262*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decode.c",
263*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decode.h",
264*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decode_residual.c",
265*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decode_residual.h",
266*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decoder_interpolate_lsf.c",
267*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/decoder_interpolate_lsf.h",
268*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/defines.h",
269*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/do_plc.c",
270*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/do_plc.h",
271*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/encode.c",
272*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/encode.h",
273*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/energy_inverse.c",
274*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/energy_inverse.h",
275*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enh_upsample.c",
276*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enh_upsample.h",
277*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enhancer.c",
278*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enhancer.h",
279*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enhancer_interface.c",
280*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/enhancer_interface.h",
281*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/filtered_cb_vecs.c",
282*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/filtered_cb_vecs.h",
283*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/frame_classify.c",
284*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/frame_classify.h",
285*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/gain_dequant.c",
286*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/gain_dequant.h",
287*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/gain_quant.c",
288*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/gain_quant.h",
289*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_cd_vec.c",
290*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_cd_vec.h",
291*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_lsp_poly.c",
292*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_lsp_poly.h",
293*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_sync_seq.c",
294*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/get_sync_seq.h",
295*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/hp_input.c",
296*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/hp_input.h",
297*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/hp_output.c",
298*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/hp_output.h",
299*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/ilbc.c",
300*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/ilbc.h",
301*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/index_conv_dec.c",
302*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/index_conv_dec.h",
303*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/index_conv_enc.c",
304*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/index_conv_enc.h",
305*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/init_decode.c",
306*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/init_decode.h",
307*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/init_encode.c",
308*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/init_encode.h",
309*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/interpolate.c",
310*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/interpolate.h",
311*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/interpolate_samples.c",
312*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/interpolate_samples.h",
313*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lpc_encode.c",
314*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lpc_encode.h",
315*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_check.c",
316*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_check.h",
317*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
318*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
319*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
320*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
321*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_to_lsp.c",
322*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_to_lsp.h",
323*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_to_poly.c",
324*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsf_to_poly.h",
325*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsp_to_lsf.c",
326*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/lsp_to_lsf.h",
327*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/my_corr.c",
328*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/my_corr.h",
329*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/nearest_neighbor.c",
330*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/nearest_neighbor.h",
331*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/pack_bits.c",
332*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/pack_bits.h",
333*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/poly_to_lsf.c",
334*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/poly_to_lsf.h",
335*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/poly_to_lsp.c",
336*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/poly_to_lsp.h",
337*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/refiner.c",
338*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/refiner.h",
339*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_interpolate_lsf.c",
340*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_interpolate_lsf.h",
341*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lpc_analysis.c",
342*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lpc_analysis.h",
343*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lsf_dequant.c",
344*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lsf_dequant.h",
345*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lsf_quant.c",
346*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/simple_lsf_quant.h",
347*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/smooth.c",
348*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/smooth.h",
349*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/smooth_out_data.c",
350*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/smooth_out_data.h",
351*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/sort_sq.c",
352*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/sort_sq.h",
353*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/split_vq.c",
354*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/split_vq.h",
355*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/state_construct.c",
356*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/state_construct.h",
357*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/state_search.c",
358*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/state_search.h",
359*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/swap_bytes.c",
360*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/swap_bytes.h",
361*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/unpack_bits.c",
362*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/unpack_bits.h",
363*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/vq3.c",
364*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/vq3.h",
365*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/vq4.c",
366*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/vq4.h",
367*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/window32_w32.c",
368*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/window32_w32.h",
369*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/xcorr_coef.c",
370*d9f75844SAndroid Build Coastguard Worker    "codecs/ilbc/xcorr_coef.h",
371*d9f75844SAndroid Build Coastguard Worker  ]
372*d9f75844SAndroid Build Coastguard Worker
373*d9f75844SAndroid Build Coastguard Worker  deps = [
374*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
375*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
376*d9f75844SAndroid Build Coastguard Worker    "../../common_audio:common_audio_c",
377*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
378*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:sanitizer",
379*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/system:arch",
380*d9f75844SAndroid Build Coastguard Worker  ]
381*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
382*d9f75844SAndroid Build Coastguard Worker}
383*d9f75844SAndroid Build Coastguard Worker
384*d9f75844SAndroid Build Coastguard Workerrtc_library("isac_vad") {
385*d9f75844SAndroid Build Coastguard Worker  visibility += [ "../audio_processing/vad:*" ]
386*d9f75844SAndroid Build Coastguard Worker  sources = [
387*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/filter_functions.c",
388*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/filter_functions.h",
389*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/isac_vad.c",
390*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/isac_vad.h",
391*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/os_specific_inline.h",
392*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/pitch_estimator.c",
393*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/pitch_estimator.h",
394*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/pitch_filter.c",
395*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/pitch_filter.h",
396*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/settings.h",
397*d9f75844SAndroid Build Coastguard Worker    "codecs/isac/main/source/structs.h",
398*d9f75844SAndroid Build Coastguard Worker  ]
399*d9f75844SAndroid Build Coastguard Worker  deps = [
400*d9f75844SAndroid Build Coastguard Worker    ":isac_bwinfo",
401*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:compile_assert_c",
402*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/system:arch",
403*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/system:ignore_warnings",
404*d9f75844SAndroid Build Coastguard Worker    "../third_party/fft",
405*d9f75844SAndroid Build Coastguard Worker  ]
406*d9f75844SAndroid Build Coastguard Worker}
407*d9f75844SAndroid Build Coastguard Worker
408*d9f75844SAndroid Build Coastguard Workerrtc_source_set("isac_bwinfo") {
409*d9f75844SAndroid Build Coastguard Worker  sources = [ "codecs/isac/bandwidth_info.h" ]
410*d9f75844SAndroid Build Coastguard Worker  deps = []
411*d9f75844SAndroid Build Coastguard Worker}
412*d9f75844SAndroid Build Coastguard Worker
413*d9f75844SAndroid Build Coastguard Workerrtc_library("pcm16b") {
414*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
415*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
416*d9f75844SAndroid Build Coastguard Worker  sources = [
417*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/audio_decoder_pcm16b.cc",
418*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/audio_decoder_pcm16b.h",
419*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/audio_encoder_pcm16b.cc",
420*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/audio_encoder_pcm16b.h",
421*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/pcm16b_common.cc",
422*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/pcm16b_common.h",
423*d9f75844SAndroid Build Coastguard Worker  ]
424*d9f75844SAndroid Build Coastguard Worker
425*d9f75844SAndroid Build Coastguard Worker  deps = [
426*d9f75844SAndroid Build Coastguard Worker    ":g711",
427*d9f75844SAndroid Build Coastguard Worker    ":legacy_encoded_audio_frame",
428*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
429*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
430*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
431*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
432*d9f75844SAndroid Build Coastguard Worker  ]
433*d9f75844SAndroid Build Coastguard Worker  public_deps = [ ":pcm16b_c" ]  # no-presubmit-check TODO(webrtc:8603)
434*d9f75844SAndroid Build Coastguard Worker}
435*d9f75844SAndroid Build Coastguard Worker
436*d9f75844SAndroid Build Coastguard Workerrtc_library("pcm16b_c") {
437*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
438*d9f75844SAndroid Build Coastguard Worker  sources = [
439*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/pcm16b.c",
440*d9f75844SAndroid Build Coastguard Worker    "codecs/pcm16b/pcm16b.h",
441*d9f75844SAndroid Build Coastguard Worker  ]
442*d9f75844SAndroid Build Coastguard Worker}
443*d9f75844SAndroid Build Coastguard Worker
444*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_coding_opus_common") {
445*d9f75844SAndroid Build Coastguard Worker  sources = [
446*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_coder_opus_common.cc",
447*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_coder_opus_common.h",
448*d9f75844SAndroid Build Coastguard Worker  ]
449*d9f75844SAndroid Build Coastguard Worker
450*d9f75844SAndroid Build Coastguard Worker  deps = [
451*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
452*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
453*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
454*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
455*d9f75844SAndroid Build Coastguard Worker  ]
456*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
457*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
458*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
459*d9f75844SAndroid Build Coastguard Worker  ]
460*d9f75844SAndroid Build Coastguard Worker}
461*d9f75844SAndroid Build Coastguard Worker
462*d9f75844SAndroid Build Coastguard Workerrtc_library("webrtc_opus") {
463*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
464*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
465*d9f75844SAndroid Build Coastguard Worker  sources = [
466*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_decoder_opus.cc",
467*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_decoder_opus.h",
468*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_encoder_opus.cc",
469*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_encoder_opus.h",
470*d9f75844SAndroid Build Coastguard Worker  ]
471*d9f75844SAndroid Build Coastguard Worker
472*d9f75844SAndroid Build Coastguard Worker  deps = [
473*d9f75844SAndroid Build Coastguard Worker    ":audio_coding_opus_common",
474*d9f75844SAndroid Build Coastguard Worker    ":audio_network_adaptor",
475*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
476*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
477*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs/opus:audio_encoder_opus_config",
478*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
479*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
480*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
481*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
482*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:macromagic",
483*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:protobuf_utils",
484*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:rtc_numerics",
485*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
486*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_minmax",
487*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
488*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:timeutils",
489*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:field_trial",
490*d9f75844SAndroid Build Coastguard Worker  ]
491*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
492*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
493*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
494*d9f75844SAndroid Build Coastguard Worker  ]
495*d9f75844SAndroid Build Coastguard Worker  public_deps =  # no-presubmit-check TODO(webrtc:8603)
496*d9f75844SAndroid Build Coastguard Worker      [ ":webrtc_opus_wrapper" ]
497*d9f75844SAndroid Build Coastguard Worker
498*d9f75844SAndroid Build Coastguard Worker  defines = audio_codec_defines
499*d9f75844SAndroid Build Coastguard Worker}
500*d9f75844SAndroid Build Coastguard Worker
501*d9f75844SAndroid Build Coastguard Workerrtc_library("webrtc_multiopus") {
502*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
503*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
504*d9f75844SAndroid Build Coastguard Worker  sources = [
505*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_decoder_multi_channel_opus_impl.cc",
506*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_decoder_multi_channel_opus_impl.h",
507*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_encoder_multi_channel_opus_impl.cc",
508*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/audio_encoder_multi_channel_opus_impl.h",
509*d9f75844SAndroid Build Coastguard Worker  ]
510*d9f75844SAndroid Build Coastguard Worker
511*d9f75844SAndroid Build Coastguard Worker  deps = [
512*d9f75844SAndroid Build Coastguard Worker    ":audio_coding_opus_common",
513*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
514*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs/opus:audio_decoder_opus_config",
515*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs/opus:audio_encoder_opus_config",
516*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
517*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
518*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
519*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
520*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:macromagic",
521*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_minmax",
522*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
523*d9f75844SAndroid Build Coastguard Worker  ]
524*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
525*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/memory",
526*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
527*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
528*d9f75844SAndroid Build Coastguard Worker  ]
529*d9f75844SAndroid Build Coastguard Worker  public_deps =  # no-presubmit-check TODO(webrtc:8603)
530*d9f75844SAndroid Build Coastguard Worker      [ ":webrtc_opus_wrapper" ]
531*d9f75844SAndroid Build Coastguard Worker
532*d9f75844SAndroid Build Coastguard Worker  defines = audio_codec_defines
533*d9f75844SAndroid Build Coastguard Worker}
534*d9f75844SAndroid Build Coastguard Worker
535*d9f75844SAndroid Build Coastguard Workerrtc_library("webrtc_opus_wrapper") {
536*d9f75844SAndroid Build Coastguard Worker  poisonous = [ "audio_codecs" ]
537*d9f75844SAndroid Build Coastguard Worker  sources = [
538*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/opus_inst.h",
539*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/opus_interface.cc",
540*d9f75844SAndroid Build Coastguard Worker    "codecs/opus/opus_interface.h",
541*d9f75844SAndroid Build Coastguard Worker  ]
542*d9f75844SAndroid Build Coastguard Worker
543*d9f75844SAndroid Build Coastguard Worker  defines = audio_coding_defines
544*d9f75844SAndroid Build Coastguard Worker
545*d9f75844SAndroid Build Coastguard Worker  deps = [
546*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
547*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
548*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:ignore_wundef",
549*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:field_trial",
550*d9f75844SAndroid Build Coastguard Worker  ]
551*d9f75844SAndroid Build Coastguard Worker
552*d9f75844SAndroid Build Coastguard Worker  if (rtc_build_opus) {
553*d9f75844SAndroid Build Coastguard Worker    deps += [ rtc_opus_dir ]
554*d9f75844SAndroid Build Coastguard Worker    public_configs = [ "//third_party/opus:opus_config" ]
555*d9f75844SAndroid Build Coastguard Worker  } else if (build_with_mozilla) {
556*d9f75844SAndroid Build Coastguard Worker    include_dirs = [ getenv("DIST") + "/include/opus" ]
557*d9f75844SAndroid Build Coastguard Worker  }
558*d9f75844SAndroid Build Coastguard Worker}
559*d9f75844SAndroid Build Coastguard Worker
560*d9f75844SAndroid Build Coastguard Workerif (rtc_enable_protobuf) {
561*d9f75844SAndroid Build Coastguard Worker  proto_library("ana_debug_dump_proto") {
562*d9f75844SAndroid Build Coastguard Worker    visibility += webrtc_default_visibility
563*d9f75844SAndroid Build Coastguard Worker    sources = [ "audio_network_adaptor/debug_dump.proto" ]
564*d9f75844SAndroid Build Coastguard Worker    link_deps = [ ":ana_config_proto" ]
565*d9f75844SAndroid Build Coastguard Worker    proto_out_dir = "modules/audio_coding/audio_network_adaptor"
566*d9f75844SAndroid Build Coastguard Worker  }
567*d9f75844SAndroid Build Coastguard Worker  proto_library("ana_config_proto") {
568*d9f75844SAndroid Build Coastguard Worker    visibility += [ "*" ]
569*d9f75844SAndroid Build Coastguard Worker    sources = [ "audio_network_adaptor/config.proto" ]
570*d9f75844SAndroid Build Coastguard Worker    proto_out_dir = "modules/audio_coding/audio_network_adaptor"
571*d9f75844SAndroid Build Coastguard Worker  }
572*d9f75844SAndroid Build Coastguard Worker}
573*d9f75844SAndroid Build Coastguard Worker
574*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_network_adaptor_config") {
575*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
576*d9f75844SAndroid Build Coastguard Worker  sources = [
577*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/audio_network_adaptor_config.cc",
578*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/include/audio_network_adaptor_config.h",
579*d9f75844SAndroid Build Coastguard Worker  ]
580*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
581*d9f75844SAndroid Build Coastguard Worker}
582*d9f75844SAndroid Build Coastguard Worker
583*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_network_adaptor") {
584*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
585*d9f75844SAndroid Build Coastguard Worker  sources = [
586*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/audio_network_adaptor_impl.cc",
587*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/audio_network_adaptor_impl.h",
588*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/bitrate_controller.cc",
589*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/bitrate_controller.h",
590*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/channel_controller.cc",
591*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/channel_controller.h",
592*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/controller.cc",
593*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/controller.h",
594*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/controller_manager.cc",
595*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/controller_manager.h",
596*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/debug_dump_writer.cc",
597*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/debug_dump_writer.h",
598*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/dtx_controller.cc",
599*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/dtx_controller.h",
600*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/event_log_writer.cc",
601*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/event_log_writer.h",
602*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/fec_controller_plr_based.cc",
603*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/fec_controller_plr_based.h",
604*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/frame_length_controller.cc",
605*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/frame_length_controller.h",
606*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/frame_length_controller_v2.cc",
607*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/frame_length_controller_v2.h",
608*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/include/audio_network_adaptor.h",
609*d9f75844SAndroid Build Coastguard Worker    "audio_network_adaptor/util/threshold_curve.h",
610*d9f75844SAndroid Build Coastguard Worker  ]
611*d9f75844SAndroid Build Coastguard Worker
612*d9f75844SAndroid Build Coastguard Worker  public_deps =  # no-presubmit-check TODO(webrtc:8603)
613*d9f75844SAndroid Build Coastguard Worker      [ ":audio_network_adaptor_config" ]
614*d9f75844SAndroid Build Coastguard Worker
615*d9f75844SAndroid Build Coastguard Worker  deps = [
616*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
617*d9f75844SAndroid Build Coastguard Worker    "../../api/rtc_event_log",
618*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
619*d9f75844SAndroid Build Coastguard Worker    "../../logging:rtc_event_audio",
620*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
621*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:ignore_wundef",
622*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
623*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:protobuf_utils",
624*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
625*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:timeutils",
626*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/system:file_wrapper",
627*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
628*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:field_trial",
629*d9f75844SAndroid Build Coastguard Worker  ]
630*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
631*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/algorithm:container",
632*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
633*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
634*d9f75844SAndroid Build Coastguard Worker  ]
635*d9f75844SAndroid Build Coastguard Worker
636*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf) {
637*d9f75844SAndroid Build Coastguard Worker    deps += [
638*d9f75844SAndroid Build Coastguard Worker      ":ana_config_proto",
639*d9f75844SAndroid Build Coastguard Worker      ":ana_debug_dump_proto",
640*d9f75844SAndroid Build Coastguard Worker    ]
641*d9f75844SAndroid Build Coastguard Worker  }
642*d9f75844SAndroid Build Coastguard Worker}
643*d9f75844SAndroid Build Coastguard Worker
644*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq") {
645*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
646*d9f75844SAndroid Build Coastguard Worker  sources = [
647*d9f75844SAndroid Build Coastguard Worker    "neteq/accelerate.cc",
648*d9f75844SAndroid Build Coastguard Worker    "neteq/accelerate.h",
649*d9f75844SAndroid Build Coastguard Worker    "neteq/audio_multi_vector.cc",
650*d9f75844SAndroid Build Coastguard Worker    "neteq/audio_multi_vector.h",
651*d9f75844SAndroid Build Coastguard Worker    "neteq/audio_vector.cc",
652*d9f75844SAndroid Build Coastguard Worker    "neteq/audio_vector.h",
653*d9f75844SAndroid Build Coastguard Worker    "neteq/background_noise.cc",
654*d9f75844SAndroid Build Coastguard Worker    "neteq/background_noise.h",
655*d9f75844SAndroid Build Coastguard Worker    "neteq/buffer_level_filter.cc",
656*d9f75844SAndroid Build Coastguard Worker    "neteq/buffer_level_filter.h",
657*d9f75844SAndroid Build Coastguard Worker    "neteq/comfort_noise.cc",
658*d9f75844SAndroid Build Coastguard Worker    "neteq/comfort_noise.h",
659*d9f75844SAndroid Build Coastguard Worker    "neteq/cross_correlation.cc",
660*d9f75844SAndroid Build Coastguard Worker    "neteq/cross_correlation.h",
661*d9f75844SAndroid Build Coastguard Worker    "neteq/decision_logic.cc",
662*d9f75844SAndroid Build Coastguard Worker    "neteq/decision_logic.h",
663*d9f75844SAndroid Build Coastguard Worker    "neteq/decoder_database.cc",
664*d9f75844SAndroid Build Coastguard Worker    "neteq/decoder_database.h",
665*d9f75844SAndroid Build Coastguard Worker    "neteq/delay_manager.cc",
666*d9f75844SAndroid Build Coastguard Worker    "neteq/delay_manager.h",
667*d9f75844SAndroid Build Coastguard Worker    "neteq/dsp_helper.cc",
668*d9f75844SAndroid Build Coastguard Worker    "neteq/dsp_helper.h",
669*d9f75844SAndroid Build Coastguard Worker    "neteq/dtmf_buffer.cc",
670*d9f75844SAndroid Build Coastguard Worker    "neteq/dtmf_buffer.h",
671*d9f75844SAndroid Build Coastguard Worker    "neteq/dtmf_tone_generator.cc",
672*d9f75844SAndroid Build Coastguard Worker    "neteq/dtmf_tone_generator.h",
673*d9f75844SAndroid Build Coastguard Worker    "neteq/expand.cc",
674*d9f75844SAndroid Build Coastguard Worker    "neteq/expand.h",
675*d9f75844SAndroid Build Coastguard Worker    "neteq/expand_uma_logger.cc",
676*d9f75844SAndroid Build Coastguard Worker    "neteq/expand_uma_logger.h",
677*d9f75844SAndroid Build Coastguard Worker    "neteq/histogram.cc",
678*d9f75844SAndroid Build Coastguard Worker    "neteq/histogram.h",
679*d9f75844SAndroid Build Coastguard Worker    "neteq/merge.cc",
680*d9f75844SAndroid Build Coastguard Worker    "neteq/merge.h",
681*d9f75844SAndroid Build Coastguard Worker    "neteq/nack_tracker.cc",
682*d9f75844SAndroid Build Coastguard Worker    "neteq/nack_tracker.h",
683*d9f75844SAndroid Build Coastguard Worker    "neteq/neteq_impl.cc",
684*d9f75844SAndroid Build Coastguard Worker    "neteq/neteq_impl.h",
685*d9f75844SAndroid Build Coastguard Worker    "neteq/normal.cc",
686*d9f75844SAndroid Build Coastguard Worker    "neteq/normal.h",
687*d9f75844SAndroid Build Coastguard Worker    "neteq/packet.cc",
688*d9f75844SAndroid Build Coastguard Worker    "neteq/packet.h",
689*d9f75844SAndroid Build Coastguard Worker    "neteq/packet_arrival_history.cc",
690*d9f75844SAndroid Build Coastguard Worker    "neteq/packet_arrival_history.h",
691*d9f75844SAndroid Build Coastguard Worker    "neteq/packet_buffer.cc",
692*d9f75844SAndroid Build Coastguard Worker    "neteq/packet_buffer.h",
693*d9f75844SAndroid Build Coastguard Worker    "neteq/post_decode_vad.cc",
694*d9f75844SAndroid Build Coastguard Worker    "neteq/post_decode_vad.h",
695*d9f75844SAndroid Build Coastguard Worker    "neteq/preemptive_expand.cc",
696*d9f75844SAndroid Build Coastguard Worker    "neteq/preemptive_expand.h",
697*d9f75844SAndroid Build Coastguard Worker    "neteq/random_vector.cc",
698*d9f75844SAndroid Build Coastguard Worker    "neteq/random_vector.h",
699*d9f75844SAndroid Build Coastguard Worker    "neteq/red_payload_splitter.cc",
700*d9f75844SAndroid Build Coastguard Worker    "neteq/red_payload_splitter.h",
701*d9f75844SAndroid Build Coastguard Worker    "neteq/reorder_optimizer.cc",
702*d9f75844SAndroid Build Coastguard Worker    "neteq/reorder_optimizer.h",
703*d9f75844SAndroid Build Coastguard Worker    "neteq/statistics_calculator.cc",
704*d9f75844SAndroid Build Coastguard Worker    "neteq/statistics_calculator.h",
705*d9f75844SAndroid Build Coastguard Worker    "neteq/sync_buffer.cc",
706*d9f75844SAndroid Build Coastguard Worker    "neteq/sync_buffer.h",
707*d9f75844SAndroid Build Coastguard Worker    "neteq/time_stretch.cc",
708*d9f75844SAndroid Build Coastguard Worker    "neteq/time_stretch.h",
709*d9f75844SAndroid Build Coastguard Worker    "neteq/timestamp_scaler.cc",
710*d9f75844SAndroid Build Coastguard Worker    "neteq/timestamp_scaler.h",
711*d9f75844SAndroid Build Coastguard Worker    "neteq/underrun_optimizer.cc",
712*d9f75844SAndroid Build Coastguard Worker    "neteq/underrun_optimizer.h",
713*d9f75844SAndroid Build Coastguard Worker  ]
714*d9f75844SAndroid Build Coastguard Worker
715*d9f75844SAndroid Build Coastguard Worker  deps = [
716*d9f75844SAndroid Build Coastguard Worker    ":audio_coding_module_typedefs",
717*d9f75844SAndroid Build Coastguard Worker    ":webrtc_cng",
718*d9f75844SAndroid Build Coastguard Worker    "..:module_api_public",
719*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
720*d9f75844SAndroid Build Coastguard Worker    "../../api:rtp_headers",
721*d9f75844SAndroid Build Coastguard Worker    "../../api:rtp_packet_info",
722*d9f75844SAndroid Build Coastguard Worker    "../../api:scoped_refptr",
723*d9f75844SAndroid Build Coastguard Worker    "../../api/audio:audio_frame_api",
724*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
725*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_api",
726*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_controller_api",
727*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:tick_timer",
728*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
729*d9f75844SAndroid Build Coastguard Worker    "../../common_audio:common_audio_c",
730*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:audio_format_to_string",
731*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
732*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
733*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:event_tracer",
734*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:gtest_prod",
735*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:logging",
736*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:macromagic",
737*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
738*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_minmax",
739*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:sanitizer",
740*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/experiments:field_trial_parser",
741*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/synchronization:mutex",
742*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
743*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:field_trial",
744*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:metrics",
745*d9f75844SAndroid Build Coastguard Worker  ]
746*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
747*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
748*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
749*d9f75844SAndroid Build Coastguard Worker  ]
750*d9f75844SAndroid Build Coastguard Worker}
751*d9f75844SAndroid Build Coastguard Worker
752*d9f75844SAndroid Build Coastguard Workerrtc_source_set("default_neteq_factory") {
753*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
754*d9f75844SAndroid Build Coastguard Worker  sources = [
755*d9f75844SAndroid Build Coastguard Worker    "neteq/default_neteq_factory.cc",
756*d9f75844SAndroid Build Coastguard Worker    "neteq/default_neteq_factory.h",
757*d9f75844SAndroid Build Coastguard Worker  ]
758*d9f75844SAndroid Build Coastguard Worker  deps = [
759*d9f75844SAndroid Build Coastguard Worker    ":neteq",
760*d9f75844SAndroid Build Coastguard Worker    "../../api:scoped_refptr",
761*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
762*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:default_neteq_controller_factory",
763*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_api",
764*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:system_wrappers",
765*d9f75844SAndroid Build Coastguard Worker  ]
766*d9f75844SAndroid Build Coastguard Worker}
767*d9f75844SAndroid Build Coastguard Worker
768*d9f75844SAndroid Build Coastguard Worker# Although providing only test support, this target must be outside of the
769*d9f75844SAndroid Build Coastguard Worker# rtc_include_tests conditional. The reason is that it supports fuzzer tests
770*d9f75844SAndroid Build Coastguard Worker# that ultimately are built and run as a part of the Chromium ecosystem, which
771*d9f75844SAndroid Build Coastguard Worker# does not set the rtc_include_tests flag.
772*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq_tools_minimal") {
773*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
774*d9f75844SAndroid Build Coastguard Worker  sources = [
775*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/audio_sink.cc",
776*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/audio_sink.h",
777*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/encode_neteq_input.cc",
778*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/encode_neteq_input.h",
779*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_input.cc",
780*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_input.h",
781*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_test.cc",
782*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_test.h",
783*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/packet.cc",
784*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/packet.h",
785*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/packet_source.cc",
786*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/packet_source.h",
787*d9f75844SAndroid Build Coastguard Worker  ]
788*d9f75844SAndroid Build Coastguard Worker
789*d9f75844SAndroid Build Coastguard Worker  deps = [
790*d9f75844SAndroid Build Coastguard Worker    ":default_neteq_factory",
791*d9f75844SAndroid Build Coastguard Worker    ":neteq",
792*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
793*d9f75844SAndroid Build Coastguard Worker    "../../api:neteq_simulator_api",
794*d9f75844SAndroid Build Coastguard Worker    "../../api:rtp_headers",
795*d9f75844SAndroid Build Coastguard Worker    "../../api/audio:audio_frame_api",
796*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
797*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:custom_neteq_factory",
798*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:default_neteq_controller_factory",
799*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_api",
800*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
801*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
802*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:copy_on_write_buffer",
803*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
804*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
805*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
806*d9f75844SAndroid Build Coastguard Worker    "../rtp_rtcp:rtp_rtcp_format",
807*d9f75844SAndroid Build Coastguard Worker  ]
808*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
809*d9f75844SAndroid Build Coastguard Worker  defines = audio_codec_defines
810*d9f75844SAndroid Build Coastguard Worker}
811*d9f75844SAndroid Build Coastguard Worker
812*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq_test_tools") {
813*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
814*d9f75844SAndroid Build Coastguard Worker  testonly = true
815*d9f75844SAndroid Build Coastguard Worker  sources = [
816*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/audio_checksum.h",
817*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/audio_loop.cc",
818*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/audio_loop.h",
819*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/constant_pcm_packet_source.cc",
820*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/constant_pcm_packet_source.h",
821*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/initial_packet_inserter_neteq_input.cc",
822*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/initial_packet_inserter_neteq_input.h",
823*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_packet_source_input.cc",
824*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_packet_source_input.h",
825*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/output_audio_file.h",
826*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/output_wav_file.h",
827*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/rtp_file_source.cc",
828*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/rtp_file_source.h",
829*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/rtp_generator.cc",
830*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/rtp_generator.h",
831*d9f75844SAndroid Build Coastguard Worker  ]
832*d9f75844SAndroid Build Coastguard Worker
833*d9f75844SAndroid Build Coastguard Worker  deps = [
834*d9f75844SAndroid Build Coastguard Worker    ":neteq_tools",
835*d9f75844SAndroid Build Coastguard Worker    ":neteq_tools_minimal",
836*d9f75844SAndroid Build Coastguard Worker    ":pcm16b",
837*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
838*d9f75844SAndroid Build Coastguard Worker    "../../api:rtp_headers",
839*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
840*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base",
841*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:buffer",
842*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
843*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
844*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base/system:arch",
845*d9f75844SAndroid Build Coastguard Worker    "../../test:rtp_test_utils",
846*d9f75844SAndroid Build Coastguard Worker    "../rtp_rtcp:rtp_rtcp_format",
847*d9f75844SAndroid Build Coastguard Worker  ]
848*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
849*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
850*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
851*d9f75844SAndroid Build Coastguard Worker  ]
852*d9f75844SAndroid Build Coastguard Worker
853*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf) {
854*d9f75844SAndroid Build Coastguard Worker    sources += [
855*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/neteq_event_log_input.cc",
856*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/neteq_event_log_input.h",
857*d9f75844SAndroid Build Coastguard Worker    ]
858*d9f75844SAndroid Build Coastguard Worker    deps += [ ":rtc_event_log_source" ]
859*d9f75844SAndroid Build Coastguard Worker  }
860*d9f75844SAndroid Build Coastguard Worker}
861*d9f75844SAndroid Build Coastguard Worker
862*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq_tools") {
863*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
864*d9f75844SAndroid Build Coastguard Worker  sources = [
865*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/fake_decode_from_file.cc",
866*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/fake_decode_from_file.h",
867*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_delay_analyzer.cc",
868*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_delay_analyzer.h",
869*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_replacement_input.cc",
870*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_replacement_input.h",
871*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_stats_getter.cc",
872*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_stats_getter.h",
873*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_stats_plotter.cc",
874*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/neteq_stats_plotter.h",
875*d9f75844SAndroid Build Coastguard Worker  ]
876*d9f75844SAndroid Build Coastguard Worker
877*d9f75844SAndroid Build Coastguard Worker  deps = [
878*d9f75844SAndroid Build Coastguard Worker    ":neteq_input_audio_tools",
879*d9f75844SAndroid Build Coastguard Worker    ":neteq_tools_minimal",
880*d9f75844SAndroid Build Coastguard Worker    "..:module_api_public",
881*d9f75844SAndroid Build Coastguard Worker    "../../api:array_view",
882*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:audio_codecs_api",
883*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
884*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:safe_conversions",
885*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
886*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:timeutils",
887*d9f75844SAndroid Build Coastguard Worker    "../rtp_rtcp",
888*d9f75844SAndroid Build Coastguard Worker    "../rtp_rtcp:rtp_rtcp_format",
889*d9f75844SAndroid Build Coastguard Worker  ]
890*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
891*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
892*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
893*d9f75844SAndroid Build Coastguard Worker  ]
894*d9f75844SAndroid Build Coastguard Worker}
895*d9f75844SAndroid Build Coastguard Worker
896*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq_input_audio_tools") {
897*d9f75844SAndroid Build Coastguard Worker  visibility += webrtc_default_visibility
898*d9f75844SAndroid Build Coastguard Worker  sources = [
899*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/input_audio_file.cc",
900*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/input_audio_file.h",
901*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/resample_input_audio_file.cc",
902*d9f75844SAndroid Build Coastguard Worker    "neteq/tools/resample_input_audio_file.h",
903*d9f75844SAndroid Build Coastguard Worker  ]
904*d9f75844SAndroid Build Coastguard Worker
905*d9f75844SAndroid Build Coastguard Worker  deps = [
906*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
907*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
908*d9f75844SAndroid Build Coastguard Worker  ]
909*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
910*d9f75844SAndroid Build Coastguard Worker}
911*d9f75844SAndroid Build Coastguard Worker
912*d9f75844SAndroid Build Coastguard Workerif (rtc_enable_protobuf) {
913*d9f75844SAndroid Build Coastguard Worker  rtc_library("rtc_event_log_source") {
914*d9f75844SAndroid Build Coastguard Worker    testonly = true
915*d9f75844SAndroid Build Coastguard Worker
916*d9f75844SAndroid Build Coastguard Worker    sources = [
917*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/rtc_event_log_source.cc",
918*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/rtc_event_log_source.h",
919*d9f75844SAndroid Build Coastguard Worker    ]
920*d9f75844SAndroid Build Coastguard Worker
921*d9f75844SAndroid Build Coastguard Worker    deps = [
922*d9f75844SAndroid Build Coastguard Worker      ":neteq_tools_minimal",
923*d9f75844SAndroid Build Coastguard Worker      "../../logging:rtc_event_log_parser",
924*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:checks",
925*d9f75844SAndroid Build Coastguard Worker      "../rtp_rtcp",
926*d9f75844SAndroid Build Coastguard Worker      "../rtp_rtcp:rtp_rtcp_format",
927*d9f75844SAndroid Build Coastguard Worker    ]
928*d9f75844SAndroid Build Coastguard Worker    absl_deps = [
929*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/strings",
930*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/types:optional",
931*d9f75844SAndroid Build Coastguard Worker    ]
932*d9f75844SAndroid Build Coastguard Worker    public_deps =  # no-presubmit-check TODO(webrtc:8603)
933*d9f75844SAndroid Build Coastguard Worker        [ "../../logging:rtc_event_log_proto" ]
934*d9f75844SAndroid Build Coastguard Worker  }
935*d9f75844SAndroid Build Coastguard Worker
936*d9f75844SAndroid Build Coastguard Worker  # Only used for test purpose. Since we want to use it from chromium
937*d9f75844SAndroid Build Coastguard Worker  # (see audio_coding_modules_tests_shared below), we cannot guard it
938*d9f75844SAndroid Build Coastguard Worker  # under rtc_include_tests.
939*d9f75844SAndroid Build Coastguard Worker  proto_library("neteq_unittest_proto") {
940*d9f75844SAndroid Build Coastguard Worker    testonly = true
941*d9f75844SAndroid Build Coastguard Worker    sources = [ "neteq/neteq_unittest.proto" ]
942*d9f75844SAndroid Build Coastguard Worker    proto_out_dir = "modules/audio_coding/neteq"
943*d9f75844SAndroid Build Coastguard Worker  }
944*d9f75844SAndroid Build Coastguard Worker}
945*d9f75844SAndroid Build Coastguard Worker
946*d9f75844SAndroid Build Coastguard Worker# Allow to re-use some test classes from chromium.
947*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_coding_modules_tests_shared") {
948*d9f75844SAndroid Build Coastguard Worker  testonly = true
949*d9f75844SAndroid Build Coastguard Worker  visibility = []
950*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
951*d9f75844SAndroid Build Coastguard Worker
952*d9f75844SAndroid Build Coastguard Worker  sources = [
953*d9f75844SAndroid Build Coastguard Worker    "neteq/test/neteq_decoding_test.cc",
954*d9f75844SAndroid Build Coastguard Worker    "neteq/test/neteq_decoding_test.h",
955*d9f75844SAndroid Build Coastguard Worker    "neteq/test/result_sink.cc",
956*d9f75844SAndroid Build Coastguard Worker    "neteq/test/result_sink.h",
957*d9f75844SAndroid Build Coastguard Worker    "test/PCMFile.cc",
958*d9f75844SAndroid Build Coastguard Worker    "test/PCMFile.h",
959*d9f75844SAndroid Build Coastguard Worker    "test/TestStereo.cc",
960*d9f75844SAndroid Build Coastguard Worker    "test/TestStereo.h",
961*d9f75844SAndroid Build Coastguard Worker    "test/opus_test.cc",
962*d9f75844SAndroid Build Coastguard Worker    "test/opus_test.h",
963*d9f75844SAndroid Build Coastguard Worker  ]
964*d9f75844SAndroid Build Coastguard Worker
965*d9f75844SAndroid Build Coastguard Worker  deps = [
966*d9f75844SAndroid Build Coastguard Worker    ":audio_coding",
967*d9f75844SAndroid Build Coastguard Worker    ":audio_coding_module_typedefs",
968*d9f75844SAndroid Build Coastguard Worker    ":default_neteq_factory",
969*d9f75844SAndroid Build Coastguard Worker    ":neteq_test_tools",
970*d9f75844SAndroid Build Coastguard Worker    ":neteq_tools_minimal",
971*d9f75844SAndroid Build Coastguard Worker    ":webrtc_opus_wrapper",
972*d9f75844SAndroid Build Coastguard Worker    "..:module_api",
973*d9f75844SAndroid Build Coastguard Worker    "../../api:rtp_headers",
974*d9f75844SAndroid Build Coastguard Worker    "../../api/audio:audio_frame_api",
975*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:builtin_audio_decoder_factory",
976*d9f75844SAndroid Build Coastguard Worker    "../../api/audio_codecs:builtin_audio_encoder_factory",
977*d9f75844SAndroid Build Coastguard Worker    "../../api/neteq:neteq_api",
978*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base",
979*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:checks",
980*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:ignore_wundef",
981*d9f75844SAndroid Build Coastguard Worker    "../../rtc_base:stringutils",
982*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
983*d9f75844SAndroid Build Coastguard Worker    "../../test:fileutils",
984*d9f75844SAndroid Build Coastguard Worker    "../../test:test_support",
985*d9f75844SAndroid Build Coastguard Worker    "//testing/gtest",
986*d9f75844SAndroid Build Coastguard Worker  ]
987*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
988*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
989*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
990*d9f75844SAndroid Build Coastguard Worker  ]
991*d9f75844SAndroid Build Coastguard Worker  defines = audio_coding_defines
992*d9f75844SAndroid Build Coastguard Worker
993*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf) {
994*d9f75844SAndroid Build Coastguard Worker    defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
995*d9f75844SAndroid Build Coastguard Worker    deps += [ ":neteq_unittest_proto" ]
996*d9f75844SAndroid Build Coastguard Worker  }
997*d9f75844SAndroid Build Coastguard Worker}
998*d9f75844SAndroid Build Coastguard Worker
999*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) {
1000*d9f75844SAndroid Build Coastguard Worker  audio_coding_deps = [
1001*d9f75844SAndroid Build Coastguard Worker    ":audio_encoder_cng",
1002*d9f75844SAndroid Build Coastguard Worker    ":g711",
1003*d9f75844SAndroid Build Coastguard Worker    ":g722",
1004*d9f75844SAndroid Build Coastguard Worker    ":pcm16b",
1005*d9f75844SAndroid Build Coastguard Worker    "../../common_audio",
1006*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers",
1007*d9f75844SAndroid Build Coastguard Worker  ]
1008*d9f75844SAndroid Build Coastguard Worker  if (rtc_include_ilbc) {
1009*d9f75844SAndroid Build Coastguard Worker    audio_coding_deps += [ ":ilbc" ]
1010*d9f75844SAndroid Build Coastguard Worker  }
1011*d9f75844SAndroid Build Coastguard Worker  if (rtc_include_opus) {
1012*d9f75844SAndroid Build Coastguard Worker    audio_coding_deps += [ ":webrtc_opus" ]
1013*d9f75844SAndroid Build Coastguard Worker  }
1014*d9f75844SAndroid Build Coastguard Worker  if (!build_with_mozilla && !build_with_chromium) {
1015*d9f75844SAndroid Build Coastguard Worker    audio_coding_deps += [ ":red" ]
1016*d9f75844SAndroid Build Coastguard Worker  }
1017*d9f75844SAndroid Build Coastguard Worker
1018*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mocks") {
1019*d9f75844SAndroid Build Coastguard Worker    testonly = true
1020*d9f75844SAndroid Build Coastguard Worker    sources = [
1021*d9f75844SAndroid Build Coastguard Worker      "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1022*d9f75844SAndroid Build Coastguard Worker      "audio_network_adaptor/mock/mock_controller.h",
1023*d9f75844SAndroid Build Coastguard Worker      "audio_network_adaptor/mock/mock_controller_manager.h",
1024*d9f75844SAndroid Build Coastguard Worker      "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1025*d9f75844SAndroid Build Coastguard Worker    ]
1026*d9f75844SAndroid Build Coastguard Worker    deps = [
1027*d9f75844SAndroid Build Coastguard Worker      ":audio_network_adaptor",
1028*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1029*d9f75844SAndroid Build Coastguard Worker    ]
1030*d9f75844SAndroid Build Coastguard Worker  }
1031*d9f75844SAndroid Build Coastguard Worker
1032*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
1033*d9f75844SAndroid Build Coastguard Worker    group("audio_coding_tests") {
1034*d9f75844SAndroid Build Coastguard Worker      visibility += webrtc_default_visibility
1035*d9f75844SAndroid Build Coastguard Worker      testonly = true
1036*d9f75844SAndroid Build Coastguard Worker      public_deps = [  # no-presubmit-check TODO(webrtc:8603)
1037*d9f75844SAndroid Build Coastguard Worker        ":acm_receive_test",
1038*d9f75844SAndroid Build Coastguard Worker        ":acm_send_test",
1039*d9f75844SAndroid Build Coastguard Worker        ":audio_codec_speed_tests",
1040*d9f75844SAndroid Build Coastguard Worker        ":audio_decoder_unittests",
1041*d9f75844SAndroid Build Coastguard Worker        ":audio_decoder_unittests",
1042*d9f75844SAndroid Build Coastguard Worker        ":g711_test",
1043*d9f75844SAndroid Build Coastguard Worker        ":g722_test",
1044*d9f75844SAndroid Build Coastguard Worker        ":ilbc_test",
1045*d9f75844SAndroid Build Coastguard Worker        ":neteq_ilbc_quality_test",
1046*d9f75844SAndroid Build Coastguard Worker        ":neteq_opus_quality_test",
1047*d9f75844SAndroid Build Coastguard Worker        ":neteq_pcm16b_quality_test",
1048*d9f75844SAndroid Build Coastguard Worker        ":neteq_pcmu_quality_test",
1049*d9f75844SAndroid Build Coastguard Worker        ":neteq_speed_test",
1050*d9f75844SAndroid Build Coastguard Worker        ":rtp_analyze",
1051*d9f75844SAndroid Build Coastguard Worker        ":rtp_encode",
1052*d9f75844SAndroid Build Coastguard Worker        ":rtp_jitter",
1053*d9f75844SAndroid Build Coastguard Worker        ":rtpcat",
1054*d9f75844SAndroid Build Coastguard Worker        ":webrtc_opus_fec_test",
1055*d9f75844SAndroid Build Coastguard Worker      ]
1056*d9f75844SAndroid Build Coastguard Worker      if (rtc_enable_protobuf) {
1057*d9f75844SAndroid Build Coastguard Worker        public_deps +=  # no-presubmit-check TODO(webrtc:8603)
1058*d9f75844SAndroid Build Coastguard Worker            [ ":neteq_rtpplay" ]
1059*d9f75844SAndroid Build Coastguard Worker      }
1060*d9f75844SAndroid Build Coastguard Worker    }
1061*d9f75844SAndroid Build Coastguard Worker  }
1062*d9f75844SAndroid Build Coastguard Worker
1063*d9f75844SAndroid Build Coastguard Worker  rtc_library("audio_coding_modules_tests") {
1064*d9f75844SAndroid Build Coastguard Worker    testonly = true
1065*d9f75844SAndroid Build Coastguard Worker    visibility += webrtc_default_visibility
1066*d9f75844SAndroid Build Coastguard Worker
1067*d9f75844SAndroid Build Coastguard Worker    sources = [
1068*d9f75844SAndroid Build Coastguard Worker      "test/Channel.cc",
1069*d9f75844SAndroid Build Coastguard Worker      "test/Channel.h",
1070*d9f75844SAndroid Build Coastguard Worker      "test/EncodeDecodeTest.cc",
1071*d9f75844SAndroid Build Coastguard Worker      "test/EncodeDecodeTest.h",
1072*d9f75844SAndroid Build Coastguard Worker      "test/PacketLossTest.cc",
1073*d9f75844SAndroid Build Coastguard Worker      "test/PacketLossTest.h",
1074*d9f75844SAndroid Build Coastguard Worker      "test/RTPFile.cc",
1075*d9f75844SAndroid Build Coastguard Worker      "test/RTPFile.h",
1076*d9f75844SAndroid Build Coastguard Worker      "test/TestAllCodecs.cc",
1077*d9f75844SAndroid Build Coastguard Worker      "test/TestAllCodecs.h",
1078*d9f75844SAndroid Build Coastguard Worker      "test/TestRedFec.cc",
1079*d9f75844SAndroid Build Coastguard Worker      "test/TestRedFec.h",
1080*d9f75844SAndroid Build Coastguard Worker      "test/TestVADDTX.cc",
1081*d9f75844SAndroid Build Coastguard Worker      "test/TestVADDTX.h",
1082*d9f75844SAndroid Build Coastguard Worker      "test/Tester.cc",
1083*d9f75844SAndroid Build Coastguard Worker      "test/TwoWayCommunication.cc",
1084*d9f75844SAndroid Build Coastguard Worker      "test/TwoWayCommunication.h",
1085*d9f75844SAndroid Build Coastguard Worker      "test/target_delay_unittest.cc",
1086*d9f75844SAndroid Build Coastguard Worker    ]
1087*d9f75844SAndroid Build Coastguard Worker    deps = [
1088*d9f75844SAndroid Build Coastguard Worker      ":audio_coding",
1089*d9f75844SAndroid Build Coastguard Worker      ":audio_coding_module_typedefs",
1090*d9f75844SAndroid Build Coastguard Worker      ":audio_coding_modules_tests_shared",
1091*d9f75844SAndroid Build Coastguard Worker      ":audio_encoder_cng",
1092*d9f75844SAndroid Build Coastguard Worker      ":pcm16b_c",
1093*d9f75844SAndroid Build Coastguard Worker      ":red",
1094*d9f75844SAndroid Build Coastguard Worker      ":webrtc_opus_wrapper",
1095*d9f75844SAndroid Build Coastguard Worker      "..:module_api",
1096*d9f75844SAndroid Build Coastguard Worker      "../../api:rtp_headers",
1097*d9f75844SAndroid Build Coastguard Worker      "../../api/audio:audio_frame_api",
1098*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:audio_codecs_api",
1099*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_decoder_factory",
1100*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_encoder_factory",
1101*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/L16:audio_decoder_L16",
1102*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/L16:audio_encoder_L16",
1103*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/g711:audio_decoder_g711",
1104*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/g711:audio_encoder_g711",
1105*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/g722:audio_decoder_g722",
1106*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/g722:audio_encoder_g722",
1107*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/ilbc:audio_decoder_ilbc",
1108*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
1109*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/opus:audio_decoder_opus",
1110*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/opus:audio_encoder_opus",
1111*d9f75844SAndroid Build Coastguard Worker      "../../common_audio",
1112*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:checks",
1113*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:logging",
1114*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:macromagic",
1115*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:stringutils",
1116*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:timeutils",
1117*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base/synchronization:mutex",
1118*d9f75844SAndroid Build Coastguard Worker      "../../test:fileutils",
1119*d9f75844SAndroid Build Coastguard Worker      "../../test:scoped_key_value_config",
1120*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1121*d9f75844SAndroid Build Coastguard Worker    ]
1122*d9f75844SAndroid Build Coastguard Worker    absl_deps = [
1123*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/strings",
1124*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/types:optional",
1125*d9f75844SAndroid Build Coastguard Worker    ]
1126*d9f75844SAndroid Build Coastguard Worker    defines = audio_coding_defines
1127*d9f75844SAndroid Build Coastguard Worker  }
1128*d9f75844SAndroid Build Coastguard Worker
1129*d9f75844SAndroid Build Coastguard Worker  rtc_library("audio_coding_perf_tests") {
1130*d9f75844SAndroid Build Coastguard Worker    testonly = true
1131*d9f75844SAndroid Build Coastguard Worker    visibility += webrtc_default_visibility
1132*d9f75844SAndroid Build Coastguard Worker
1133*d9f75844SAndroid Build Coastguard Worker    sources = [
1134*d9f75844SAndroid Build Coastguard Worker      "codecs/opus/opus_complexity_unittest.cc",
1135*d9f75844SAndroid Build Coastguard Worker      "neteq/test/neteq_performance_unittest.cc",
1136*d9f75844SAndroid Build Coastguard Worker    ]
1137*d9f75844SAndroid Build Coastguard Worker    deps = [
1138*d9f75844SAndroid Build Coastguard Worker      ":neteq_test_support",
1139*d9f75844SAndroid Build Coastguard Worker      ":neteq_test_tools",
1140*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs/opus:audio_encoder_opus",
1141*d9f75844SAndroid Build Coastguard Worker      "../../api/test/metrics:global_metrics_logger_and_exporter",
1142*d9f75844SAndroid Build Coastguard Worker      "../../api/test/metrics:metric",
1143*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:macromagic",
1144*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:timeutils",
1145*d9f75844SAndroid Build Coastguard Worker      "../../system_wrappers",
1146*d9f75844SAndroid Build Coastguard Worker      "../../system_wrappers:field_trial",
1147*d9f75844SAndroid Build Coastguard Worker      "../../test:fileutils",
1148*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1149*d9f75844SAndroid Build Coastguard Worker    ]
1150*d9f75844SAndroid Build Coastguard Worker  }
1151*d9f75844SAndroid Build Coastguard Worker
1152*d9f75844SAndroid Build Coastguard Worker  rtc_library("acm_receive_test") {
1153*d9f75844SAndroid Build Coastguard Worker    testonly = true
1154*d9f75844SAndroid Build Coastguard Worker    sources = [
1155*d9f75844SAndroid Build Coastguard Worker      "acm2/acm_receive_test.cc",
1156*d9f75844SAndroid Build Coastguard Worker      "acm2/acm_receive_test.h",
1157*d9f75844SAndroid Build Coastguard Worker    ]
1158*d9f75844SAndroid Build Coastguard Worker
1159*d9f75844SAndroid Build Coastguard Worker    defines = audio_coding_defines
1160*d9f75844SAndroid Build Coastguard Worker
1161*d9f75844SAndroid Build Coastguard Worker    deps = [
1162*d9f75844SAndroid Build Coastguard Worker      ":audio_coding",
1163*d9f75844SAndroid Build Coastguard Worker      ":neteq_tools",
1164*d9f75844SAndroid Build Coastguard Worker      ":neteq_tools_minimal",
1165*d9f75844SAndroid Build Coastguard Worker      "../../api:scoped_refptr",
1166*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:audio_codecs_api",
1167*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_decoder_factory",
1168*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1169*d9f75844SAndroid Build Coastguard Worker      "//testing/gtest",
1170*d9f75844SAndroid Build Coastguard Worker    ]
1171*d9f75844SAndroid Build Coastguard Worker
1172*d9f75844SAndroid Build Coastguard Worker    deps += audio_coding_deps
1173*d9f75844SAndroid Build Coastguard Worker    absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1174*d9f75844SAndroid Build Coastguard Worker  }
1175*d9f75844SAndroid Build Coastguard Worker
1176*d9f75844SAndroid Build Coastguard Worker  rtc_library("acm_send_test") {
1177*d9f75844SAndroid Build Coastguard Worker    testonly = true
1178*d9f75844SAndroid Build Coastguard Worker    sources = [
1179*d9f75844SAndroid Build Coastguard Worker      "acm2/acm_send_test.cc",
1180*d9f75844SAndroid Build Coastguard Worker      "acm2/acm_send_test.h",
1181*d9f75844SAndroid Build Coastguard Worker    ]
1182*d9f75844SAndroid Build Coastguard Worker
1183*d9f75844SAndroid Build Coastguard Worker    defines = audio_coding_defines
1184*d9f75844SAndroid Build Coastguard Worker
1185*d9f75844SAndroid Build Coastguard Worker    deps = [
1186*d9f75844SAndroid Build Coastguard Worker      ":audio_coding",
1187*d9f75844SAndroid Build Coastguard Worker      ":neteq_input_audio_tools",
1188*d9f75844SAndroid Build Coastguard Worker      ":neteq_tools",
1189*d9f75844SAndroid Build Coastguard Worker      ":neteq_tools_minimal",
1190*d9f75844SAndroid Build Coastguard Worker      "../../api/audio:audio_frame_api",
1191*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:audio_codecs_api",
1192*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_decoder_factory",
1193*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_encoder_factory",
1194*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:checks",
1195*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:stringutils",
1196*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1197*d9f75844SAndroid Build Coastguard Worker      "//testing/gtest",
1198*d9f75844SAndroid Build Coastguard Worker    ]
1199*d9f75844SAndroid Build Coastguard Worker    deps += audio_coding_deps
1200*d9f75844SAndroid Build Coastguard Worker    absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1201*d9f75844SAndroid Build Coastguard Worker  }
1202*d9f75844SAndroid Build Coastguard Worker
1203*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
1204*d9f75844SAndroid Build Coastguard Worker    audio_decoder_unittests_resources =
1205*d9f75844SAndroid Build Coastguard Worker        [ "../../resources/audio_coding/testfile32kHz.pcm" ]
1206*d9f75844SAndroid Build Coastguard Worker
1207*d9f75844SAndroid Build Coastguard Worker    if (is_ios) {
1208*d9f75844SAndroid Build Coastguard Worker      bundle_data("audio_decoder_unittests_bundle_data") {
1209*d9f75844SAndroid Build Coastguard Worker        testonly = true
1210*d9f75844SAndroid Build Coastguard Worker        sources = audio_decoder_unittests_resources
1211*d9f75844SAndroid Build Coastguard Worker        outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
1212*d9f75844SAndroid Build Coastguard Worker      }
1213*d9f75844SAndroid Build Coastguard Worker    }
1214*d9f75844SAndroid Build Coastguard Worker
1215*d9f75844SAndroid Build Coastguard Worker    rtc_test("audio_decoder_unittests") {
1216*d9f75844SAndroid Build Coastguard Worker      testonly = true
1217*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/audio_decoder_unittest.cc" ]
1218*d9f75844SAndroid Build Coastguard Worker
1219*d9f75844SAndroid Build Coastguard Worker      defines = neteq_defines
1220*d9f75844SAndroid Build Coastguard Worker
1221*d9f75844SAndroid Build Coastguard Worker      deps = [
1222*d9f75844SAndroid Build Coastguard Worker               ":ilbc",
1223*d9f75844SAndroid Build Coastguard Worker               ":neteq",
1224*d9f75844SAndroid Build Coastguard Worker               ":neteq_input_audio_tools",
1225*d9f75844SAndroid Build Coastguard Worker               ":neteq_tools",
1226*d9f75844SAndroid Build Coastguard Worker               "../../api/audio_codecs:audio_codecs_api",
1227*d9f75844SAndroid Build Coastguard Worker               "../../api/audio_codecs/opus:audio_encoder_opus",
1228*d9f75844SAndroid Build Coastguard Worker               "../../common_audio",
1229*d9f75844SAndroid Build Coastguard Worker               "../../rtc_base/system:arch",
1230*d9f75844SAndroid Build Coastguard Worker               "../../test:fileutils",
1231*d9f75844SAndroid Build Coastguard Worker               "../../test:test_main",
1232*d9f75844SAndroid Build Coastguard Worker               "../../test:test_support",
1233*d9f75844SAndroid Build Coastguard Worker               "//testing/gtest",
1234*d9f75844SAndroid Build Coastguard Worker             ] + audio_coding_deps
1235*d9f75844SAndroid Build Coastguard Worker
1236*d9f75844SAndroid Build Coastguard Worker      data = audio_decoder_unittests_resources
1237*d9f75844SAndroid Build Coastguard Worker
1238*d9f75844SAndroid Build Coastguard Worker      if (is_android) {
1239*d9f75844SAndroid Build Coastguard Worker        use_default_launcher = false
1240*d9f75844SAndroid Build Coastguard Worker        deps += [
1241*d9f75844SAndroid Build Coastguard Worker          "//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
1242*d9f75844SAndroid Build Coastguard Worker          "//testing/android/native_test:native_test_java",
1243*d9f75844SAndroid Build Coastguard Worker          "//testing/android/native_test:native_test_support",
1244*d9f75844SAndroid Build Coastguard Worker        ]
1245*d9f75844SAndroid Build Coastguard Worker        shard_timeout = 900
1246*d9f75844SAndroid Build Coastguard Worker      }
1247*d9f75844SAndroid Build Coastguard Worker      if (is_ios) {
1248*d9f75844SAndroid Build Coastguard Worker        deps += [ ":audio_decoder_unittests_bundle_data" ]
1249*d9f75844SAndroid Build Coastguard Worker      }
1250*d9f75844SAndroid Build Coastguard Worker    }
1251*d9f75844SAndroid Build Coastguard Worker  }
1252*d9f75844SAndroid Build Coastguard Worker
1253*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf) {
1254*d9f75844SAndroid Build Coastguard Worker    rtc_library("neteq_test_factory") {
1255*d9f75844SAndroid Build Coastguard Worker      testonly = true
1256*d9f75844SAndroid Build Coastguard Worker      visibility += webrtc_default_visibility
1257*d9f75844SAndroid Build Coastguard Worker      defines = audio_codec_defines
1258*d9f75844SAndroid Build Coastguard Worker      deps = [
1259*d9f75844SAndroid Build Coastguard Worker        ":neteq_input_audio_tools",
1260*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools",
1261*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools_minimal",
1262*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1263*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:refcount",
1264*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1265*d9f75844SAndroid Build Coastguard Worker      ]
1266*d9f75844SAndroid Build Coastguard Worker      absl_deps = [
1267*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/strings",
1268*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/types:optional",
1269*d9f75844SAndroid Build Coastguard Worker      ]
1270*d9f75844SAndroid Build Coastguard Worker      sources = [
1271*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/neteq_test_factory.cc",
1272*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/neteq_test_factory.h",
1273*d9f75844SAndroid Build Coastguard Worker      ]
1274*d9f75844SAndroid Build Coastguard Worker
1275*d9f75844SAndroid Build Coastguard Worker      deps += [
1276*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1277*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_tools",
1278*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs:builtin_audio_decoder_factory",
1279*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:neteq_api",
1280*d9f75844SAndroid Build Coastguard Worker        "../../test:audio_test_common",
1281*d9f75844SAndroid Build Coastguard Worker        "../../test:field_trial",
1282*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1283*d9f75844SAndroid Build Coastguard Worker      ]
1284*d9f75844SAndroid Build Coastguard Worker    }
1285*d9f75844SAndroid Build Coastguard Worker  }
1286*d9f75844SAndroid Build Coastguard Worker
1287*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf && !build_with_chromium) {
1288*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_rtpplay") {
1289*d9f75844SAndroid Build Coastguard Worker      testonly = true
1290*d9f75844SAndroid Build Coastguard Worker      visibility += [ "*" ]
1291*d9f75844SAndroid Build Coastguard Worker      defines = []
1292*d9f75844SAndroid Build Coastguard Worker      deps = [
1293*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_factory",
1294*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_tools",
1295*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools_minimal",
1296*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:stringutils",
1297*d9f75844SAndroid Build Coastguard Worker        "../../system_wrappers:field_trial",
1298*d9f75844SAndroid Build Coastguard Worker        "../../test:field_trial",
1299*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1300*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:parse",
1301*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/strings",
1302*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/types:optional",
1303*d9f75844SAndroid Build Coastguard Worker      ]
1304*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/tools/neteq_rtpplay.cc" ]
1305*d9f75844SAndroid Build Coastguard Worker    }
1306*d9f75844SAndroid Build Coastguard Worker  }
1307*d9f75844SAndroid Build Coastguard Worker
1308*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
1309*d9f75844SAndroid Build Coastguard Worker    audio_codec_speed_tests_resources = [
1310*d9f75844SAndroid Build Coastguard Worker      "//resources/audio_coding/music_stereo_48kHz.pcm",
1311*d9f75844SAndroid Build Coastguard Worker      "//resources/audio_coding/speech_mono_16kHz.pcm",
1312*d9f75844SAndroid Build Coastguard Worker      "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1313*d9f75844SAndroid Build Coastguard Worker    ]
1314*d9f75844SAndroid Build Coastguard Worker
1315*d9f75844SAndroid Build Coastguard Worker    if (is_ios) {
1316*d9f75844SAndroid Build Coastguard Worker      bundle_data("audio_codec_speed_tests_data") {
1317*d9f75844SAndroid Build Coastguard Worker        testonly = true
1318*d9f75844SAndroid Build Coastguard Worker        sources = audio_codec_speed_tests_resources
1319*d9f75844SAndroid Build Coastguard Worker        outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
1320*d9f75844SAndroid Build Coastguard Worker      }
1321*d9f75844SAndroid Build Coastguard Worker    }
1322*d9f75844SAndroid Build Coastguard Worker
1323*d9f75844SAndroid Build Coastguard Worker    rtc_test("audio_codec_speed_tests") {
1324*d9f75844SAndroid Build Coastguard Worker      testonly = true
1325*d9f75844SAndroid Build Coastguard Worker      defines = []
1326*d9f75844SAndroid Build Coastguard Worker      deps = [
1327*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:macromagic",
1328*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1329*d9f75844SAndroid Build Coastguard Worker      ]
1330*d9f75844SAndroid Build Coastguard Worker      sources = [
1331*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/opus_speed_test.cc",
1332*d9f75844SAndroid Build Coastguard Worker        "codecs/tools/audio_codec_speed_test.cc",
1333*d9f75844SAndroid Build Coastguard Worker        "codecs/tools/audio_codec_speed_test.h",
1334*d9f75844SAndroid Build Coastguard Worker      ]
1335*d9f75844SAndroid Build Coastguard Worker
1336*d9f75844SAndroid Build Coastguard Worker      data = audio_codec_speed_tests_resources
1337*d9f75844SAndroid Build Coastguard Worker
1338*d9f75844SAndroid Build Coastguard Worker      if (is_android) {
1339*d9f75844SAndroid Build Coastguard Worker        use_default_launcher = false
1340*d9f75844SAndroid Build Coastguard Worker        deps += [
1341*d9f75844SAndroid Build Coastguard Worker          "//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
1342*d9f75844SAndroid Build Coastguard Worker          "//testing/android/native_test:native_test_java",
1343*d9f75844SAndroid Build Coastguard Worker          "//testing/android/native_test:native_test_support",
1344*d9f75844SAndroid Build Coastguard Worker        ]
1345*d9f75844SAndroid Build Coastguard Worker        shard_timeout = 900
1346*d9f75844SAndroid Build Coastguard Worker      }
1347*d9f75844SAndroid Build Coastguard Worker
1348*d9f75844SAndroid Build Coastguard Worker      if (is_ios) {
1349*d9f75844SAndroid Build Coastguard Worker        deps += [ ":audio_codec_speed_tests_data" ]
1350*d9f75844SAndroid Build Coastguard Worker      }
1351*d9f75844SAndroid Build Coastguard Worker
1352*d9f75844SAndroid Build Coastguard Worker      deps += [
1353*d9f75844SAndroid Build Coastguard Worker        ":webrtc_opus",
1354*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1355*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1356*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1357*d9f75844SAndroid Build Coastguard Worker        "../audio_processing",
1358*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1359*d9f75844SAndroid Build Coastguard Worker      ]
1360*d9f75844SAndroid Build Coastguard Worker    }
1361*d9f75844SAndroid Build Coastguard Worker  }
1362*d9f75844SAndroid Build Coastguard Worker
1363*d9f75844SAndroid Build Coastguard Worker  rtc_library("neteq_test_support") {
1364*d9f75844SAndroid Build Coastguard Worker    testonly = true
1365*d9f75844SAndroid Build Coastguard Worker    sources = [
1366*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/neteq_performance_test.cc",
1367*d9f75844SAndroid Build Coastguard Worker      "neteq/tools/neteq_performance_test.h",
1368*d9f75844SAndroid Build Coastguard Worker    ]
1369*d9f75844SAndroid Build Coastguard Worker
1370*d9f75844SAndroid Build Coastguard Worker    deps = [
1371*d9f75844SAndroid Build Coastguard Worker      ":default_neteq_factory",
1372*d9f75844SAndroid Build Coastguard Worker      ":neteq",
1373*d9f75844SAndroid Build Coastguard Worker      ":neteq_test_tools",
1374*d9f75844SAndroid Build Coastguard Worker      ":pcm16b",
1375*d9f75844SAndroid Build Coastguard Worker      "../../api/audio:audio_frame_api",
1376*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:audio_codecs_api",
1377*d9f75844SAndroid Build Coastguard Worker      "../../api/audio_codecs:builtin_audio_decoder_factory",
1378*d9f75844SAndroid Build Coastguard Worker      "../../api/neteq:neteq_api",
1379*d9f75844SAndroid Build Coastguard Worker      "../../rtc_base:checks",
1380*d9f75844SAndroid Build Coastguard Worker      "../../system_wrappers",
1381*d9f75844SAndroid Build Coastguard Worker      "../../test:fileutils",
1382*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
1383*d9f75844SAndroid Build Coastguard Worker      "//testing/gtest",
1384*d9f75844SAndroid Build Coastguard Worker    ]
1385*d9f75844SAndroid Build Coastguard Worker  }
1386*d9f75844SAndroid Build Coastguard Worker
1387*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
1388*d9f75844SAndroid Build Coastguard Worker    rtc_library("neteq_quality_test_support") {
1389*d9f75844SAndroid Build Coastguard Worker      testonly = true
1390*d9f75844SAndroid Build Coastguard Worker      sources = [
1391*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/neteq_quality_test.cc",
1392*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/neteq_quality_test.h",
1393*d9f75844SAndroid Build Coastguard Worker      ]
1394*d9f75844SAndroid Build Coastguard Worker
1395*d9f75844SAndroid Build Coastguard Worker      deps = [
1396*d9f75844SAndroid Build Coastguard Worker        ":default_neteq_factory",
1397*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1398*d9f75844SAndroid Build Coastguard Worker        ":neteq_input_audio_tools",
1399*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_tools",
1400*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools_minimal",
1401*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs:builtin_audio_decoder_factory",
1402*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:neteq_api",
1403*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1404*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:stringutils",
1405*d9f75844SAndroid Build Coastguard Worker        "../../system_wrappers",
1406*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1407*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1408*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1409*d9f75844SAndroid Build Coastguard Worker      ]
1410*d9f75844SAndroid Build Coastguard Worker      absl_deps = [
1411*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1412*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/strings",
1413*d9f75844SAndroid Build Coastguard Worker      ]
1414*d9f75844SAndroid Build Coastguard Worker    }
1415*d9f75844SAndroid Build Coastguard Worker
1416*d9f75844SAndroid Build Coastguard Worker    rtc_executable("rtp_encode") {
1417*d9f75844SAndroid Build Coastguard Worker      testonly = true
1418*d9f75844SAndroid Build Coastguard Worker
1419*d9f75844SAndroid Build Coastguard Worker      deps = [
1420*d9f75844SAndroid Build Coastguard Worker        ":audio_coding",
1421*d9f75844SAndroid Build Coastguard Worker        ":audio_encoder_cng",
1422*d9f75844SAndroid Build Coastguard Worker        ":neteq_input_audio_tools",
1423*d9f75844SAndroid Build Coastguard Worker        "../../api/audio:audio_frame_api",
1424*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/L16:audio_encoder_L16",
1425*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/g711:audio_encoder_g711",
1426*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/g722:audio_encoder_g722",
1427*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
1428*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/opus:audio_encoder_opus",
1429*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:safe_conversions",
1430*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1431*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:parse",
1432*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/memory",
1433*d9f75844SAndroid Build Coastguard Worker      ]
1434*d9f75844SAndroid Build Coastguard Worker
1435*d9f75844SAndroid Build Coastguard Worker      deps += audio_coding_deps
1436*d9f75844SAndroid Build Coastguard Worker
1437*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/tools/rtp_encode.cc" ]
1438*d9f75844SAndroid Build Coastguard Worker
1439*d9f75844SAndroid Build Coastguard Worker      defines = audio_coding_defines
1440*d9f75844SAndroid Build Coastguard Worker    }
1441*d9f75844SAndroid Build Coastguard Worker
1442*d9f75844SAndroid Build Coastguard Worker    rtc_executable("rtp_jitter") {
1443*d9f75844SAndroid Build Coastguard Worker      testonly = true
1444*d9f75844SAndroid Build Coastguard Worker
1445*d9f75844SAndroid Build Coastguard Worker      deps = [
1446*d9f75844SAndroid Build Coastguard Worker        "../../api:array_view",
1447*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:buffer",
1448*d9f75844SAndroid Build Coastguard Worker        "../rtp_rtcp:rtp_rtcp_format",
1449*d9f75844SAndroid Build Coastguard Worker      ]
1450*d9f75844SAndroid Build Coastguard Worker
1451*d9f75844SAndroid Build Coastguard Worker      deps += audio_coding_deps
1452*d9f75844SAndroid Build Coastguard Worker
1453*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/tools/rtp_jitter.cc" ]
1454*d9f75844SAndroid Build Coastguard Worker
1455*d9f75844SAndroid Build Coastguard Worker      defines = audio_coding_defines
1456*d9f75844SAndroid Build Coastguard Worker    }
1457*d9f75844SAndroid Build Coastguard Worker
1458*d9f75844SAndroid Build Coastguard Worker    rtc_executable("rtpcat") {
1459*d9f75844SAndroid Build Coastguard Worker      testonly = true
1460*d9f75844SAndroid Build Coastguard Worker
1461*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/tools/rtpcat.cc" ]
1462*d9f75844SAndroid Build Coastguard Worker
1463*d9f75844SAndroid Build Coastguard Worker      deps = [
1464*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1465*d9f75844SAndroid Build Coastguard Worker        "../../test:rtp_test_utils",
1466*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1467*d9f75844SAndroid Build Coastguard Worker      ]
1468*d9f75844SAndroid Build Coastguard Worker    }
1469*d9f75844SAndroid Build Coastguard Worker
1470*d9f75844SAndroid Build Coastguard Worker    rtc_executable("rtp_analyze") {
1471*d9f75844SAndroid Build Coastguard Worker      testonly = true
1472*d9f75844SAndroid Build Coastguard Worker
1473*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/tools/rtp_analyze.cc" ]
1474*d9f75844SAndroid Build Coastguard Worker
1475*d9f75844SAndroid Build Coastguard Worker      deps = [
1476*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1477*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_tools",
1478*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools_minimal",
1479*d9f75844SAndroid Build Coastguard Worker        ":pcm16b",
1480*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1481*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1482*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:parse",
1483*d9f75844SAndroid Build Coastguard Worker      ]
1484*d9f75844SAndroid Build Coastguard Worker    }
1485*d9f75844SAndroid Build Coastguard Worker
1486*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_opus_quality_test") {
1487*d9f75844SAndroid Build Coastguard Worker      testonly = true
1488*d9f75844SAndroid Build Coastguard Worker
1489*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/test/neteq_opus_quality_test.cc" ]
1490*d9f75844SAndroid Build Coastguard Worker
1491*d9f75844SAndroid Build Coastguard Worker      deps = [
1492*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1493*d9f75844SAndroid Build Coastguard Worker        ":neteq_quality_test_support",
1494*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools",
1495*d9f75844SAndroid Build Coastguard Worker        ":webrtc_opus",
1496*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1497*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1498*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1499*d9f75844SAndroid Build Coastguard Worker      ]
1500*d9f75844SAndroid Build Coastguard Worker    }
1501*d9f75844SAndroid Build Coastguard Worker
1502*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_speed_test") {
1503*d9f75844SAndroid Build Coastguard Worker      testonly = true
1504*d9f75844SAndroid Build Coastguard Worker
1505*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/test/neteq_speed_test.cc" ]
1506*d9f75844SAndroid Build Coastguard Worker
1507*d9f75844SAndroid Build Coastguard Worker      deps = [
1508*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1509*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_support",
1510*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1511*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1512*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1513*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:parse",
1514*d9f75844SAndroid Build Coastguard Worker      ]
1515*d9f75844SAndroid Build Coastguard Worker    }
1516*d9f75844SAndroid Build Coastguard Worker
1517*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_ilbc_quality_test") {
1518*d9f75844SAndroid Build Coastguard Worker      testonly = true
1519*d9f75844SAndroid Build Coastguard Worker
1520*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/test/neteq_ilbc_quality_test.cc" ]
1521*d9f75844SAndroid Build Coastguard Worker
1522*d9f75844SAndroid Build Coastguard Worker      deps = [
1523*d9f75844SAndroid Build Coastguard Worker        ":ilbc",
1524*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1525*d9f75844SAndroid Build Coastguard Worker        ":neteq_quality_test_support",
1526*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools",
1527*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1528*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:safe_conversions",
1529*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1530*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1531*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1532*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1533*d9f75844SAndroid Build Coastguard Worker      ]
1534*d9f75844SAndroid Build Coastguard Worker    }
1535*d9f75844SAndroid Build Coastguard Worker
1536*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_pcmu_quality_test") {
1537*d9f75844SAndroid Build Coastguard Worker      testonly = true
1538*d9f75844SAndroid Build Coastguard Worker
1539*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/test/neteq_pcmu_quality_test.cc" ]
1540*d9f75844SAndroid Build Coastguard Worker
1541*d9f75844SAndroid Build Coastguard Worker      deps = [
1542*d9f75844SAndroid Build Coastguard Worker        ":g711",
1543*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1544*d9f75844SAndroid Build Coastguard Worker        ":neteq_quality_test_support",
1545*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1546*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:safe_conversions",
1547*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1548*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1549*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1550*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1551*d9f75844SAndroid Build Coastguard Worker      ]
1552*d9f75844SAndroid Build Coastguard Worker    }
1553*d9f75844SAndroid Build Coastguard Worker
1554*d9f75844SAndroid Build Coastguard Worker    rtc_executable("neteq_pcm16b_quality_test") {
1555*d9f75844SAndroid Build Coastguard Worker      testonly = true
1556*d9f75844SAndroid Build Coastguard Worker
1557*d9f75844SAndroid Build Coastguard Worker      sources = [ "neteq/test/neteq_pcm16b_quality_test.cc" ]
1558*d9f75844SAndroid Build Coastguard Worker
1559*d9f75844SAndroid Build Coastguard Worker      deps = [
1560*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1561*d9f75844SAndroid Build Coastguard Worker        ":neteq_quality_test_support",
1562*d9f75844SAndroid Build Coastguard Worker        ":pcm16b",
1563*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1564*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:safe_conversions",
1565*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1566*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1567*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1568*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1569*d9f75844SAndroid Build Coastguard Worker      ]
1570*d9f75844SAndroid Build Coastguard Worker    }
1571*d9f75844SAndroid Build Coastguard Worker  }
1572*d9f75844SAndroid Build Coastguard Worker
1573*d9f75844SAndroid Build Coastguard Worker  rtc_executable("g711_test") {
1574*d9f75844SAndroid Build Coastguard Worker    testonly = true
1575*d9f75844SAndroid Build Coastguard Worker
1576*d9f75844SAndroid Build Coastguard Worker    sources = [ "codecs/g711/test/testG711.cc" ]
1577*d9f75844SAndroid Build Coastguard Worker
1578*d9f75844SAndroid Build Coastguard Worker    deps = [ ":g711" ]
1579*d9f75844SAndroid Build Coastguard Worker  }
1580*d9f75844SAndroid Build Coastguard Worker
1581*d9f75844SAndroid Build Coastguard Worker  rtc_executable("g722_test") {
1582*d9f75844SAndroid Build Coastguard Worker    testonly = true
1583*d9f75844SAndroid Build Coastguard Worker
1584*d9f75844SAndroid Build Coastguard Worker    sources = [ "codecs/g722/test/testG722.cc" ]
1585*d9f75844SAndroid Build Coastguard Worker
1586*d9f75844SAndroid Build Coastguard Worker    deps = [ ":g722" ]
1587*d9f75844SAndroid Build Coastguard Worker  }
1588*d9f75844SAndroid Build Coastguard Worker
1589*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
1590*d9f75844SAndroid Build Coastguard Worker    rtc_executable("ilbc_test") {
1591*d9f75844SAndroid Build Coastguard Worker      testonly = true
1592*d9f75844SAndroid Build Coastguard Worker
1593*d9f75844SAndroid Build Coastguard Worker      sources = [ "codecs/ilbc/test/iLBC_test.c" ]
1594*d9f75844SAndroid Build Coastguard Worker
1595*d9f75844SAndroid Build Coastguard Worker      deps = [ ":ilbc" ]
1596*d9f75844SAndroid Build Coastguard Worker    }
1597*d9f75844SAndroid Build Coastguard Worker
1598*d9f75844SAndroid Build Coastguard Worker    rtc_executable("webrtc_opus_fec_test") {
1599*d9f75844SAndroid Build Coastguard Worker      testonly = true
1600*d9f75844SAndroid Build Coastguard Worker
1601*d9f75844SAndroid Build Coastguard Worker      sources = [ "codecs/opus/opus_fec_test.cc" ]
1602*d9f75844SAndroid Build Coastguard Worker
1603*d9f75844SAndroid Build Coastguard Worker      deps = [
1604*d9f75844SAndroid Build Coastguard Worker        ":webrtc_opus",
1605*d9f75844SAndroid Build Coastguard Worker        "../../common_audio",
1606*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:macromagic",
1607*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1608*d9f75844SAndroid Build Coastguard Worker        "../../test:test_main",
1609*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1610*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1611*d9f75844SAndroid Build Coastguard Worker      ]
1612*d9f75844SAndroid Build Coastguard Worker    }
1613*d9f75844SAndroid Build Coastguard Worker
1614*d9f75844SAndroid Build Coastguard Worker    rtc_library("audio_coding_unittests") {
1615*d9f75844SAndroid Build Coastguard Worker      testonly = true
1616*d9f75844SAndroid Build Coastguard Worker      visibility += webrtc_default_visibility
1617*d9f75844SAndroid Build Coastguard Worker
1618*d9f75844SAndroid Build Coastguard Worker      sources = [
1619*d9f75844SAndroid Build Coastguard Worker        "acm2/acm_receiver_unittest.cc",
1620*d9f75844SAndroid Build Coastguard Worker        "acm2/acm_remixing_unittest.cc",
1621*d9f75844SAndroid Build Coastguard Worker        "acm2/audio_coding_module_unittest.cc",
1622*d9f75844SAndroid Build Coastguard Worker        "acm2/call_statistics_unittest.cc",
1623*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
1624*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/bitrate_controller_unittest.cc",
1625*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/channel_controller_unittest.cc",
1626*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/controller_manager_unittest.cc",
1627*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/dtx_controller_unittest.cc",
1628*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/event_log_writer_unittest.cc",
1629*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
1630*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/frame_length_controller_unittest.cc",
1631*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/frame_length_controller_v2_unittest.cc",
1632*d9f75844SAndroid Build Coastguard Worker        "audio_network_adaptor/util/threshold_curve_unittest.cc",
1633*d9f75844SAndroid Build Coastguard Worker        "codecs/builtin_audio_decoder_factory_unittest.cc",
1634*d9f75844SAndroid Build Coastguard Worker        "codecs/builtin_audio_encoder_factory_unittest.cc",
1635*d9f75844SAndroid Build Coastguard Worker        "codecs/cng/audio_encoder_cng_unittest.cc",
1636*d9f75844SAndroid Build Coastguard Worker        "codecs/cng/cng_unittest.cc",
1637*d9f75844SAndroid Build Coastguard Worker        "codecs/ilbc/ilbc_unittest.cc",
1638*d9f75844SAndroid Build Coastguard Worker        "codecs/legacy_encoded_audio_frame_unittest.cc",
1639*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/audio_decoder_multi_channel_opus_unittest.cc",
1640*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/audio_encoder_multi_channel_opus_unittest.cc",
1641*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/audio_encoder_opus_unittest.cc",
1642*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/opus_bandwidth_unittest.cc",
1643*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/opus_unittest.cc",
1644*d9f75844SAndroid Build Coastguard Worker        "codecs/red/audio_encoder_copy_red_unittest.cc",
1645*d9f75844SAndroid Build Coastguard Worker        "neteq/audio_multi_vector_unittest.cc",
1646*d9f75844SAndroid Build Coastguard Worker        "neteq/audio_vector_unittest.cc",
1647*d9f75844SAndroid Build Coastguard Worker        "neteq/background_noise_unittest.cc",
1648*d9f75844SAndroid Build Coastguard Worker        "neteq/buffer_level_filter_unittest.cc",
1649*d9f75844SAndroid Build Coastguard Worker        "neteq/comfort_noise_unittest.cc",
1650*d9f75844SAndroid Build Coastguard Worker        "neteq/decision_logic_unittest.cc",
1651*d9f75844SAndroid Build Coastguard Worker        "neteq/decoder_database_unittest.cc",
1652*d9f75844SAndroid Build Coastguard Worker        "neteq/delay_manager_unittest.cc",
1653*d9f75844SAndroid Build Coastguard Worker        "neteq/dsp_helper_unittest.cc",
1654*d9f75844SAndroid Build Coastguard Worker        "neteq/dtmf_buffer_unittest.cc",
1655*d9f75844SAndroid Build Coastguard Worker        "neteq/dtmf_tone_generator_unittest.cc",
1656*d9f75844SAndroid Build Coastguard Worker        "neteq/expand_unittest.cc",
1657*d9f75844SAndroid Build Coastguard Worker        "neteq/histogram_unittest.cc",
1658*d9f75844SAndroid Build Coastguard Worker        "neteq/merge_unittest.cc",
1659*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_buffer_level_filter.h",
1660*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_decoder_database.h",
1661*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_delay_manager.h",
1662*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_dtmf_buffer.h",
1663*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_dtmf_tone_generator.h",
1664*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_expand.h",
1665*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_histogram.h",
1666*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_neteq_controller.h",
1667*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_packet_buffer.h",
1668*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_red_payload_splitter.h",
1669*d9f75844SAndroid Build Coastguard Worker        "neteq/mock/mock_statistics_calculator.h",
1670*d9f75844SAndroid Build Coastguard Worker        "neteq/nack_tracker_unittest.cc",
1671*d9f75844SAndroid Build Coastguard Worker        "neteq/neteq_decoder_plc_unittest.cc",
1672*d9f75844SAndroid Build Coastguard Worker        "neteq/neteq_impl_unittest.cc",
1673*d9f75844SAndroid Build Coastguard Worker        "neteq/neteq_network_stats_unittest.cc",
1674*d9f75844SAndroid Build Coastguard Worker        "neteq/neteq_stereo_unittest.cc",
1675*d9f75844SAndroid Build Coastguard Worker        "neteq/neteq_unittest.cc",
1676*d9f75844SAndroid Build Coastguard Worker        "neteq/normal_unittest.cc",
1677*d9f75844SAndroid Build Coastguard Worker        "neteq/packet_arrival_history_unittest.cc",
1678*d9f75844SAndroid Build Coastguard Worker        "neteq/packet_buffer_unittest.cc",
1679*d9f75844SAndroid Build Coastguard Worker        "neteq/post_decode_vad_unittest.cc",
1680*d9f75844SAndroid Build Coastguard Worker        "neteq/random_vector_unittest.cc",
1681*d9f75844SAndroid Build Coastguard Worker        "neteq/red_payload_splitter_unittest.cc",
1682*d9f75844SAndroid Build Coastguard Worker        "neteq/reorder_optimizer_unittest.cc",
1683*d9f75844SAndroid Build Coastguard Worker        "neteq/statistics_calculator_unittest.cc",
1684*d9f75844SAndroid Build Coastguard Worker        "neteq/sync_buffer_unittest.cc",
1685*d9f75844SAndroid Build Coastguard Worker        "neteq/time_stretch_unittest.cc",
1686*d9f75844SAndroid Build Coastguard Worker        "neteq/timestamp_scaler_unittest.cc",
1687*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/input_audio_file_unittest.cc",
1688*d9f75844SAndroid Build Coastguard Worker        "neteq/tools/packet_unittest.cc",
1689*d9f75844SAndroid Build Coastguard Worker        "neteq/underrun_optimizer_unittest.cc",
1690*d9f75844SAndroid Build Coastguard Worker      ]
1691*d9f75844SAndroid Build Coastguard Worker
1692*d9f75844SAndroid Build Coastguard Worker      deps = [
1693*d9f75844SAndroid Build Coastguard Worker        ":acm_receive_test",
1694*d9f75844SAndroid Build Coastguard Worker        ":acm_send_test",
1695*d9f75844SAndroid Build Coastguard Worker        ":audio_coding",
1696*d9f75844SAndroid Build Coastguard Worker        ":audio_coding_module_typedefs",
1697*d9f75844SAndroid Build Coastguard Worker        ":audio_coding_modules_tests_shared",
1698*d9f75844SAndroid Build Coastguard Worker        ":audio_coding_opus_common",
1699*d9f75844SAndroid Build Coastguard Worker        ":audio_encoder_cng",
1700*d9f75844SAndroid Build Coastguard Worker        ":audio_network_adaptor",
1701*d9f75844SAndroid Build Coastguard Worker        ":default_neteq_factory",
1702*d9f75844SAndroid Build Coastguard Worker        ":g711",
1703*d9f75844SAndroid Build Coastguard Worker        ":ilbc",
1704*d9f75844SAndroid Build Coastguard Worker        ":legacy_encoded_audio_frame",
1705*d9f75844SAndroid Build Coastguard Worker        ":mocks",
1706*d9f75844SAndroid Build Coastguard Worker        ":neteq",
1707*d9f75844SAndroid Build Coastguard Worker        ":neteq_input_audio_tools",
1708*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_support",
1709*d9f75844SAndroid Build Coastguard Worker        ":neteq_test_tools",
1710*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools",
1711*d9f75844SAndroid Build Coastguard Worker        ":neteq_tools_minimal",
1712*d9f75844SAndroid Build Coastguard Worker        ":pcm16b",
1713*d9f75844SAndroid Build Coastguard Worker        ":red",
1714*d9f75844SAndroid Build Coastguard Worker        ":webrtc_cng",
1715*d9f75844SAndroid Build Coastguard Worker        ":webrtc_opus",
1716*d9f75844SAndroid Build Coastguard Worker        "..:module_api",
1717*d9f75844SAndroid Build Coastguard Worker        "..:module_api_public",
1718*d9f75844SAndroid Build Coastguard Worker        "../../api:array_view",
1719*d9f75844SAndroid Build Coastguard Worker        "../../api/audio:audio_frame_api",
1720*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs:audio_codecs_api",
1721*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs:builtin_audio_decoder_factory",
1722*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs:builtin_audio_encoder_factory",
1723*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/opus:audio_decoder_multiopus",
1724*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/opus:audio_decoder_opus",
1725*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/opus:audio_encoder_multiopus",
1726*d9f75844SAndroid Build Coastguard Worker        "../../api/audio_codecs/opus:audio_encoder_opus",
1727*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:default_neteq_controller_factory",
1728*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:neteq_api",
1729*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:neteq_controller_api",
1730*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:tick_timer",
1731*d9f75844SAndroid Build Coastguard Worker        "../../api/neteq:tick_timer_unittest",
1732*d9f75844SAndroid Build Coastguard Worker        "../../api/rtc_event_log",
1733*d9f75844SAndroid Build Coastguard Worker        "../../common_audio",
1734*d9f75844SAndroid Build Coastguard Worker        "../../common_audio:common_audio_c",
1735*d9f75844SAndroid Build Coastguard Worker        "../../common_audio:mock_common_audio",
1736*d9f75844SAndroid Build Coastguard Worker        "../../logging:mocks",
1737*d9f75844SAndroid Build Coastguard Worker        "../../logging:rtc_event_audio",
1738*d9f75844SAndroid Build Coastguard Worker        "../../modules/rtp_rtcp:rtp_rtcp_format",
1739*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base",
1740*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:checks",
1741*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:ignore_wundef",
1742*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:macromagic",
1743*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:platform_thread",
1744*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:refcount",
1745*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:rtc_base_tests_utils",
1746*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:rtc_event",
1747*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:safe_conversions",
1748*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:sanitizer",
1749*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:stringutils",
1750*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base:timeutils",
1751*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base/synchronization:mutex",
1752*d9f75844SAndroid Build Coastguard Worker        "../../rtc_base/system:arch",
1753*d9f75844SAndroid Build Coastguard Worker        "../../system_wrappers",
1754*d9f75844SAndroid Build Coastguard Worker        "../../test:audio_codec_mocks",
1755*d9f75844SAndroid Build Coastguard Worker        "../../test:audio_test_common",
1756*d9f75844SAndroid Build Coastguard Worker        "../../test:field_trial",
1757*d9f75844SAndroid Build Coastguard Worker        "../../test:fileutils",
1758*d9f75844SAndroid Build Coastguard Worker        "../../test:rtc_expect_death",
1759*d9f75844SAndroid Build Coastguard Worker        "../../test:rtp_test_utils",
1760*d9f75844SAndroid Build Coastguard Worker        "../../test:scoped_key_value_config",
1761*d9f75844SAndroid Build Coastguard Worker        "../../test:test_common",
1762*d9f75844SAndroid Build Coastguard Worker        "../../test:test_support",
1763*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/test",
1764*d9f75844SAndroid Build Coastguard Worker        "codecs/opus/test:test_unittest",
1765*d9f75844SAndroid Build Coastguard Worker        "//testing/gtest",
1766*d9f75844SAndroid Build Coastguard Worker      ]
1767*d9f75844SAndroid Build Coastguard Worker      absl_deps = [
1768*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
1769*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/memory",
1770*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/strings",
1771*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/types:optional",
1772*d9f75844SAndroid Build Coastguard Worker      ]
1773*d9f75844SAndroid Build Coastguard Worker
1774*d9f75844SAndroid Build Coastguard Worker      defines = audio_coding_defines
1775*d9f75844SAndroid Build Coastguard Worker
1776*d9f75844SAndroid Build Coastguard Worker      if (rtc_enable_protobuf) {
1777*d9f75844SAndroid Build Coastguard Worker        defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
1778*d9f75844SAndroid Build Coastguard Worker        deps += [
1779*d9f75844SAndroid Build Coastguard Worker          ":ana_config_proto",
1780*d9f75844SAndroid Build Coastguard Worker          ":neteq_unittest_proto",
1781*d9f75844SAndroid Build Coastguard Worker        ]
1782*d9f75844SAndroid Build Coastguard Worker      }
1783*d9f75844SAndroid Build Coastguard Worker    }
1784*d9f75844SAndroid Build Coastguard Worker  }
1785*d9f75844SAndroid Build Coastguard Worker}
1786*d9f75844SAndroid Build Coastguard Worker
1787*d9f75844SAndroid Build Coastguard Worker# For backwards compatibility only! Use
1788*d9f75844SAndroid Build Coastguard Worker# webrtc/api/audio_codecs:audio_codecs_api instead.
1789*d9f75844SAndroid Build Coastguard Worker# TODO(kwiberg): Remove this.
1790*d9f75844SAndroid Build Coastguard Workerrtc_source_set("audio_decoder_interface") {
1791*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
1792*d9f75844SAndroid Build Coastguard Worker  sources = [ "codecs/audio_decoder.h" ]
1793*d9f75844SAndroid Build Coastguard Worker  deps = [ "../../api/audio_codecs:audio_codecs_api" ]
1794*d9f75844SAndroid Build Coastguard Worker}
1795*d9f75844SAndroid Build Coastguard Worker
1796*d9f75844SAndroid Build Coastguard Worker# For backwards compatibility only! Use
1797*d9f75844SAndroid Build Coastguard Worker# webrtc/api/audio_codecs:audio_codecs_api instead.
1798*d9f75844SAndroid Build Coastguard Worker# TODO(ossu): Remove this.
1799*d9f75844SAndroid Build Coastguard Workerrtc_source_set("audio_encoder_interface") {
1800*d9f75844SAndroid Build Coastguard Worker  visibility += [ "*" ]
1801*d9f75844SAndroid Build Coastguard Worker  sources = [ "codecs/audio_encoder.h" ]
1802*d9f75844SAndroid Build Coastguard Worker  deps = [ "../../api/audio_codecs:audio_codecs_api" ]
1803*d9f75844SAndroid Build Coastguard Worker}
1804