xref: /aosp_15_r20/external/webrtc/api/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2*d9f75844SAndroid Build Coastguard Worker#
3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license
4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source
5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found
6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS.  All contributing project authors may
7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree.
8*d9f75844SAndroid Build Coastguard Worker
9*d9f75844SAndroid Build Coastguard Workerimport("../webrtc.gni")
10*d9f75844SAndroid Build Coastguard Workerif (is_android) {
11*d9f75844SAndroid Build Coastguard Worker  import("//build/config/android/config.gni")
12*d9f75844SAndroid Build Coastguard Worker  import("//build/config/android/rules.gni")
13*d9f75844SAndroid Build Coastguard Worker}
14*d9f75844SAndroid Build Coastguard Worker
15*d9f75844SAndroid Build Coastguard Workergroup("api") {
16*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
17*d9f75844SAndroid Build Coastguard Worker  deps = []
18*d9f75844SAndroid Build Coastguard Worker
19*d9f75844SAndroid Build Coastguard Worker  if (!build_with_mozilla) {
20*d9f75844SAndroid Build Coastguard Worker    deps += [ ":libjingle_peerconnection_api" ]
21*d9f75844SAndroid Build Coastguard Worker  }
22*d9f75844SAndroid Build Coastguard Worker}
23*d9f75844SAndroid Build Coastguard Worker
24*d9f75844SAndroid Build Coastguard Workerrtc_source_set("call_api") {
25*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
26*d9f75844SAndroid Build Coastguard Worker  sources = [ "call/audio_sink.h" ]
27*d9f75844SAndroid Build Coastguard Worker}
28*d9f75844SAndroid Build Coastguard Worker
29*d9f75844SAndroid Build Coastguard Workerrtc_source_set("callfactory_api") {
30*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
31*d9f75844SAndroid Build Coastguard Worker  sources = [ "call/call_factory_interface.h" ]
32*d9f75844SAndroid Build Coastguard Worker  deps = [
33*d9f75844SAndroid Build Coastguard Worker    "../call:rtp_interfaces",
34*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
35*d9f75844SAndroid Build Coastguard Worker  ]
36*d9f75844SAndroid Build Coastguard Worker}
37*d9f75844SAndroid Build Coastguard Worker
38*d9f75844SAndroid Build Coastguard Workerif (!build_with_chromium) {
39*d9f75844SAndroid Build Coastguard Worker  rtc_library("create_peerconnection_factory") {
40*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
41*d9f75844SAndroid Build Coastguard Worker    allow_poison = [ "default_task_queue" ]
42*d9f75844SAndroid Build Coastguard Worker    sources = [
43*d9f75844SAndroid Build Coastguard Worker      "create_peerconnection_factory.cc",
44*d9f75844SAndroid Build Coastguard Worker      "create_peerconnection_factory.h",
45*d9f75844SAndroid Build Coastguard Worker    ]
46*d9f75844SAndroid Build Coastguard Worker    deps = [
47*d9f75844SAndroid Build Coastguard Worker      ":callfactory_api",
48*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
49*d9f75844SAndroid Build Coastguard Worker      ":scoped_refptr",
50*d9f75844SAndroid Build Coastguard Worker      "../api/rtc_event_log:rtc_event_log_factory",
51*d9f75844SAndroid Build Coastguard Worker      "../media:rtc_audio_video",
52*d9f75844SAndroid Build Coastguard Worker      "../media:rtc_media_base",
53*d9f75844SAndroid Build Coastguard Worker      "../modules/audio_device:audio_device_api",
54*d9f75844SAndroid Build Coastguard Worker      "../modules/audio_processing:api",
55*d9f75844SAndroid Build Coastguard Worker      "../pc:peer_connection_factory",
56*d9f75844SAndroid Build Coastguard Worker      "../pc:webrtc_sdp",
57*d9f75844SAndroid Build Coastguard Worker      "../rtc_base",
58*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:threading",
59*d9f75844SAndroid Build Coastguard Worker      "../stats:rtc_stats",
60*d9f75844SAndroid Build Coastguard Worker      "audio:audio_mixer_api",
61*d9f75844SAndroid Build Coastguard Worker      "audio_codecs:audio_codecs_api",
62*d9f75844SAndroid Build Coastguard Worker      "task_queue:default_task_queue_factory",
63*d9f75844SAndroid Build Coastguard Worker      "transport:field_trial_based_config",
64*d9f75844SAndroid Build Coastguard Worker      "video_codecs:video_codecs_api",
65*d9f75844SAndroid Build Coastguard Worker    ]
66*d9f75844SAndroid Build Coastguard Worker  }
67*d9f75844SAndroid Build Coastguard Worker}
68*d9f75844SAndroid Build Coastguard Worker
69*d9f75844SAndroid Build Coastguard Workerrtc_library("rtp_headers") {
70*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
71*d9f75844SAndroid Build Coastguard Worker  sources = [
72*d9f75844SAndroid Build Coastguard Worker    "rtp_headers.cc",
73*d9f75844SAndroid Build Coastguard Worker    "rtp_headers.h",
74*d9f75844SAndroid Build Coastguard Worker  ]
75*d9f75844SAndroid Build Coastguard Worker  deps = [
76*d9f75844SAndroid Build Coastguard Worker    ":array_view",
77*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
78*d9f75844SAndroid Build Coastguard Worker    "video:video_rtp_headers",
79*d9f75844SAndroid Build Coastguard Worker  ]
80*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
81*d9f75844SAndroid Build Coastguard Worker}
82*d9f75844SAndroid Build Coastguard Worker
83*d9f75844SAndroid Build Coastguard Workerrtc_library("rtp_packet_info") {
84*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
85*d9f75844SAndroid Build Coastguard Worker  sources = [
86*d9f75844SAndroid Build Coastguard Worker    "rtp_packet_info.cc",
87*d9f75844SAndroid Build Coastguard Worker    "rtp_packet_info.h",
88*d9f75844SAndroid Build Coastguard Worker    "rtp_packet_infos.h",
89*d9f75844SAndroid Build Coastguard Worker  ]
90*d9f75844SAndroid Build Coastguard Worker  deps = [
91*d9f75844SAndroid Build Coastguard Worker    ":array_view",
92*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
93*d9f75844SAndroid Build Coastguard Worker    ":refcountedbase",
94*d9f75844SAndroid Build Coastguard Worker    ":rtp_headers",
95*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
96*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
97*d9f75844SAndroid Build Coastguard Worker    "units:time_delta",
98*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
99*d9f75844SAndroid Build Coastguard Worker  ]
100*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
101*d9f75844SAndroid Build Coastguard Worker}
102*d9f75844SAndroid Build Coastguard Worker
103*d9f75844SAndroid Build Coastguard Workerrtc_source_set("video_track_source_constraints") {
104*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
105*d9f75844SAndroid Build Coastguard Worker  sources = [ "video_track_source_constraints.h" ]
106*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
107*d9f75844SAndroid Build Coastguard Worker}
108*d9f75844SAndroid Build Coastguard Worker
109*d9f75844SAndroid Build Coastguard Workerrtc_library("media_stream_interface") {
110*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
111*d9f75844SAndroid Build Coastguard Worker  sources = [
112*d9f75844SAndroid Build Coastguard Worker    "media_stream_interface.cc",
113*d9f75844SAndroid Build Coastguard Worker    "media_stream_interface.h",
114*d9f75844SAndroid Build Coastguard Worker    "media_stream_track.h",
115*d9f75844SAndroid Build Coastguard Worker    "notifier.h",
116*d9f75844SAndroid Build Coastguard Worker  ]
117*d9f75844SAndroid Build Coastguard Worker  deps = [
118*d9f75844SAndroid Build Coastguard Worker    ":audio_options_api",
119*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
120*d9f75844SAndroid Build Coastguard Worker    ":rtp_parameters",
121*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
122*d9f75844SAndroid Build Coastguard Worker    ":sequence_checker",
123*d9f75844SAndroid Build Coastguard Worker    ":video_track_source_constraints",
124*d9f75844SAndroid Build Coastguard Worker    "../modules/audio_processing:audio_processing_statistics",
125*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
126*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
127*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:no_unique_address",
128*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
129*d9f75844SAndroid Build Coastguard Worker    "video:recordable_encoded_frame",
130*d9f75844SAndroid Build Coastguard Worker    "video:video_frame",
131*d9f75844SAndroid Build Coastguard Worker  ]
132*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
133*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
134*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
135*d9f75844SAndroid Build Coastguard Worker  ]
136*d9f75844SAndroid Build Coastguard Worker}
137*d9f75844SAndroid Build Coastguard Worker
138*d9f75844SAndroid Build Coastguard Workerrtc_library("candidate") {
139*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
140*d9f75844SAndroid Build Coastguard Worker
141*d9f75844SAndroid Build Coastguard Worker  sources = [
142*d9f75844SAndroid Build Coastguard Worker    "candidate.cc",
143*d9f75844SAndroid Build Coastguard Worker    "candidate.h",
144*d9f75844SAndroid Build Coastguard Worker  ]
145*d9f75844SAndroid Build Coastguard Worker  deps = [
146*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
147*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
148*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:ip_address",
149*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:logging",
150*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:network_constants",
151*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:socket_address",
152*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:stringutils",
153*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
154*d9f75844SAndroid Build Coastguard Worker  ]
155*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
156*d9f75844SAndroid Build Coastguard Worker}
157*d9f75844SAndroid Build Coastguard Worker
158*d9f75844SAndroid Build Coastguard Workerrtc_source_set("turn_customizer") {
159*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
160*d9f75844SAndroid Build Coastguard Worker  sources = [ "turn_customizer.h" ]
161*d9f75844SAndroid Build Coastguard Worker  deps = [ "transport:stun_types" ]
162*d9f75844SAndroid Build Coastguard Worker}
163*d9f75844SAndroid Build Coastguard Worker
164*d9f75844SAndroid Build Coastguard Workerrtc_source_set("ice_transport_interface") {
165*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
166*d9f75844SAndroid Build Coastguard Worker
167*d9f75844SAndroid Build Coastguard Worker  sources = [ "ice_transport_interface.h" ]
168*d9f75844SAndroid Build Coastguard Worker  deps = [
169*d9f75844SAndroid Build Coastguard Worker    ":async_dns_resolver",
170*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
171*d9f75844SAndroid Build Coastguard Worker    ":rtc_error",
172*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
173*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
174*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log:rtc_event_log",
175*d9f75844SAndroid Build Coastguard Worker  ]
176*d9f75844SAndroid Build Coastguard Worker}
177*d9f75844SAndroid Build Coastguard Worker
178*d9f75844SAndroid Build Coastguard Workerrtc_library("dtls_transport_interface") {
179*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
180*d9f75844SAndroid Build Coastguard Worker
181*d9f75844SAndroid Build Coastguard Worker  sources = [
182*d9f75844SAndroid Build Coastguard Worker    "dtls_transport_interface.cc",
183*d9f75844SAndroid Build Coastguard Worker    "dtls_transport_interface.h",
184*d9f75844SAndroid Build Coastguard Worker  ]
185*d9f75844SAndroid Build Coastguard Worker  deps = [
186*d9f75844SAndroid Build Coastguard Worker    ":ice_transport_interface",
187*d9f75844SAndroid Build Coastguard Worker    ":rtc_error",
188*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
189*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
190*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
191*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
192*d9f75844SAndroid Build Coastguard Worker  ]
193*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
194*d9f75844SAndroid Build Coastguard Worker}
195*d9f75844SAndroid Build Coastguard Worker
196*d9f75844SAndroid Build Coastguard Workerrtc_library("dtmf_sender_interface") {
197*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
198*d9f75844SAndroid Build Coastguard Worker
199*d9f75844SAndroid Build Coastguard Worker  sources = [ "dtmf_sender_interface.h" ]
200*d9f75844SAndroid Build Coastguard Worker  deps = [
201*d9f75844SAndroid Build Coastguard Worker    ":media_stream_interface",
202*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
203*d9f75844SAndroid Build Coastguard Worker  ]
204*d9f75844SAndroid Build Coastguard Worker}
205*d9f75844SAndroid Build Coastguard Worker
206*d9f75844SAndroid Build Coastguard Workerrtc_library("rtp_sender_interface") {
207*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
208*d9f75844SAndroid Build Coastguard Worker
209*d9f75844SAndroid Build Coastguard Worker  sources = [
210*d9f75844SAndroid Build Coastguard Worker    "rtp_sender_interface.cc",
211*d9f75844SAndroid Build Coastguard Worker    "rtp_sender_interface.h",
212*d9f75844SAndroid Build Coastguard Worker  ]
213*d9f75844SAndroid Build Coastguard Worker  deps = [
214*d9f75844SAndroid Build Coastguard Worker    ":dtls_transport_interface",
215*d9f75844SAndroid Build Coastguard Worker    ":dtmf_sender_interface",
216*d9f75844SAndroid Build Coastguard Worker    ":frame_transformer_interface",
217*d9f75844SAndroid Build Coastguard Worker    ":media_stream_interface",
218*d9f75844SAndroid Build Coastguard Worker    ":rtc_error",
219*d9f75844SAndroid Build Coastguard Worker    ":rtp_parameters",
220*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
221*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
222*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
223*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
224*d9f75844SAndroid Build Coastguard Worker    "crypto:frame_encryptor_interface",
225*d9f75844SAndroid Build Coastguard Worker    "video_codecs:video_codecs_api",
226*d9f75844SAndroid Build Coastguard Worker  ]
227*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ]
228*d9f75844SAndroid Build Coastguard Worker}
229*d9f75844SAndroid Build Coastguard Worker
230*d9f75844SAndroid Build Coastguard Workerrtc_library("libjingle_peerconnection_api") {
231*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
232*d9f75844SAndroid Build Coastguard Worker  cflags = []
233*d9f75844SAndroid Build Coastguard Worker  sources = [
234*d9f75844SAndroid Build Coastguard Worker    "crypto_params.h",
235*d9f75844SAndroid Build Coastguard Worker    "data_channel_interface.cc",
236*d9f75844SAndroid Build Coastguard Worker    "data_channel_interface.h",
237*d9f75844SAndroid Build Coastguard Worker    "jsep.cc",
238*d9f75844SAndroid Build Coastguard Worker    "jsep.h",
239*d9f75844SAndroid Build Coastguard Worker    "jsep_ice_candidate.cc",
240*d9f75844SAndroid Build Coastguard Worker    "jsep_ice_candidate.h",
241*d9f75844SAndroid Build Coastguard Worker    "jsep_session_description.h",
242*d9f75844SAndroid Build Coastguard Worker    "legacy_stats_types.cc",
243*d9f75844SAndroid Build Coastguard Worker    "legacy_stats_types.h",
244*d9f75844SAndroid Build Coastguard Worker    "peer_connection_interface.cc",
245*d9f75844SAndroid Build Coastguard Worker    "peer_connection_interface.h",
246*d9f75844SAndroid Build Coastguard Worker    "rtp_receiver_interface.cc",
247*d9f75844SAndroid Build Coastguard Worker    "rtp_receiver_interface.h",
248*d9f75844SAndroid Build Coastguard Worker    "rtp_transceiver_interface.cc",
249*d9f75844SAndroid Build Coastguard Worker    "rtp_transceiver_interface.h",
250*d9f75844SAndroid Build Coastguard Worker    "sctp_transport_interface.cc",
251*d9f75844SAndroid Build Coastguard Worker    "sctp_transport_interface.h",
252*d9f75844SAndroid Build Coastguard Worker    "set_local_description_observer_interface.h",
253*d9f75844SAndroid Build Coastguard Worker    "set_remote_description_observer_interface.h",
254*d9f75844SAndroid Build Coastguard Worker    "uma_metrics.h",
255*d9f75844SAndroid Build Coastguard Worker    "video_track_source_proxy_factory.h",
256*d9f75844SAndroid Build Coastguard Worker
257*d9f75844SAndroid Build Coastguard Worker    # Remove when downstream has been updated
258*d9f75844SAndroid Build Coastguard Worker    "dtmf_sender_interface.h",
259*d9f75844SAndroid Build Coastguard Worker    "rtp_sender_interface.h",
260*d9f75844SAndroid Build Coastguard Worker  ]
261*d9f75844SAndroid Build Coastguard Worker  public_deps = [  # no-presubmit-check TODO(webrtc:8603)
262*d9f75844SAndroid Build Coastguard Worker    # Remove when downstream has been updated
263*d9f75844SAndroid Build Coastguard Worker    ":dtmf_sender_interface",
264*d9f75844SAndroid Build Coastguard Worker    ":rtp_sender_interface",
265*d9f75844SAndroid Build Coastguard Worker  ]
266*d9f75844SAndroid Build Coastguard Worker  deps = [
267*d9f75844SAndroid Build Coastguard Worker    ":array_view",
268*d9f75844SAndroid Build Coastguard Worker    ":async_dns_resolver",
269*d9f75844SAndroid Build Coastguard Worker    ":audio_options_api",
270*d9f75844SAndroid Build Coastguard Worker    ":callfactory_api",
271*d9f75844SAndroid Build Coastguard Worker    ":candidate",
272*d9f75844SAndroid Build Coastguard Worker    ":dtls_transport_interface",
273*d9f75844SAndroid Build Coastguard Worker    ":fec_controller_api",
274*d9f75844SAndroid Build Coastguard Worker    ":field_trials",
275*d9f75844SAndroid Build Coastguard Worker    ":field_trials_view",
276*d9f75844SAndroid Build Coastguard Worker    ":frame_transformer_interface",
277*d9f75844SAndroid Build Coastguard Worker    ":ice_transport_interface",
278*d9f75844SAndroid Build Coastguard Worker    ":libjingle_logging_api",
279*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
280*d9f75844SAndroid Build Coastguard Worker    ":media_stream_interface",
281*d9f75844SAndroid Build Coastguard Worker    ":network_state_predictor_api",
282*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
283*d9f75844SAndroid Build Coastguard Worker    ":priority",
284*d9f75844SAndroid Build Coastguard Worker    ":rtc_error",
285*d9f75844SAndroid Build Coastguard Worker    ":rtc_stats_api",
286*d9f75844SAndroid Build Coastguard Worker    ":rtp_packet_info",
287*d9f75844SAndroid Build Coastguard Worker    ":rtp_parameters",
288*d9f75844SAndroid Build Coastguard Worker    ":rtp_sender_interface",
289*d9f75844SAndroid Build Coastguard Worker    ":rtp_transceiver_direction",
290*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
291*d9f75844SAndroid Build Coastguard Worker    ":sequence_checker",
292*d9f75844SAndroid Build Coastguard Worker    ":turn_customizer",
293*d9f75844SAndroid Build Coastguard Worker    "../call:rtp_interfaces",
294*d9f75844SAndroid Build Coastguard Worker    "../p2p:rtc_p2p",
295*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:copy_on_write_buffer",
296*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:logging",
297*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:network_constants",
298*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
299*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:stringutils",
300*d9f75844SAndroid Build Coastguard Worker    "adaptation:resource_adaptation_api",
301*d9f75844SAndroid Build Coastguard Worker    "audio:audio_mixer_api",
302*d9f75844SAndroid Build Coastguard Worker    "audio_codecs:audio_codecs_api",
303*d9f75844SAndroid Build Coastguard Worker    "crypto:frame_decryptor_interface",
304*d9f75844SAndroid Build Coastguard Worker    "crypto:frame_encryptor_interface",
305*d9f75844SAndroid Build Coastguard Worker    "crypto:options",
306*d9f75844SAndroid Build Coastguard Worker    "metronome",
307*d9f75844SAndroid Build Coastguard Worker    "neteq:neteq_api",
308*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log",
309*d9f75844SAndroid Build Coastguard Worker    "task_queue",
310*d9f75844SAndroid Build Coastguard Worker    "transport:bitrate_settings",
311*d9f75844SAndroid Build Coastguard Worker    "transport:enums",
312*d9f75844SAndroid Build Coastguard Worker    "transport:network_control",
313*d9f75844SAndroid Build Coastguard Worker    "transport:sctp_transport_factory_interface",
314*d9f75844SAndroid Build Coastguard Worker    "transport/rtp:rtp_source",
315*d9f75844SAndroid Build Coastguard Worker    "units:data_rate",
316*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
317*d9f75844SAndroid Build Coastguard Worker    "video:encoded_image",
318*d9f75844SAndroid Build Coastguard Worker    "video:video_bitrate_allocator_factory",
319*d9f75844SAndroid Build Coastguard Worker    "video:video_frame",
320*d9f75844SAndroid Build Coastguard Worker    "video:video_rtp_headers",
321*d9f75844SAndroid Build Coastguard Worker    "video_codecs:video_codecs_api",
322*d9f75844SAndroid Build Coastguard Worker
323*d9f75844SAndroid Build Coastguard Worker    # Basically, don't add stuff here. You might break sensitive downstream
324*d9f75844SAndroid Build Coastguard Worker    # targets like pnacl. API should not depend on anything outside of this
325*d9f75844SAndroid Build Coastguard Worker    # file, really. All these should arguably go away in time.
326*d9f75844SAndroid Build Coastguard Worker    "../media:rtc_media_base",
327*d9f75844SAndroid Build Coastguard Worker    "../media:rtc_media_config",
328*d9f75844SAndroid Build Coastguard Worker    "../modules/audio_processing:audio_processing_statistics",
329*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
330*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
331*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:ip_address",
332*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:socket_address",
333*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
334*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
335*d9f75844SAndroid Build Coastguard Worker  ]
336*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
337*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/algorithm:container",
338*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/base:core_headers",
339*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/functional:any_invocable",
340*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/memory",
341*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
342*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
343*d9f75844SAndroid Build Coastguard Worker  ]
344*d9f75844SAndroid Build Coastguard Worker}
345*d9f75844SAndroid Build Coastguard Worker
346*d9f75844SAndroid Build Coastguard Workerrtc_source_set("frame_transformer_interface") {
347*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
348*d9f75844SAndroid Build Coastguard Worker  sources = [ "frame_transformer_interface.h" ]
349*d9f75844SAndroid Build Coastguard Worker  deps = [
350*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
351*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
352*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
353*d9f75844SAndroid Build Coastguard Worker    "video:encoded_frame",
354*d9f75844SAndroid Build Coastguard Worker    "video:video_frame_metadata",
355*d9f75844SAndroid Build Coastguard Worker  ]
356*d9f75844SAndroid Build Coastguard Worker}
357*d9f75844SAndroid Build Coastguard Worker
358*d9f75844SAndroid Build Coastguard Workerrtc_library("rtc_error") {
359*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
360*d9f75844SAndroid Build Coastguard Worker  sources = [
361*d9f75844SAndroid Build Coastguard Worker    "rtc_error.cc",
362*d9f75844SAndroid Build Coastguard Worker    "rtc_error.h",
363*d9f75844SAndroid Build Coastguard Worker  ]
364*d9f75844SAndroid Build Coastguard Worker  deps = [
365*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
366*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:logging",
367*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:macromagic",
368*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
369*d9f75844SAndroid Build Coastguard Worker  ]
370*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
371*d9f75844SAndroid Build Coastguard Worker}
372*d9f75844SAndroid Build Coastguard Worker
373*d9f75844SAndroid Build Coastguard Workerrtc_source_set("packet_socket_factory") {
374*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
375*d9f75844SAndroid Build Coastguard Worker  sources = [
376*d9f75844SAndroid Build Coastguard Worker    "async_resolver_factory.h",
377*d9f75844SAndroid Build Coastguard Worker    "packet_socket_factory.h",
378*d9f75844SAndroid Build Coastguard Worker  ]
379*d9f75844SAndroid Build Coastguard Worker  deps = [
380*d9f75844SAndroid Build Coastguard Worker    ":async_dns_resolver",
381*d9f75844SAndroid Build Coastguard Worker    ":wrapping_async_dns_resolver",
382*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:async_resolver_interface",
383*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:rtc_base",
384*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:socket_address",
385*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
386*d9f75844SAndroid Build Coastguard Worker  ]
387*d9f75844SAndroid Build Coastguard Worker}
388*d9f75844SAndroid Build Coastguard Worker
389*d9f75844SAndroid Build Coastguard Workerrtc_source_set("async_dns_resolver") {
390*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
391*d9f75844SAndroid Build Coastguard Worker  sources = [ "async_dns_resolver.h" ]
392*d9f75844SAndroid Build Coastguard Worker  deps = [
393*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
394*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:socket_address",
395*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
396*d9f75844SAndroid Build Coastguard Worker  ]
397*d9f75844SAndroid Build Coastguard Worker}
398*d9f75844SAndroid Build Coastguard Worker
399*d9f75844SAndroid Build Coastguard Workerrtc_source_set("wrapping_async_dns_resolver") {
400*d9f75844SAndroid Build Coastguard Worker  visibility = [
401*d9f75844SAndroid Build Coastguard Worker    ":*",
402*d9f75844SAndroid Build Coastguard Worker    "../p2p:rtc_p2p",
403*d9f75844SAndroid Build Coastguard Worker  ]
404*d9f75844SAndroid Build Coastguard Worker  sources = [
405*d9f75844SAndroid Build Coastguard Worker    "wrapping_async_dns_resolver.cc",
406*d9f75844SAndroid Build Coastguard Worker    "wrapping_async_dns_resolver.h",
407*d9f75844SAndroid Build Coastguard Worker  ]
408*d9f75844SAndroid Build Coastguard Worker  deps = [
409*d9f75844SAndroid Build Coastguard Worker    ":async_dns_resolver",
410*d9f75844SAndroid Build Coastguard Worker    ":sequence_checker",
411*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:async_resolver_interface",
412*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
413*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:macromagic",
414*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:socket_address",
415*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
416*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/third_party/sigslot",
417*d9f75844SAndroid Build Coastguard Worker  ]
418*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
419*d9f75844SAndroid Build Coastguard Worker}
420*d9f75844SAndroid Build Coastguard Worker
421*d9f75844SAndroid Build Coastguard Workerrtc_source_set("scoped_refptr") {
422*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
423*d9f75844SAndroid Build Coastguard Worker  sources = [ "scoped_refptr.h" ]
424*d9f75844SAndroid Build Coastguard Worker}
425*d9f75844SAndroid Build Coastguard Worker
426*d9f75844SAndroid Build Coastguard Workerrtc_source_set("make_ref_counted") {
427*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
428*d9f75844SAndroid Build Coastguard Worker  sources = [ "make_ref_counted.h" ]
429*d9f75844SAndroid Build Coastguard Worker  deps = [ "../rtc_base:refcount" ]
430*d9f75844SAndroid Build Coastguard Worker}
431*d9f75844SAndroid Build Coastguard Worker
432*d9f75844SAndroid Build Coastguard Workerrtc_source_set("video_quality_test_fixture_api") {
433*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
434*d9f75844SAndroid Build Coastguard Worker  testonly = true
435*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/video_quality_test_fixture.h" ]
436*d9f75844SAndroid Build Coastguard Worker  deps = [
437*d9f75844SAndroid Build Coastguard Worker    ":fec_controller_api",
438*d9f75844SAndroid Build Coastguard Worker    ":libjingle_peerconnection_api",
439*d9f75844SAndroid Build Coastguard Worker    ":network_state_predictor_api",
440*d9f75844SAndroid Build Coastguard Worker    ":rtp_parameters",
441*d9f75844SAndroid Build Coastguard Worker    ":simulated_network_api",
442*d9f75844SAndroid Build Coastguard Worker    "../call:fake_network",
443*d9f75844SAndroid Build Coastguard Worker    "../call:rtp_interfaces",
444*d9f75844SAndroid Build Coastguard Worker    "../test:test_common",
445*d9f75844SAndroid Build Coastguard Worker    "../test:video_test_common",
446*d9f75844SAndroid Build Coastguard Worker    "../video/config:encoder_config",
447*d9f75844SAndroid Build Coastguard Worker    "transport:bitrate_settings",
448*d9f75844SAndroid Build Coastguard Worker    "transport:network_control",
449*d9f75844SAndroid Build Coastguard Worker    "video_codecs:video_codecs_api",
450*d9f75844SAndroid Build Coastguard Worker  ]
451*d9f75844SAndroid Build Coastguard Worker}
452*d9f75844SAndroid Build Coastguard Worker
453*d9f75844SAndroid Build Coastguard Workerrtc_source_set("video_quality_analyzer_api") {
454*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
455*d9f75844SAndroid Build Coastguard Worker  testonly = true
456*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/video_quality_analyzer_interface.h" ]
457*d9f75844SAndroid Build Coastguard Worker
458*d9f75844SAndroid Build Coastguard Worker  deps = [
459*d9f75844SAndroid Build Coastguard Worker    ":array_view",
460*d9f75844SAndroid Build Coastguard Worker    ":stats_observer_interface",
461*d9f75844SAndroid Build Coastguard Worker    "video:encoded_image",
462*d9f75844SAndroid Build Coastguard Worker    "video:video_frame",
463*d9f75844SAndroid Build Coastguard Worker    "video:video_rtp_headers",
464*d9f75844SAndroid Build Coastguard Worker    "video_codecs:video_codecs_api",
465*d9f75844SAndroid Build Coastguard Worker  ]
466*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
467*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
468*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
469*d9f75844SAndroid Build Coastguard Worker  ]
470*d9f75844SAndroid Build Coastguard Worker}
471*d9f75844SAndroid Build Coastguard Worker
472*d9f75844SAndroid Build Coastguard Workerrtc_source_set("track_id_stream_info_map") {
473*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
474*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/track_id_stream_info_map.h" ]
475*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
476*d9f75844SAndroid Build Coastguard Worker}
477*d9f75844SAndroid Build Coastguard Worker
478*d9f75844SAndroid Build Coastguard Workerrtc_source_set("rtp_transceiver_direction") {
479*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
480*d9f75844SAndroid Build Coastguard Worker  sources = [ "rtp_transceiver_direction.h" ]
481*d9f75844SAndroid Build Coastguard Worker}
482*d9f75844SAndroid Build Coastguard Worker
483*d9f75844SAndroid Build Coastguard Workerrtc_source_set("priority") {
484*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
485*d9f75844SAndroid Build Coastguard Worker  sources = [ "priority.h" ]
486*d9f75844SAndroid Build Coastguard Worker}
487*d9f75844SAndroid Build Coastguard Worker
488*d9f75844SAndroid Build Coastguard Workerrtc_library("rtp_parameters") {
489*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
490*d9f75844SAndroid Build Coastguard Worker  sources = [
491*d9f75844SAndroid Build Coastguard Worker    "media_types.cc",
492*d9f75844SAndroid Build Coastguard Worker    "media_types.h",
493*d9f75844SAndroid Build Coastguard Worker    "rtp_parameters.cc",
494*d9f75844SAndroid Build Coastguard Worker    "rtp_parameters.h",
495*d9f75844SAndroid Build Coastguard Worker  ]
496*d9f75844SAndroid Build Coastguard Worker  deps = [
497*d9f75844SAndroid Build Coastguard Worker    ":array_view",
498*d9f75844SAndroid Build Coastguard Worker    ":priority",
499*d9f75844SAndroid Build Coastguard Worker    ":rtp_transceiver_direction",
500*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
501*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:stringutils",
502*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
503*d9f75844SAndroid Build Coastguard Worker    "video:resolution",
504*d9f75844SAndroid Build Coastguard Worker    "video_codecs:scalability_mode",
505*d9f75844SAndroid Build Coastguard Worker  ]
506*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
507*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/container:inlined_vector",
508*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
509*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
510*d9f75844SAndroid Build Coastguard Worker  ]
511*d9f75844SAndroid Build Coastguard Worker}
512*d9f75844SAndroid Build Coastguard Worker
513*d9f75844SAndroid Build Coastguard Workerif (is_android) {
514*d9f75844SAndroid Build Coastguard Worker  java_cpp_enum("priority_enums") {
515*d9f75844SAndroid Build Coastguard Worker    sources = [ "priority.h" ]
516*d9f75844SAndroid Build Coastguard Worker  }
517*d9f75844SAndroid Build Coastguard Worker}
518*d9f75844SAndroid Build Coastguard Worker
519*d9f75844SAndroid Build Coastguard Workerrtc_source_set("audio_quality_analyzer_api") {
520*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
521*d9f75844SAndroid Build Coastguard Worker  testonly = true
522*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/audio_quality_analyzer_interface.h" ]
523*d9f75844SAndroid Build Coastguard Worker
524*d9f75844SAndroid Build Coastguard Worker  deps = [
525*d9f75844SAndroid Build Coastguard Worker    ":stats_observer_interface",
526*d9f75844SAndroid Build Coastguard Worker    ":track_id_stream_info_map",
527*d9f75844SAndroid Build Coastguard Worker  ]
528*d9f75844SAndroid Build Coastguard Worker}
529*d9f75844SAndroid Build Coastguard Worker
530*d9f75844SAndroid Build Coastguard Workerrtc_source_set("stats_observer_interface") {
531*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
532*d9f75844SAndroid Build Coastguard Worker  testonly = true
533*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/stats_observer_interface.h" ]
534*d9f75844SAndroid Build Coastguard Worker
535*d9f75844SAndroid Build Coastguard Worker  deps = [ ":rtc_stats_api" ]
536*d9f75844SAndroid Build Coastguard Worker
537*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
538*d9f75844SAndroid Build Coastguard Worker}
539*d9f75844SAndroid Build Coastguard Worker
540*d9f75844SAndroid Build Coastguard Workerrtc_source_set("peer_network_dependencies") {
541*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
542*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/peer_network_dependencies.h" ]
543*d9f75844SAndroid Build Coastguard Worker  deps = [
544*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
545*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
546*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
547*d9f75844SAndroid Build Coastguard Worker  ]
548*d9f75844SAndroid Build Coastguard Worker}
549*d9f75844SAndroid Build Coastguard Worker
550*d9f75844SAndroid Build Coastguard Workerrtc_source_set("peer_connection_quality_test_fixture_api") {
551*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
552*d9f75844SAndroid Build Coastguard Worker  testonly = true
553*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/peerconnection_quality_test_fixture.h" ]
554*d9f75844SAndroid Build Coastguard Worker
555*d9f75844SAndroid Build Coastguard Worker  deps = [
556*d9f75844SAndroid Build Coastguard Worker    ":array_view",
557*d9f75844SAndroid Build Coastguard Worker    ":audio_quality_analyzer_api",
558*d9f75844SAndroid Build Coastguard Worker    ":callfactory_api",
559*d9f75844SAndroid Build Coastguard Worker    ":fec_controller_api",
560*d9f75844SAndroid Build Coastguard Worker    ":frame_generator_api",
561*d9f75844SAndroid Build Coastguard Worker    ":function_view",
562*d9f75844SAndroid Build Coastguard Worker    ":libjingle_peerconnection_api",
563*d9f75844SAndroid Build Coastguard Worker    ":media_stream_interface",
564*d9f75844SAndroid Build Coastguard Worker    ":network_state_predictor_api",
565*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
566*d9f75844SAndroid Build Coastguard Worker    ":peer_network_dependencies",
567*d9f75844SAndroid Build Coastguard Worker    ":rtp_parameters",
568*d9f75844SAndroid Build Coastguard Worker    ":simulated_network_api",
569*d9f75844SAndroid Build Coastguard Worker    ":stats_observer_interface",
570*d9f75844SAndroid Build Coastguard Worker    ":track_id_stream_info_map",
571*d9f75844SAndroid Build Coastguard Worker    ":video_quality_analyzer_api",
572*d9f75844SAndroid Build Coastguard Worker    "../media:rtc_media_base",
573*d9f75844SAndroid Build Coastguard Worker    "../modules/audio_processing:api",
574*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
575*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:rtc_base",
576*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:stringutils",
577*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
578*d9f75844SAndroid Build Coastguard Worker    "../test:fileutils",
579*d9f75844SAndroid Build Coastguard Worker    "audio:audio_mixer_api",
580*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log",
581*d9f75844SAndroid Build Coastguard Worker    "task_queue",
582*d9f75844SAndroid Build Coastguard Worker    "test/pclf:media_configuration",
583*d9f75844SAndroid Build Coastguard Worker    "test/pclf:media_quality_test_params",
584*d9f75844SAndroid Build Coastguard Worker    "test/pclf:peer_configurer",
585*d9f75844SAndroid Build Coastguard Worker    "test/video:video_frame_writer",
586*d9f75844SAndroid Build Coastguard Worker    "transport:network_control",
587*d9f75844SAndroid Build Coastguard Worker    "units:time_delta",
588*d9f75844SAndroid Build Coastguard Worker    "video:video_frame",
589*d9f75844SAndroid Build Coastguard Worker    "video_codecs:video_codecs_api",
590*d9f75844SAndroid Build Coastguard Worker  ]
591*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
592*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/base:core_headers",
593*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/memory",
594*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
595*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/types:optional",
596*d9f75844SAndroid Build Coastguard Worker  ]
597*d9f75844SAndroid Build Coastguard Worker}
598*d9f75844SAndroid Build Coastguard Worker
599*d9f75844SAndroid Build Coastguard Workerrtc_source_set("frame_generator_api") {
600*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
601*d9f75844SAndroid Build Coastguard Worker  testonly = true
602*d9f75844SAndroid Build Coastguard Worker  sources = [
603*d9f75844SAndroid Build Coastguard Worker    "test/frame_generator_interface.cc",
604*d9f75844SAndroid Build Coastguard Worker    "test/frame_generator_interface.h",
605*d9f75844SAndroid Build Coastguard Worker  ]
606*d9f75844SAndroid Build Coastguard Worker
607*d9f75844SAndroid Build Coastguard Worker  deps = [
608*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
609*d9f75844SAndroid Build Coastguard Worker    "video:video_frame",
610*d9f75844SAndroid Build Coastguard Worker  ]
611*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
612*d9f75844SAndroid Build Coastguard Worker}
613*d9f75844SAndroid Build Coastguard Worker
614*d9f75844SAndroid Build Coastguard Workerrtc_library("test_dependency_factory") {
615*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
616*d9f75844SAndroid Build Coastguard Worker  testonly = true
617*d9f75844SAndroid Build Coastguard Worker  sources = [
618*d9f75844SAndroid Build Coastguard Worker    "test/test_dependency_factory.cc",
619*d9f75844SAndroid Build Coastguard Worker    "test/test_dependency_factory.h",
620*d9f75844SAndroid Build Coastguard Worker  ]
621*d9f75844SAndroid Build Coastguard Worker  deps = [
622*d9f75844SAndroid Build Coastguard Worker    ":video_quality_test_fixture_api",
623*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
624*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:platform_thread_types",
625*d9f75844SAndroid Build Coastguard Worker  ]
626*d9f75844SAndroid Build Coastguard Worker}
627*d9f75844SAndroid Build Coastguard Worker
628*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) {
629*d9f75844SAndroid Build Coastguard Worker  # TODO(srte): Move to network_emulation sub directory.
630*d9f75844SAndroid Build Coastguard Worker  rtc_library("create_network_emulation_manager") {
631*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
632*d9f75844SAndroid Build Coastguard Worker    testonly = true
633*d9f75844SAndroid Build Coastguard Worker    sources = [
634*d9f75844SAndroid Build Coastguard Worker      "test/create_network_emulation_manager.cc",
635*d9f75844SAndroid Build Coastguard Worker      "test/create_network_emulation_manager.h",
636*d9f75844SAndroid Build Coastguard Worker    ]
637*d9f75844SAndroid Build Coastguard Worker    deps = [
638*d9f75844SAndroid Build Coastguard Worker      ":network_emulation_manager_api",
639*d9f75844SAndroid Build Coastguard Worker      "../test/network:emulated_network",
640*d9f75844SAndroid Build Coastguard Worker    ]
641*d9f75844SAndroid Build Coastguard Worker  }
642*d9f75844SAndroid Build Coastguard Worker
643*d9f75844SAndroid Build Coastguard Worker  if (!build_with_chromium) {
644*d9f75844SAndroid Build Coastguard Worker    rtc_library("create_video_quality_test_fixture_api") {
645*d9f75844SAndroid Build Coastguard Worker      visibility = [ "*" ]
646*d9f75844SAndroid Build Coastguard Worker      testonly = true
647*d9f75844SAndroid Build Coastguard Worker      sources = [
648*d9f75844SAndroid Build Coastguard Worker        "test/create_video_quality_test_fixture.cc",
649*d9f75844SAndroid Build Coastguard Worker        "test/create_video_quality_test_fixture.h",
650*d9f75844SAndroid Build Coastguard Worker      ]
651*d9f75844SAndroid Build Coastguard Worker      deps = [
652*d9f75844SAndroid Build Coastguard Worker        ":fec_controller_api",
653*d9f75844SAndroid Build Coastguard Worker        ":network_state_predictor_api",
654*d9f75844SAndroid Build Coastguard Worker        ":scoped_refptr",
655*d9f75844SAndroid Build Coastguard Worker        ":video_quality_test_fixture_api",
656*d9f75844SAndroid Build Coastguard Worker        "../video:video_quality_test",
657*d9f75844SAndroid Build Coastguard Worker      ]
658*d9f75844SAndroid Build Coastguard Worker    }
659*d9f75844SAndroid Build Coastguard Worker
660*d9f75844SAndroid Build Coastguard Worker    rtc_library("create_peerconnection_quality_test_fixture") {
661*d9f75844SAndroid Build Coastguard Worker      visibility = [ "*" ]
662*d9f75844SAndroid Build Coastguard Worker      testonly = true
663*d9f75844SAndroid Build Coastguard Worker      sources = [
664*d9f75844SAndroid Build Coastguard Worker        "test/create_peerconnection_quality_test_fixture.cc",
665*d9f75844SAndroid Build Coastguard Worker        "test/create_peerconnection_quality_test_fixture.h",
666*d9f75844SAndroid Build Coastguard Worker      ]
667*d9f75844SAndroid Build Coastguard Worker
668*d9f75844SAndroid Build Coastguard Worker      deps = [
669*d9f75844SAndroid Build Coastguard Worker        ":audio_quality_analyzer_api",
670*d9f75844SAndroid Build Coastguard Worker        ":peer_connection_quality_test_fixture_api",
671*d9f75844SAndroid Build Coastguard Worker        ":time_controller",
672*d9f75844SAndroid Build Coastguard Worker        ":video_quality_analyzer_api",
673*d9f75844SAndroid Build Coastguard Worker        "../test/pc/e2e:peerconnection_quality_test",
674*d9f75844SAndroid Build Coastguard Worker        "test/metrics:global_metrics_logger_and_exporter",
675*d9f75844SAndroid Build Coastguard Worker      ]
676*d9f75844SAndroid Build Coastguard Worker    }
677*d9f75844SAndroid Build Coastguard Worker  }
678*d9f75844SAndroid Build Coastguard Worker}
679*d9f75844SAndroid Build Coastguard Worker
680*d9f75844SAndroid Build Coastguard Workerrtc_library("create_frame_generator") {
681*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
682*d9f75844SAndroid Build Coastguard Worker  testonly = true
683*d9f75844SAndroid Build Coastguard Worker  sources = [
684*d9f75844SAndroid Build Coastguard Worker    "test/create_frame_generator.cc",
685*d9f75844SAndroid Build Coastguard Worker    "test/create_frame_generator.h",
686*d9f75844SAndroid Build Coastguard Worker  ]
687*d9f75844SAndroid Build Coastguard Worker  deps = [
688*d9f75844SAndroid Build Coastguard Worker    ":frame_generator_api",
689*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
690*d9f75844SAndroid Build Coastguard Worker    "../system_wrappers",
691*d9f75844SAndroid Build Coastguard Worker    "../test:frame_generator_impl",
692*d9f75844SAndroid Build Coastguard Worker  ]
693*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
694*d9f75844SAndroid Build Coastguard Worker}
695*d9f75844SAndroid Build Coastguard Worker
696*d9f75844SAndroid Build Coastguard Workerrtc_library("create_peer_connection_quality_test_frame_generator") {
697*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
698*d9f75844SAndroid Build Coastguard Worker  testonly = true
699*d9f75844SAndroid Build Coastguard Worker  sources = [
700*d9f75844SAndroid Build Coastguard Worker    "test/create_peer_connection_quality_test_frame_generator.cc",
701*d9f75844SAndroid Build Coastguard Worker    "test/create_peer_connection_quality_test_frame_generator.h",
702*d9f75844SAndroid Build Coastguard Worker  ]
703*d9f75844SAndroid Build Coastguard Worker  deps = [
704*d9f75844SAndroid Build Coastguard Worker    ":create_frame_generator",
705*d9f75844SAndroid Build Coastguard Worker    ":frame_generator_api",
706*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
707*d9f75844SAndroid Build Coastguard Worker    "../test:fileutils",
708*d9f75844SAndroid Build Coastguard Worker    "test/pclf:media_configuration",
709*d9f75844SAndroid Build Coastguard Worker  ]
710*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
711*d9f75844SAndroid Build Coastguard Worker}
712*d9f75844SAndroid Build Coastguard Worker
713*d9f75844SAndroid Build Coastguard Workerrtc_source_set("libjingle_logging_api") {
714*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
715*d9f75844SAndroid Build Coastguard Worker  sources = [ "rtc_event_log_output.h" ]
716*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
717*d9f75844SAndroid Build Coastguard Worker}
718*d9f75844SAndroid Build Coastguard Worker
719*d9f75844SAndroid Build Coastguard Workerrtc_library("rtc_event_log_output_file") {
720*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
721*d9f75844SAndroid Build Coastguard Worker  sources = [
722*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log_output_file.cc",
723*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log_output_file.h",
724*d9f75844SAndroid Build Coastguard Worker  ]
725*d9f75844SAndroid Build Coastguard Worker
726*d9f75844SAndroid Build Coastguard Worker  deps = [
727*d9f75844SAndroid Build Coastguard Worker    ":libjingle_logging_api",
728*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
729*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:logging",
730*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:file_wrapper",
731*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log",
732*d9f75844SAndroid Build Coastguard Worker  ]
733*d9f75844SAndroid Build Coastguard Worker}
734*d9f75844SAndroid Build Coastguard Worker
735*d9f75844SAndroid Build Coastguard Workerrtc_source_set("rtc_stats_api") {
736*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
737*d9f75844SAndroid Build Coastguard Worker  cflags = []
738*d9f75844SAndroid Build Coastguard Worker  sources = [
739*d9f75844SAndroid Build Coastguard Worker    "stats/rtc_stats.h",
740*d9f75844SAndroid Build Coastguard Worker    "stats/rtc_stats_collector_callback.h",
741*d9f75844SAndroid Build Coastguard Worker    "stats/rtc_stats_report.h",
742*d9f75844SAndroid Build Coastguard Worker    "stats/rtcstats_objects.h",
743*d9f75844SAndroid Build Coastguard Worker  ]
744*d9f75844SAndroid Build Coastguard Worker
745*d9f75844SAndroid Build Coastguard Worker  deps = [
746*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
747*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
748*d9f75844SAndroid Build Coastguard Worker    "../api:refcountedbase",
749*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
750*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
751*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
752*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
753*d9f75844SAndroid Build Coastguard Worker  ]
754*d9f75844SAndroid Build Coastguard Worker
755*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
756*d9f75844SAndroid Build Coastguard Worker}
757*d9f75844SAndroid Build Coastguard Worker
758*d9f75844SAndroid Build Coastguard Workerrtc_library("audio_options_api") {
759*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
760*d9f75844SAndroid Build Coastguard Worker  sources = [
761*d9f75844SAndroid Build Coastguard Worker    "audio_options.cc",
762*d9f75844SAndroid Build Coastguard Worker    "audio_options.h",
763*d9f75844SAndroid Build Coastguard Worker  ]
764*d9f75844SAndroid Build Coastguard Worker
765*d9f75844SAndroid Build Coastguard Worker  deps = [
766*d9f75844SAndroid Build Coastguard Worker    ":array_view",
767*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:stringutils",
768*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
769*d9f75844SAndroid Build Coastguard Worker  ]
770*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
771*d9f75844SAndroid Build Coastguard Worker}
772*d9f75844SAndroid Build Coastguard Worker
773*d9f75844SAndroid Build Coastguard Workerrtc_library("transport_api") {
774*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
775*d9f75844SAndroid Build Coastguard Worker  sources = [
776*d9f75844SAndroid Build Coastguard Worker    "call/transport.cc",
777*d9f75844SAndroid Build Coastguard Worker    "call/transport.h",
778*d9f75844SAndroid Build Coastguard Worker  ]
779*d9f75844SAndroid Build Coastguard Worker  deps = [
780*d9f75844SAndroid Build Coastguard Worker    ":refcountedbase",
781*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
782*d9f75844SAndroid Build Coastguard Worker  ]
783*d9f75844SAndroid Build Coastguard Worker}
784*d9f75844SAndroid Build Coastguard Worker
785*d9f75844SAndroid Build Coastguard Workerrtc_source_set("bitrate_allocation") {
786*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
787*d9f75844SAndroid Build Coastguard Worker  sources = [ "call/bitrate_allocation.h" ]
788*d9f75844SAndroid Build Coastguard Worker  deps = [
789*d9f75844SAndroid Build Coastguard Worker    "units:data_rate",
790*d9f75844SAndroid Build Coastguard Worker    "units:time_delta",
791*d9f75844SAndroid Build Coastguard Worker  ]
792*d9f75844SAndroid Build Coastguard Worker}
793*d9f75844SAndroid Build Coastguard Worker
794*d9f75844SAndroid Build Coastguard Worker# TODO(srte): Move to network_emulation sub directory.
795*d9f75844SAndroid Build Coastguard Workerrtc_source_set("simulated_network_api") {
796*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
797*d9f75844SAndroid Build Coastguard Worker  sources = [ "test/simulated_network.h" ]
798*d9f75844SAndroid Build Coastguard Worker  deps = [
799*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
800*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:macromagic",
801*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:random",
802*d9f75844SAndroid Build Coastguard Worker  ]
803*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
804*d9f75844SAndroid Build Coastguard Worker}
805*d9f75844SAndroid Build Coastguard Worker
806*d9f75844SAndroid Build Coastguard Worker# TODO(srte): Move to network_emulation sub directory.
807*d9f75844SAndroid Build Coastguard Workerrtc_source_set("network_emulation_manager_api") {
808*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
809*d9f75844SAndroid Build Coastguard Worker  sources = [
810*d9f75844SAndroid Build Coastguard Worker    "test/network_emulation_manager.cc",
811*d9f75844SAndroid Build Coastguard Worker    "test/network_emulation_manager.h",
812*d9f75844SAndroid Build Coastguard Worker  ]
813*d9f75844SAndroid Build Coastguard Worker  deps = [
814*d9f75844SAndroid Build Coastguard Worker    ":array_view",
815*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
816*d9f75844SAndroid Build Coastguard Worker    ":peer_network_dependencies",
817*d9f75844SAndroid Build Coastguard Worker    ":simulated_network_api",
818*d9f75844SAndroid Build Coastguard Worker    ":time_controller",
819*d9f75844SAndroid Build Coastguard Worker    "../call:simulated_network",
820*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
821*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
822*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:network_constants",
823*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
824*d9f75844SAndroid Build Coastguard Worker    "test/network_emulation",
825*d9f75844SAndroid Build Coastguard Worker    "units:data_rate",
826*d9f75844SAndroid Build Coastguard Worker    "units:data_size",
827*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
828*d9f75844SAndroid Build Coastguard Worker  ]
829*d9f75844SAndroid Build Coastguard Worker}
830*d9f75844SAndroid Build Coastguard Worker
831*d9f75844SAndroid Build Coastguard Workerrtc_source_set("time_controller") {
832*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
833*d9f75844SAndroid Build Coastguard Worker  sources = [
834*d9f75844SAndroid Build Coastguard Worker    "test/time_controller.cc",
835*d9f75844SAndroid Build Coastguard Worker    "test/time_controller.h",
836*d9f75844SAndroid Build Coastguard Worker  ]
837*d9f75844SAndroid Build Coastguard Worker
838*d9f75844SAndroid Build Coastguard Worker  deps = [
839*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
840*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
841*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/synchronization:yield_policy",
842*d9f75844SAndroid Build Coastguard Worker    "../system_wrappers",
843*d9f75844SAndroid Build Coastguard Worker    "task_queue",
844*d9f75844SAndroid Build Coastguard Worker    "units:time_delta",
845*d9f75844SAndroid Build Coastguard Worker    "units:timestamp",
846*d9f75844SAndroid Build Coastguard Worker  ]
847*d9f75844SAndroid Build Coastguard Worker}
848*d9f75844SAndroid Build Coastguard Worker
849*d9f75844SAndroid Build Coastguard Workerrtc_source_set("fec_controller_api") {
850*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
851*d9f75844SAndroid Build Coastguard Worker  sources = [
852*d9f75844SAndroid Build Coastguard Worker    "fec_controller.h",
853*d9f75844SAndroid Build Coastguard Worker    "fec_controller_override.h",
854*d9f75844SAndroid Build Coastguard Worker  ]
855*d9f75844SAndroid Build Coastguard Worker
856*d9f75844SAndroid Build Coastguard Worker  deps = [
857*d9f75844SAndroid Build Coastguard Worker    "../modules:module_fec_api",
858*d9f75844SAndroid Build Coastguard Worker    "video:video_frame_type",
859*d9f75844SAndroid Build Coastguard Worker  ]
860*d9f75844SAndroid Build Coastguard Worker}
861*d9f75844SAndroid Build Coastguard Worker
862*d9f75844SAndroid Build Coastguard Workerrtc_source_set("network_state_predictor_api") {
863*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
864*d9f75844SAndroid Build Coastguard Worker  sources = [ "network_state_predictor.h" ]
865*d9f75844SAndroid Build Coastguard Worker}
866*d9f75844SAndroid Build Coastguard Worker
867*d9f75844SAndroid Build Coastguard Workerrtc_source_set("array_view") {
868*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
869*d9f75844SAndroid Build Coastguard Worker  sources = [ "array_view.h" ]
870*d9f75844SAndroid Build Coastguard Worker  deps = [
871*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
872*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:type_traits",
873*d9f75844SAndroid Build Coastguard Worker  ]
874*d9f75844SAndroid Build Coastguard Worker}
875*d9f75844SAndroid Build Coastguard Worker
876*d9f75844SAndroid Build Coastguard Workerrtc_source_set("refcountedbase") {
877*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
878*d9f75844SAndroid Build Coastguard Worker  sources = [ "ref_counted_base.h" ]
879*d9f75844SAndroid Build Coastguard Worker  deps = [
880*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:macromagic",
881*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
882*d9f75844SAndroid Build Coastguard Worker  ]
883*d9f75844SAndroid Build Coastguard Worker}
884*d9f75844SAndroid Build Coastguard Worker
885*d9f75844SAndroid Build Coastguard Workerrtc_library("ice_transport_factory") {
886*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
887*d9f75844SAndroid Build Coastguard Worker  sources = [
888*d9f75844SAndroid Build Coastguard Worker    "ice_transport_factory.cc",
889*d9f75844SAndroid Build Coastguard Worker    "ice_transport_factory.h",
890*d9f75844SAndroid Build Coastguard Worker  ]
891*d9f75844SAndroid Build Coastguard Worker  deps = [
892*d9f75844SAndroid Build Coastguard Worker    ":ice_transport_interface",
893*d9f75844SAndroid Build Coastguard Worker    ":libjingle_peerconnection_api",
894*d9f75844SAndroid Build Coastguard Worker    ":make_ref_counted",
895*d9f75844SAndroid Build Coastguard Worker    ":packet_socket_factory",
896*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
897*d9f75844SAndroid Build Coastguard Worker    "../p2p:rtc_p2p",
898*d9f75844SAndroid Build Coastguard Worker    "../rtc_base",
899*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:threading",
900*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
901*d9f75844SAndroid Build Coastguard Worker    "rtc_event_log:rtc_event_log",
902*d9f75844SAndroid Build Coastguard Worker  ]
903*d9f75844SAndroid Build Coastguard Worker}
904*d9f75844SAndroid Build Coastguard Worker
905*d9f75844SAndroid Build Coastguard Workerrtc_library("neteq_simulator_api") {
906*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
907*d9f75844SAndroid Build Coastguard Worker  sources = [
908*d9f75844SAndroid Build Coastguard Worker    "test/neteq_simulator.cc",
909*d9f75844SAndroid Build Coastguard Worker    "test/neteq_simulator.h",
910*d9f75844SAndroid Build Coastguard Worker  ]
911*d9f75844SAndroid Build Coastguard Worker}
912*d9f75844SAndroid Build Coastguard Worker
913*d9f75844SAndroid Build Coastguard Workerrtc_source_set("function_view") {
914*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
915*d9f75844SAndroid Build Coastguard Worker  sources = [ "function_view.h" ]
916*d9f75844SAndroid Build Coastguard Worker  deps = [ "../rtc_base:checks" ]
917*d9f75844SAndroid Build Coastguard Worker}
918*d9f75844SAndroid Build Coastguard Worker
919*d9f75844SAndroid Build Coastguard Workerrtc_source_set("sequence_checker") {
920*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
921*d9f75844SAndroid Build Coastguard Worker  sources = [ "sequence_checker.h" ]
922*d9f75844SAndroid Build Coastguard Worker  deps = [
923*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
924*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:macromagic",
925*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/synchronization:sequence_checker_internal",
926*d9f75844SAndroid Build Coastguard Worker  ]
927*d9f75844SAndroid Build Coastguard Worker}
928*d9f75844SAndroid Build Coastguard Worker
929*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) {
930*d9f75844SAndroid Build Coastguard Worker  if (rtc_enable_protobuf && !build_with_chromium) {
931*d9f75844SAndroid Build Coastguard Worker    rtc_library("audioproc_f_api") {
932*d9f75844SAndroid Build Coastguard Worker      visibility = [ "*" ]
933*d9f75844SAndroid Build Coastguard Worker      testonly = true
934*d9f75844SAndroid Build Coastguard Worker      sources = [
935*d9f75844SAndroid Build Coastguard Worker        "test/audioproc_float.cc",
936*d9f75844SAndroid Build Coastguard Worker        "test/audioproc_float.h",
937*d9f75844SAndroid Build Coastguard Worker      ]
938*d9f75844SAndroid Build Coastguard Worker
939*d9f75844SAndroid Build Coastguard Worker      deps = [
940*d9f75844SAndroid Build Coastguard Worker        "../modules/audio_processing",
941*d9f75844SAndroid Build Coastguard Worker        "../modules/audio_processing:api",
942*d9f75844SAndroid Build Coastguard Worker        "../modules/audio_processing:audioproc_f_impl",
943*d9f75844SAndroid Build Coastguard Worker      ]
944*d9f75844SAndroid Build Coastguard Worker    }
945*d9f75844SAndroid Build Coastguard Worker
946*d9f75844SAndroid Build Coastguard Worker    rtc_library("neteq_simulator_factory") {
947*d9f75844SAndroid Build Coastguard Worker      visibility = [ "*" ]
948*d9f75844SAndroid Build Coastguard Worker      testonly = true
949*d9f75844SAndroid Build Coastguard Worker      sources = [
950*d9f75844SAndroid Build Coastguard Worker        "test/neteq_simulator_factory.cc",
951*d9f75844SAndroid Build Coastguard Worker        "test/neteq_simulator_factory.h",
952*d9f75844SAndroid Build Coastguard Worker      ]
953*d9f75844SAndroid Build Coastguard Worker      deps = [
954*d9f75844SAndroid Build Coastguard Worker        ":neteq_simulator_api",
955*d9f75844SAndroid Build Coastguard Worker        "../modules/audio_coding:neteq_test_factory",
956*d9f75844SAndroid Build Coastguard Worker        "../rtc_base:checks",
957*d9f75844SAndroid Build Coastguard Worker        "neteq:neteq_api",
958*d9f75844SAndroid Build Coastguard Worker      ]
959*d9f75844SAndroid Build Coastguard Worker      absl_deps = [
960*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:flag",
961*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/flags:parse",
962*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/strings",
963*d9f75844SAndroid Build Coastguard Worker        "//third_party/abseil-cpp/absl/types:optional",
964*d9f75844SAndroid Build Coastguard Worker      ]
965*d9f75844SAndroid Build Coastguard Worker    }
966*d9f75844SAndroid Build Coastguard Worker  }
967*d9f75844SAndroid Build Coastguard Worker
968*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("simulcast_test_fixture_api") {
969*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
970*d9f75844SAndroid Build Coastguard Worker    testonly = true
971*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/simulcast_test_fixture.h" ]
972*d9f75844SAndroid Build Coastguard Worker  }
973*d9f75844SAndroid Build Coastguard Worker
974*d9f75844SAndroid Build Coastguard Worker  rtc_library("create_simulcast_test_fixture_api") {
975*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
976*d9f75844SAndroid Build Coastguard Worker    testonly = true
977*d9f75844SAndroid Build Coastguard Worker    sources = [
978*d9f75844SAndroid Build Coastguard Worker      "test/create_simulcast_test_fixture.cc",
979*d9f75844SAndroid Build Coastguard Worker      "test/create_simulcast_test_fixture.h",
980*d9f75844SAndroid Build Coastguard Worker    ]
981*d9f75844SAndroid Build Coastguard Worker    deps = [
982*d9f75844SAndroid Build Coastguard Worker      ":simulcast_test_fixture_api",
983*d9f75844SAndroid Build Coastguard Worker      "../modules/video_coding:simulcast_test_fixture_impl",
984*d9f75844SAndroid Build Coastguard Worker      "video_codecs:video_codecs_api",
985*d9f75844SAndroid Build Coastguard Worker    ]
986*d9f75844SAndroid Build Coastguard Worker  }
987*d9f75844SAndroid Build Coastguard Worker
988*d9f75844SAndroid Build Coastguard Worker  rtc_library("videocodec_test_fixture_api") {
989*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
990*d9f75844SAndroid Build Coastguard Worker    testonly = true
991*d9f75844SAndroid Build Coastguard Worker    sources = [
992*d9f75844SAndroid Build Coastguard Worker      "test/videocodec_test_fixture.h",
993*d9f75844SAndroid Build Coastguard Worker      "test/videocodec_test_stats.cc",
994*d9f75844SAndroid Build Coastguard Worker      "test/videocodec_test_stats.h",
995*d9f75844SAndroid Build Coastguard Worker    ]
996*d9f75844SAndroid Build Coastguard Worker    deps = [
997*d9f75844SAndroid Build Coastguard Worker      "../modules/video_coding:video_codec_interface",
998*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:stringutils",
999*d9f75844SAndroid Build Coastguard Worker      "video:video_frame_type",
1000*d9f75844SAndroid Build Coastguard Worker      "video_codecs:video_codecs_api",
1001*d9f75844SAndroid Build Coastguard Worker    ]
1002*d9f75844SAndroid Build Coastguard Worker  }
1003*d9f75844SAndroid Build Coastguard Worker
1004*d9f75844SAndroid Build Coastguard Worker  rtc_library("create_videocodec_test_fixture_api") {
1005*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1006*d9f75844SAndroid Build Coastguard Worker    testonly = true
1007*d9f75844SAndroid Build Coastguard Worker    sources = [
1008*d9f75844SAndroid Build Coastguard Worker      "test/create_videocodec_test_fixture.cc",
1009*d9f75844SAndroid Build Coastguard Worker      "test/create_videocodec_test_fixture.h",
1010*d9f75844SAndroid Build Coastguard Worker    ]
1011*d9f75844SAndroid Build Coastguard Worker    deps = [
1012*d9f75844SAndroid Build Coastguard Worker      ":videocodec_test_fixture_api",
1013*d9f75844SAndroid Build Coastguard Worker      "../modules/video_coding:video_codecs_test_framework",
1014*d9f75844SAndroid Build Coastguard Worker      "../modules/video_coding:videocodec_test_impl",
1015*d9f75844SAndroid Build Coastguard Worker      "video_codecs:video_codecs_api",
1016*d9f75844SAndroid Build Coastguard Worker    ]
1017*d9f75844SAndroid Build Coastguard Worker  }
1018*d9f75844SAndroid Build Coastguard Worker
1019*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_audio_mixer") {
1020*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1021*d9f75844SAndroid Build Coastguard Worker    testonly = true
1022*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_audio_mixer.h" ]
1023*d9f75844SAndroid Build Coastguard Worker
1024*d9f75844SAndroid Build Coastguard Worker    deps = [
1025*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1026*d9f75844SAndroid Build Coastguard Worker      "audio:audio_mixer_api",
1027*d9f75844SAndroid Build Coastguard Worker    ]
1028*d9f75844SAndroid Build Coastguard Worker  }
1029*d9f75844SAndroid Build Coastguard Worker
1030*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_audio_sink") {
1031*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1032*d9f75844SAndroid Build Coastguard Worker    testonly = true
1033*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_audio_sink.h" ]
1034*d9f75844SAndroid Build Coastguard Worker
1035*d9f75844SAndroid Build Coastguard Worker    deps = [
1036*d9f75844SAndroid Build Coastguard Worker      "../api:media_stream_interface",
1037*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1038*d9f75844SAndroid Build Coastguard Worker    ]
1039*d9f75844SAndroid Build Coastguard Worker    absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
1040*d9f75844SAndroid Build Coastguard Worker  }
1041*d9f75844SAndroid Build Coastguard Worker
1042*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_data_channel") {
1043*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1044*d9f75844SAndroid Build Coastguard Worker    testonly = true
1045*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_data_channel.h" ]
1046*d9f75844SAndroid Build Coastguard Worker
1047*d9f75844SAndroid Build Coastguard Worker    deps = [
1048*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1049*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1050*d9f75844SAndroid Build Coastguard Worker    ]
1051*d9f75844SAndroid Build Coastguard Worker  }
1052*d9f75844SAndroid Build Coastguard Worker
1053*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_dtmf_sender") {
1054*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1055*d9f75844SAndroid Build Coastguard Worker    testonly = true
1056*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_dtmf_sender.h" ]
1057*d9f75844SAndroid Build Coastguard Worker
1058*d9f75844SAndroid Build Coastguard Worker    deps = [
1059*d9f75844SAndroid Build Coastguard Worker      ":dtmf_sender_interface",
1060*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1061*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1062*d9f75844SAndroid Build Coastguard Worker    ]
1063*d9f75844SAndroid Build Coastguard Worker  }
1064*d9f75844SAndroid Build Coastguard Worker
1065*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_fec_controller_override") {
1066*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1067*d9f75844SAndroid Build Coastguard Worker    testonly = true
1068*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_fec_controller_override.h" ]
1069*d9f75844SAndroid Build Coastguard Worker    deps = [
1070*d9f75844SAndroid Build Coastguard Worker      ":fec_controller_api",
1071*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1072*d9f75844SAndroid Build Coastguard Worker    ]
1073*d9f75844SAndroid Build Coastguard Worker  }
1074*d9f75844SAndroid Build Coastguard Worker
1075*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_frame_encryptor") {
1076*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1077*d9f75844SAndroid Build Coastguard Worker    testonly = true
1078*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_frame_encryptor.h" ]
1079*d9f75844SAndroid Build Coastguard Worker    deps = [
1080*d9f75844SAndroid Build Coastguard Worker      # For api/crypto/frame_encryptor_interface.h
1081*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1082*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1083*d9f75844SAndroid Build Coastguard Worker      "crypto:frame_encryptor_interface",
1084*d9f75844SAndroid Build Coastguard Worker    ]
1085*d9f75844SAndroid Build Coastguard Worker  }
1086*d9f75844SAndroid Build Coastguard Worker
1087*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_frame_decryptor") {
1088*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1089*d9f75844SAndroid Build Coastguard Worker    testonly = true
1090*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_frame_decryptor.h" ]
1091*d9f75844SAndroid Build Coastguard Worker    deps = [
1092*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1093*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1094*d9f75844SAndroid Build Coastguard Worker      "crypto:frame_decryptor_interface",
1095*d9f75844SAndroid Build Coastguard Worker    ]
1096*d9f75844SAndroid Build Coastguard Worker  }
1097*d9f75844SAndroid Build Coastguard Worker
1098*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_encoder_selector") {
1099*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1100*d9f75844SAndroid Build Coastguard Worker    testonly = true
1101*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_encoder_selector.h" ]
1102*d9f75844SAndroid Build Coastguard Worker    deps = [
1103*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1104*d9f75844SAndroid Build Coastguard Worker      "../api/video_codecs:video_codecs_api",
1105*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1106*d9f75844SAndroid Build Coastguard Worker    ]
1107*d9f75844SAndroid Build Coastguard Worker  }
1108*d9f75844SAndroid Build Coastguard Worker
1109*d9f75844SAndroid Build Coastguard Worker  rtc_library("fake_frame_encryptor") {
1110*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1111*d9f75844SAndroid Build Coastguard Worker    testonly = true
1112*d9f75844SAndroid Build Coastguard Worker    sources = [
1113*d9f75844SAndroid Build Coastguard Worker      "test/fake_frame_encryptor.cc",
1114*d9f75844SAndroid Build Coastguard Worker      "test/fake_frame_encryptor.h",
1115*d9f75844SAndroid Build Coastguard Worker    ]
1116*d9f75844SAndroid Build Coastguard Worker    deps = [
1117*d9f75844SAndroid Build Coastguard Worker      ":array_view",
1118*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1119*d9f75844SAndroid Build Coastguard Worker      ":make_ref_counted",
1120*d9f75844SAndroid Build Coastguard Worker      ":rtp_parameters",
1121*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:checks",
1122*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:refcount",
1123*d9f75844SAndroid Build Coastguard Worker      "crypto:frame_encryptor_interface",
1124*d9f75844SAndroid Build Coastguard Worker    ]
1125*d9f75844SAndroid Build Coastguard Worker  }
1126*d9f75844SAndroid Build Coastguard Worker
1127*d9f75844SAndroid Build Coastguard Worker  rtc_library("fake_frame_decryptor") {
1128*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1129*d9f75844SAndroid Build Coastguard Worker    testonly = true
1130*d9f75844SAndroid Build Coastguard Worker    sources = [
1131*d9f75844SAndroid Build Coastguard Worker      "test/fake_frame_decryptor.cc",
1132*d9f75844SAndroid Build Coastguard Worker      "test/fake_frame_decryptor.h",
1133*d9f75844SAndroid Build Coastguard Worker    ]
1134*d9f75844SAndroid Build Coastguard Worker    deps = [
1135*d9f75844SAndroid Build Coastguard Worker      ":array_view",
1136*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1137*d9f75844SAndroid Build Coastguard Worker      ":make_ref_counted",
1138*d9f75844SAndroid Build Coastguard Worker      ":rtp_parameters",
1139*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:checks",
1140*d9f75844SAndroid Build Coastguard Worker      "crypto:frame_decryptor_interface",
1141*d9f75844SAndroid Build Coastguard Worker    ]
1142*d9f75844SAndroid Build Coastguard Worker  }
1143*d9f75844SAndroid Build Coastguard Worker
1144*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_media_stream_interface") {
1145*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1146*d9f75844SAndroid Build Coastguard Worker    testonly = true
1147*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_media_stream_interface.h" ]
1148*d9f75844SAndroid Build Coastguard Worker
1149*d9f75844SAndroid Build Coastguard Worker    deps = [
1150*d9f75844SAndroid Build Coastguard Worker      ":media_stream_interface",
1151*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1152*d9f75844SAndroid Build Coastguard Worker    ]
1153*d9f75844SAndroid Build Coastguard Worker  }
1154*d9f75844SAndroid Build Coastguard Worker
1155*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_packet_socket_factory") {
1156*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1157*d9f75844SAndroid Build Coastguard Worker    testonly = true
1158*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_packet_socket_factory.h" ]
1159*d9f75844SAndroid Build Coastguard Worker
1160*d9f75844SAndroid Build Coastguard Worker    deps = [
1161*d9f75844SAndroid Build Coastguard Worker      ":packet_socket_factory",
1162*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1163*d9f75844SAndroid Build Coastguard Worker    ]
1164*d9f75844SAndroid Build Coastguard Worker  }
1165*d9f75844SAndroid Build Coastguard Worker
1166*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_peerconnectioninterface") {
1167*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1168*d9f75844SAndroid Build Coastguard Worker    testonly = true
1169*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_peerconnectioninterface.h" ]
1170*d9f75844SAndroid Build Coastguard Worker
1171*d9f75844SAndroid Build Coastguard Worker    deps = [
1172*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1173*d9f75844SAndroid Build Coastguard Worker      "../api:scoped_refptr",
1174*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:refcount",
1175*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1176*d9f75844SAndroid Build Coastguard Worker    ]
1177*d9f75844SAndroid Build Coastguard Worker  }
1178*d9f75844SAndroid Build Coastguard Worker
1179*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_peer_connection_factory_interface") {
1180*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1181*d9f75844SAndroid Build Coastguard Worker    testonly = true
1182*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_peer_connection_factory_interface.h" ]
1183*d9f75844SAndroid Build Coastguard Worker
1184*d9f75844SAndroid Build Coastguard Worker    deps = [
1185*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1186*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1187*d9f75844SAndroid Build Coastguard Worker    ]
1188*d9f75844SAndroid Build Coastguard Worker  }
1189*d9f75844SAndroid Build Coastguard Worker
1190*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_session_description_interface") {
1191*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1192*d9f75844SAndroid Build Coastguard Worker    testonly = true
1193*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_session_description_interface.h" ]
1194*d9f75844SAndroid Build Coastguard Worker    deps = [
1195*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1196*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1197*d9f75844SAndroid Build Coastguard Worker    ]
1198*d9f75844SAndroid Build Coastguard Worker  }
1199*d9f75844SAndroid Build Coastguard Worker
1200*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_async_dns_resolver") {
1201*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1202*d9f75844SAndroid Build Coastguard Worker    testonly = true
1203*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_async_dns_resolver.h" ]
1204*d9f75844SAndroid Build Coastguard Worker    deps = [
1205*d9f75844SAndroid Build Coastguard Worker      ":async_dns_resolver",
1206*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1207*d9f75844SAndroid Build Coastguard Worker    ]
1208*d9f75844SAndroid Build Coastguard Worker  }
1209*d9f75844SAndroid Build Coastguard Worker
1210*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_rtp") {
1211*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1212*d9f75844SAndroid Build Coastguard Worker    testonly = true
1213*d9f75844SAndroid Build Coastguard Worker    sources = [
1214*d9f75844SAndroid Build Coastguard Worker      "test/mock_rtp_transceiver.h",
1215*d9f75844SAndroid Build Coastguard Worker      "test/mock_rtpreceiver.h",
1216*d9f75844SAndroid Build Coastguard Worker      "test/mock_rtpsender.h",
1217*d9f75844SAndroid Build Coastguard Worker    ]
1218*d9f75844SAndroid Build Coastguard Worker
1219*d9f75844SAndroid Build Coastguard Worker    deps = [
1220*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1221*d9f75844SAndroid Build Coastguard Worker      ":rtp_sender_interface",
1222*d9f75844SAndroid Build Coastguard Worker      "../api/crypto:frame_decryptor_interface",
1223*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1224*d9f75844SAndroid Build Coastguard Worker    ]
1225*d9f75844SAndroid Build Coastguard Worker  }
1226*d9f75844SAndroid Build Coastguard Worker
1227*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_transformable_video_frame") {
1228*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1229*d9f75844SAndroid Build Coastguard Worker    testonly = true
1230*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_transformable_video_frame.h" ]
1231*d9f75844SAndroid Build Coastguard Worker
1232*d9f75844SAndroid Build Coastguard Worker    deps = [
1233*d9f75844SAndroid Build Coastguard Worker      ":frame_transformer_interface",
1234*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1235*d9f75844SAndroid Build Coastguard Worker    ]
1236*d9f75844SAndroid Build Coastguard Worker  }
1237*d9f75844SAndroid Build Coastguard Worker
1238*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_video_bitrate_allocator") {
1239*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1240*d9f75844SAndroid Build Coastguard Worker    testonly = true
1241*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_video_bitrate_allocator.h" ]
1242*d9f75844SAndroid Build Coastguard Worker
1243*d9f75844SAndroid Build Coastguard Worker    deps = [
1244*d9f75844SAndroid Build Coastguard Worker      "../api/video:video_bitrate_allocator",
1245*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1246*d9f75844SAndroid Build Coastguard Worker    ]
1247*d9f75844SAndroid Build Coastguard Worker  }
1248*d9f75844SAndroid Build Coastguard Worker
1249*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_video_bitrate_allocator_factory") {
1250*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1251*d9f75844SAndroid Build Coastguard Worker    testonly = true
1252*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
1253*d9f75844SAndroid Build Coastguard Worker
1254*d9f75844SAndroid Build Coastguard Worker    deps = [
1255*d9f75844SAndroid Build Coastguard Worker      "../api/video:video_bitrate_allocator_factory",
1256*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1257*d9f75844SAndroid Build Coastguard Worker    ]
1258*d9f75844SAndroid Build Coastguard Worker  }
1259*d9f75844SAndroid Build Coastguard Worker
1260*d9f75844SAndroid Build Coastguard Worker  rtc_source_set("mock_video_codec_factory") {
1261*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1262*d9f75844SAndroid Build Coastguard Worker    testonly = true
1263*d9f75844SAndroid Build Coastguard Worker    sources = [
1264*d9f75844SAndroid Build Coastguard Worker      "test/mock_video_decoder_factory.h",
1265*d9f75844SAndroid Build Coastguard Worker      "test/mock_video_encoder_factory.h",
1266*d9f75844SAndroid Build Coastguard Worker    ]
1267*d9f75844SAndroid Build Coastguard Worker
1268*d9f75844SAndroid Build Coastguard Worker    deps = [
1269*d9f75844SAndroid Build Coastguard Worker      "../api/video_codecs:video_codecs_api",
1270*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1271*d9f75844SAndroid Build Coastguard Worker    ]
1272*d9f75844SAndroid Build Coastguard Worker  }
1273*d9f75844SAndroid Build Coastguard Worker
1274*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_video_decoder") {
1275*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1276*d9f75844SAndroid Build Coastguard Worker    testonly = true
1277*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_video_decoder.h" ]
1278*d9f75844SAndroid Build Coastguard Worker
1279*d9f75844SAndroid Build Coastguard Worker    deps = [
1280*d9f75844SAndroid Build Coastguard Worker      "../api/video_codecs:video_codecs_api",
1281*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1282*d9f75844SAndroid Build Coastguard Worker    ]
1283*d9f75844SAndroid Build Coastguard Worker  }
1284*d9f75844SAndroid Build Coastguard Worker
1285*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_video_encoder") {
1286*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1287*d9f75844SAndroid Build Coastguard Worker    testonly = true
1288*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_video_encoder.h" ]
1289*d9f75844SAndroid Build Coastguard Worker
1290*d9f75844SAndroid Build Coastguard Worker    deps = [
1291*d9f75844SAndroid Build Coastguard Worker      "../api/video_codecs:video_codecs_api",
1292*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1293*d9f75844SAndroid Build Coastguard Worker    ]
1294*d9f75844SAndroid Build Coastguard Worker  }
1295*d9f75844SAndroid Build Coastguard Worker
1296*d9f75844SAndroid Build Coastguard Worker  rtc_library("mock_video_track") {
1297*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1298*d9f75844SAndroid Build Coastguard Worker    testonly = true
1299*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/mock_video_track.h" ]
1300*d9f75844SAndroid Build Coastguard Worker
1301*d9f75844SAndroid Build Coastguard Worker    deps = [
1302*d9f75844SAndroid Build Coastguard Worker      "../api:media_stream_interface",
1303*d9f75844SAndroid Build Coastguard Worker      "../api:scoped_refptr",
1304*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:refcount",
1305*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1306*d9f75844SAndroid Build Coastguard Worker    ]
1307*d9f75844SAndroid Build Coastguard Worker  }
1308*d9f75844SAndroid Build Coastguard Worker
1309*d9f75844SAndroid Build Coastguard Worker  rtc_library("create_time_controller") {
1310*d9f75844SAndroid Build Coastguard Worker    visibility = [ "*" ]
1311*d9f75844SAndroid Build Coastguard Worker    testonly = true
1312*d9f75844SAndroid Build Coastguard Worker    sources = [
1313*d9f75844SAndroid Build Coastguard Worker      "test/create_time_controller.cc",
1314*d9f75844SAndroid Build Coastguard Worker      "test/create_time_controller.h",
1315*d9f75844SAndroid Build Coastguard Worker    ]
1316*d9f75844SAndroid Build Coastguard Worker
1317*d9f75844SAndroid Build Coastguard Worker    deps = [
1318*d9f75844SAndroid Build Coastguard Worker      ":callfactory_api",
1319*d9f75844SAndroid Build Coastguard Worker      ":time_controller",
1320*d9f75844SAndroid Build Coastguard Worker      "../call",
1321*d9f75844SAndroid Build Coastguard Worker      "../call:call_interfaces",
1322*d9f75844SAndroid Build Coastguard Worker      "../call:rtp_interfaces",
1323*d9f75844SAndroid Build Coastguard Worker      "../test/time_controller",
1324*d9f75844SAndroid Build Coastguard Worker    ]
1325*d9f75844SAndroid Build Coastguard Worker  }
1326*d9f75844SAndroid Build Coastguard Worker
1327*d9f75844SAndroid Build Coastguard Worker  rtc_library("rtc_api_unittests") {
1328*d9f75844SAndroid Build Coastguard Worker    testonly = true
1329*d9f75844SAndroid Build Coastguard Worker
1330*d9f75844SAndroid Build Coastguard Worker    sources = [
1331*d9f75844SAndroid Build Coastguard Worker      "array_view_unittest.cc",
1332*d9f75844SAndroid Build Coastguard Worker      "field_trials_unittest.cc",
1333*d9f75844SAndroid Build Coastguard Worker      "function_view_unittest.cc",
1334*d9f75844SAndroid Build Coastguard Worker      "rtc_error_unittest.cc",
1335*d9f75844SAndroid Build Coastguard Worker      "rtc_event_log_output_file_unittest.cc",
1336*d9f75844SAndroid Build Coastguard Worker      "rtp_packet_info_unittest.cc",
1337*d9f75844SAndroid Build Coastguard Worker      "rtp_packet_infos_unittest.cc",
1338*d9f75844SAndroid Build Coastguard Worker      "rtp_parameters_unittest.cc",
1339*d9f75844SAndroid Build Coastguard Worker      "scoped_refptr_unittest.cc",
1340*d9f75844SAndroid Build Coastguard Worker      "sequence_checker_unittest.cc",
1341*d9f75844SAndroid Build Coastguard Worker      "test/create_time_controller_unittest.cc",
1342*d9f75844SAndroid Build Coastguard Worker      "test/peerconnection_quality_test_fixture_unittest.cc",
1343*d9f75844SAndroid Build Coastguard Worker    ]
1344*d9f75844SAndroid Build Coastguard Worker
1345*d9f75844SAndroid Build Coastguard Worker    deps = [
1346*d9f75844SAndroid Build Coastguard Worker      ":array_view",
1347*d9f75844SAndroid Build Coastguard Worker      ":create_time_controller",
1348*d9f75844SAndroid Build Coastguard Worker      ":field_trials",
1349*d9f75844SAndroid Build Coastguard Worker      ":field_trials_view",
1350*d9f75844SAndroid Build Coastguard Worker      ":function_view",
1351*d9f75844SAndroid Build Coastguard Worker      ":libjingle_peerconnection_api",
1352*d9f75844SAndroid Build Coastguard Worker      ":peer_connection_quality_test_fixture_api",
1353*d9f75844SAndroid Build Coastguard Worker      ":rtc_error",
1354*d9f75844SAndroid Build Coastguard Worker      ":rtc_event_log_output_file",
1355*d9f75844SAndroid Build Coastguard Worker      ":rtp_packet_info",
1356*d9f75844SAndroid Build Coastguard Worker      ":rtp_parameters",
1357*d9f75844SAndroid Build Coastguard Worker      ":scoped_refptr",
1358*d9f75844SAndroid Build Coastguard Worker      ":sequence_checker",
1359*d9f75844SAndroid Build Coastguard Worker      ":time_controller",
1360*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:buffer",
1361*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:checks",
1362*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:gunit_helpers",
1363*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:platform_thread",
1364*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:rtc_event",
1365*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:rtc_task_queue",
1366*d9f75844SAndroid Build Coastguard Worker      "../rtc_base:task_queue_for_test",
1367*d9f75844SAndroid Build Coastguard Worker      "../rtc_base/containers:flat_set",
1368*d9f75844SAndroid Build Coastguard Worker      "../rtc_base/task_utils:repeating_task",
1369*d9f75844SAndroid Build Coastguard Worker      "../system_wrappers:field_trial",
1370*d9f75844SAndroid Build Coastguard Worker      "../test:field_trial",
1371*d9f75844SAndroid Build Coastguard Worker      "../test:fileutils",
1372*d9f75844SAndroid Build Coastguard Worker      "../test:rtc_expect_death",
1373*d9f75844SAndroid Build Coastguard Worker      "../test:test_support",
1374*d9f75844SAndroid Build Coastguard Worker      "task_queue:task_queue_default_factory_unittests",
1375*d9f75844SAndroid Build Coastguard Worker      "test/pclf:media_configuration",
1376*d9f75844SAndroid Build Coastguard Worker      "test/video:video_frame_writer",
1377*d9f75844SAndroid Build Coastguard Worker      "transport:field_trial_based_config",
1378*d9f75844SAndroid Build Coastguard Worker      "units:time_delta",
1379*d9f75844SAndroid Build Coastguard Worker      "units:timestamp",
1380*d9f75844SAndroid Build Coastguard Worker      "units:units_unittests",
1381*d9f75844SAndroid Build Coastguard Worker      "video:frame_buffer_unittest",
1382*d9f75844SAndroid Build Coastguard Worker      "video:rtp_video_frame_assembler_unittests",
1383*d9f75844SAndroid Build Coastguard Worker      "video:video_unittests",
1384*d9f75844SAndroid Build Coastguard Worker    ]
1385*d9f75844SAndroid Build Coastguard Worker    absl_deps = [
1386*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/strings",
1387*d9f75844SAndroid Build Coastguard Worker      "//third_party/abseil-cpp/absl/types:optional",
1388*d9f75844SAndroid Build Coastguard Worker    ]
1389*d9f75844SAndroid Build Coastguard Worker  }
1390*d9f75844SAndroid Build Coastguard Worker
1391*d9f75844SAndroid Build Coastguard Worker  rtc_library("compile_all_headers") {
1392*d9f75844SAndroid Build Coastguard Worker    testonly = true
1393*d9f75844SAndroid Build Coastguard Worker
1394*d9f75844SAndroid Build Coastguard Worker    sources = [ "test/compile_all_headers.cc" ]
1395*d9f75844SAndroid Build Coastguard Worker
1396*d9f75844SAndroid Build Coastguard Worker    deps = [
1397*d9f75844SAndroid Build Coastguard Worker      ":fake_frame_decryptor",
1398*d9f75844SAndroid Build Coastguard Worker      ":fake_frame_encryptor",
1399*d9f75844SAndroid Build Coastguard Worker      ":mock_async_dns_resolver",
1400*d9f75844SAndroid Build Coastguard Worker      ":mock_audio_mixer",
1401*d9f75844SAndroid Build Coastguard Worker      ":mock_audio_sink",
1402*d9f75844SAndroid Build Coastguard Worker      ":mock_data_channel",
1403*d9f75844SAndroid Build Coastguard Worker      ":mock_dtmf_sender",
1404*d9f75844SAndroid Build Coastguard Worker      ":mock_frame_decryptor",
1405*d9f75844SAndroid Build Coastguard Worker      ":mock_frame_encryptor",
1406*d9f75844SAndroid Build Coastguard Worker      ":mock_media_stream_interface",
1407*d9f75844SAndroid Build Coastguard Worker      ":mock_packet_socket_factory",
1408*d9f75844SAndroid Build Coastguard Worker      ":mock_peer_connection_factory_interface",
1409*d9f75844SAndroid Build Coastguard Worker      ":mock_peerconnectioninterface",
1410*d9f75844SAndroid Build Coastguard Worker      ":mock_rtp",
1411*d9f75844SAndroid Build Coastguard Worker      ":mock_session_description_interface",
1412*d9f75844SAndroid Build Coastguard Worker      ":mock_transformable_video_frame",
1413*d9f75844SAndroid Build Coastguard Worker      ":mock_video_bitrate_allocator",
1414*d9f75844SAndroid Build Coastguard Worker      ":mock_video_bitrate_allocator_factory",
1415*d9f75844SAndroid Build Coastguard Worker      ":mock_video_codec_factory",
1416*d9f75844SAndroid Build Coastguard Worker      ":mock_video_decoder",
1417*d9f75844SAndroid Build Coastguard Worker      ":mock_video_encoder",
1418*d9f75844SAndroid Build Coastguard Worker      ":mock_video_track",
1419*d9f75844SAndroid Build Coastguard Worker      ":rtc_api_unittests",
1420*d9f75844SAndroid Build Coastguard Worker      "units:units_unittests",
1421*d9f75844SAndroid Build Coastguard Worker    ]
1422*d9f75844SAndroid Build Coastguard Worker  }
1423*d9f75844SAndroid Build Coastguard Worker}
1424*d9f75844SAndroid Build Coastguard Worker
1425*d9f75844SAndroid Build Coastguard Workerrtc_source_set("field_trials_registry") {
1426*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
1427*d9f75844SAndroid Build Coastguard Worker  sources = [
1428*d9f75844SAndroid Build Coastguard Worker    "field_trials_registry.cc",
1429*d9f75844SAndroid Build Coastguard Worker    "field_trials_registry.h",
1430*d9f75844SAndroid Build Coastguard Worker  ]
1431*d9f75844SAndroid Build Coastguard Worker  deps = [
1432*d9f75844SAndroid Build Coastguard Worker    ":field_trials_view",
1433*d9f75844SAndroid Build Coastguard Worker    "../experiments:registered_field_trials",
1434*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
1435*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/containers:flat_set",
1436*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/system:rtc_export",
1437*d9f75844SAndroid Build Coastguard Worker  ]
1438*d9f75844SAndroid Build Coastguard Worker  absl_deps = [
1439*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/algorithm:container",
1440*d9f75844SAndroid Build Coastguard Worker    "//third_party/abseil-cpp/absl/strings",
1441*d9f75844SAndroid Build Coastguard Worker  ]
1442*d9f75844SAndroid Build Coastguard Worker}
1443*d9f75844SAndroid Build Coastguard Worker
1444*d9f75844SAndroid Build Coastguard Workerrtc_source_set("field_trials_view") {
1445*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
1446*d9f75844SAndroid Build Coastguard Worker  sources = [ "field_trials_view.h" ]
1447*d9f75844SAndroid Build Coastguard Worker  deps = [ "../rtc_base/system:rtc_export" ]
1448*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1449*d9f75844SAndroid Build Coastguard Worker}
1450*d9f75844SAndroid Build Coastguard Worker
1451*d9f75844SAndroid Build Coastguard Workerrtc_source_set("webrtc_key_value_config") {
1452*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
1453*d9f75844SAndroid Build Coastguard Worker  sources = [ "webrtc_key_value_config.h" ]
1454*d9f75844SAndroid Build Coastguard Worker  deps = [ ":field_trials_view" ]
1455*d9f75844SAndroid Build Coastguard Worker}
1456*d9f75844SAndroid Build Coastguard Worker
1457*d9f75844SAndroid Build Coastguard Workerrtc_library("field_trials") {
1458*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
1459*d9f75844SAndroid Build Coastguard Worker  sources = [
1460*d9f75844SAndroid Build Coastguard Worker    "field_trials.cc",
1461*d9f75844SAndroid Build Coastguard Worker    "field_trials.h",
1462*d9f75844SAndroid Build Coastguard Worker  ]
1463*d9f75844SAndroid Build Coastguard Worker  deps = [
1464*d9f75844SAndroid Build Coastguard Worker    ":field_trials_registry",
1465*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:checks",
1466*d9f75844SAndroid Build Coastguard Worker    "../rtc_base/containers:flat_map",
1467*d9f75844SAndroid Build Coastguard Worker    "../system_wrappers:field_trial",
1468*d9f75844SAndroid Build Coastguard Worker  ]
1469*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1470*d9f75844SAndroid Build Coastguard Worker}
1471*d9f75844SAndroid Build Coastguard Worker
1472*d9f75844SAndroid Build Coastguard Workerrtc_library("frame_transformer_factory") {
1473*d9f75844SAndroid Build Coastguard Worker  visibility = [ "*" ]
1474*d9f75844SAndroid Build Coastguard Worker  sources = [
1475*d9f75844SAndroid Build Coastguard Worker    "frame_transformer_factory.cc",
1476*d9f75844SAndroid Build Coastguard Worker    "frame_transformer_factory.h",
1477*d9f75844SAndroid Build Coastguard Worker  ]
1478*d9f75844SAndroid Build Coastguard Worker  deps = [
1479*d9f75844SAndroid Build Coastguard Worker    ":frame_transformer_interface",
1480*d9f75844SAndroid Build Coastguard Worker    ":scoped_refptr",
1481*d9f75844SAndroid Build Coastguard Worker    "../modules/rtp_rtcp",
1482*d9f75844SAndroid Build Coastguard Worker    "../rtc_base:refcount",
1483*d9f75844SAndroid Build Coastguard Worker    "video:encoded_frame",
1484*d9f75844SAndroid Build Coastguard Worker    "video:video_frame_metadata",
1485*d9f75844SAndroid Build Coastguard Worker  ]
1486*d9f75844SAndroid Build Coastguard Worker}
1487