blob: 64028adcd6747da0990064f6f14efe10ede8e73f [file] [log] [blame]
hjonaa32c3e2015-12-14 03:58:111# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 14:58:229import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 12:55:0010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 10:09:3214
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:5316 visibility = [ "*" ]
Dan Minor9c686132018-01-15 15:20:0017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 10:09:3222}
23
ehmaldonado38a21322016-09-02 11:10:3424rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:5325 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:1026 sources = [ "call/audio_sink.h" ]
kjellandera69d9732016-08-31 14:33:0527}
28
Danil Chapovalov082cb562023-10-31 12:51:1629rtc_source_set("enable_media") {
30 visibility = [ "*" ]
31 sources = [
32 "enable_media.cc",
33 "enable_media.h",
34 ]
35 deps = [
36 ":libjingle_peerconnection_api",
37 "../call",
38 "../media:rtc_audio_video",
39 "../pc:media_factory",
Danil Chapovalov93214072023-10-31 18:30:0640 "../rtc_base/system:rtc_export",
Danil Chapovalov680f1032023-11-27 16:56:4941 "environment",
Danil Chapovalov082cb562023-10-31 12:51:1642 ]
43}
44
Danil Chapovalov554f7db2023-11-01 10:08:2045rtc_source_set("enable_media_with_defaults") {
46 visibility = [ "*" ]
47 allow_poison = [
48 "audio_codecs",
Danil Chapovalov9fdceb82023-11-27 09:57:2249 "environment_construction",
Danil Chapovalov554f7db2023-11-01 10:08:2050 "software_video_codecs",
51 ]
52 sources = [
53 "enable_media_with_defaults.cc",
54 "enable_media_with_defaults.h",
55 ]
56 deps = [
57 ":enable_media",
58 ":libjingle_peerconnection_api",
Danil Chapovalov554f7db2023-11-01 10:08:2059 "../rtc_base/system:rtc_export",
Florent Castelli0afde762024-04-19 15:07:0860 "audio:audio_processing",
Danil Chapovalov554f7db2023-11-01 10:08:2061 "audio_codecs:builtin_audio_decoder_factory",
62 "audio_codecs:builtin_audio_encoder_factory",
63 "task_queue:default_task_queue_factory",
64 "video_codecs:builtin_video_decoder_factory",
65 "video_codecs:builtin_video_encoder_factory",
66 ]
67}
68
Danil Chapovalov5bf58062019-06-18 14:43:3769if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 19:32:0470 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 14:43:3771 visibility = [ "*" ]
Danil Chapovalov9fdceb82023-11-27 09:57:2272 allow_poison = [ "environment_construction" ]
Danil Chapovalov5bf58062019-06-18 14:43:3773 sources = [
74 "create_peerconnection_factory.cc",
75 "create_peerconnection_factory.h",
76 ]
77 deps = [
Danil Chapovalov779c9de2023-11-02 16:29:2178 ":enable_media",
Harald Alvestrand3997df32024-04-16 12:34:1379 ":field_trials_view",
Danil Chapovalov5bf58062019-06-18 14:43:3780 ":libjingle_peerconnection_api",
81 ":scoped_refptr",
82 "../api/rtc_event_log:rtc_event_log_factory",
Harald Alvestrandc1e8aeb2022-03-31 19:53:5083 "../pc:peer_connection_factory",
84 "../pc:webrtc_sdp",
Mirko Bonadeie5f4c6b2021-01-15 09:41:0185 "../rtc_base:threading",
Harald Alvestrand3997df32024-04-16 12:34:1386 "../rtc_base/system:rtc_export",
Harald Alvestrandc1e8aeb2022-03-31 19:53:5087 "../stats:rtc_stats",
Florent Castellif4673f92024-04-19 19:46:0388 "audio:audio_device",
Danil Chapovalov5bf58062019-06-18 14:43:3789 "audio:audio_mixer_api",
Florent Castelli0afde762024-04-19 15:07:0890 "audio:audio_processing",
Danil Chapovalov5bf58062019-06-18 14:43:3791 "audio_codecs:audio_codecs_api",
Danil Chapovalov5bf58062019-06-18 14:43:3792 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 14:43:3793 ]
94 }
Mirko Bonadei3cf8f3e2018-11-19 08:17:5195}
96
Markus Handell2a256c82023-02-27 11:41:3997rtc_library("location") {
98 visibility = [ "*" ]
99 deps = [ "../rtc_base/system:rtc_export" ]
100 if (build_with_chromium) {
101 sources = [ "../../webrtc_overrides/api/location.h" ]
102 deps += [ "//base" ]
103 } else {
104 sources = [ "location.h" ]
105 }
106}
107
Mirko Bonadei86d053c2019-10-17 19:32:04108rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 13:27:03109 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 07:40:23110 sources = [
111 "rtp_headers.cc",
112 "rtp_headers.h",
113 ]
114 deps = [
115 ":array_view",
Sebastian Jansson3d61ab12019-06-14 11:35:51116 "units:timestamp",
Chen Xing5d24b162019-06-10 10:59:38117 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 07:40:23118 ]
Mirko Bonadei8b7cfa12020-06-03 19:23:41119 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllerb8389522019-03-19 13:27:03120}
121
Mirko Bonadei86d053c2019-10-17 19:32:04122rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 12:53:42123 visibility = [ "*" ]
124 sources = [
125 "rtp_packet_info.cc",
126 "rtp_packet_info.h",
127 "rtp_packet_infos.h",
128 ]
129 deps = [
130 ":array_view",
Niels Möller7c8c4db2022-06-13 08:36:38131 ":make_ref_counted",
Chen Xingd2a66862019-06-03 12:53:42132 ":refcountedbase",
133 ":rtp_headers",
134 ":scoped_refptr",
Johannes Kron0809e7e2020-01-21 10:54:21135 "../rtc_base/system:rtc_export",
Alessio Bazzica56b96ffe2022-09-20 09:16:16136 "units:time_delta",
Johannes Kronf7de74c2021-04-30 11:10:56137 "units:timestamp",
Chen Xingd2a66862019-06-03 12:53:42138 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41139 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Chen Xingd2a66862019-06-03 12:53:42140}
141
Markus Handell6fa9e682021-10-13 20:50:53142rtc_source_set("video_track_source_constraints") {
143 visibility = [ "*" ]
144 sources = [ "video_track_source_constraints.h" ]
145 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
146}
147
Mirko Bonadei86d053c2019-10-17 19:32:04148rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 08:16:05149 visibility = [ "*" ]
Niels Möllere942b142019-09-17 12:30:41150 sources = [
151 "media_stream_interface.cc",
152 "media_stream_interface.h",
Harald Alvestrand9cb42c82020-10-11 13:03:47153 "media_stream_track.h",
Niels Möllere942b142019-09-17 12:30:41154 "notifier.h",
155 ]
156 deps = [
157 ":audio_options_api",
Niels Möller7c8c4db2022-06-13 08:36:38158 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30159 ":ref_count",
160 ":ref_count",
Niels Möllere942b142019-09-17 12:30:41161 ":rtp_parameters",
162 ":scoped_refptr",
Byoungchan Leeb36f6892022-03-02 20:55:22163 ":sequence_checker",
Markus Handell6fa9e682021-10-13 20:50:53164 ":video_track_source_constraints",
Niels Möllere942b142019-09-17 12:30:41165 "../rtc_base:checks",
Byoungchan Leeb36f6892022-03-02 20:55:22166 "../rtc_base/system:no_unique_address",
Niels Möllere942b142019-09-17 12:30:41167 "../rtc_base/system:rtc_export",
Florent Castelli0afde762024-04-19 15:07:08168 "audio:audio_processing_statistics",
Markus Handell9982efa2019-11-21 10:56:50169 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 12:30:41170 "video:video_frame",
Niels Möllere942b142019-09-17 12:30:41171 ]
Niels Möllerc397fc62022-05-30 09:26:40172 absl_deps = [
173 "//third_party/abseil-cpp/absl/strings",
174 "//third_party/abseil-cpp/absl/types:optional",
175 ]
Niels Möllerc1c62842019-09-17 08:16:05176}
177
Mirko Bonadei01ed3252022-06-17 12:07:28178rtc_library("candidate") {
Mirko Bonadei130f2fd2022-06-17 22:07:14179 visibility = [ "*" ]
180
Mirko Bonadeid151cc62022-06-20 06:35:28181 sources = [
182 "candidate.cc",
183 "candidate.h",
184 ]
Mirko Bonadei01ed3252022-06-17 12:07:28185 deps = [
Tommif2431a92024-02-20 14:27:44186 "../p2p:p2p_constants",
Mirko Bonadei01ed3252022-06-17 12:07:28187 "../rtc_base:checks",
Tommif2431a92024-02-20 14:27:44188 "../rtc_base:crc32",
Mirko Bonadei01ed3252022-06-17 12:07:28189 "../rtc_base:ip_address",
190 "../rtc_base:logging",
191 "../rtc_base:network_constants",
192 "../rtc_base:socket_address",
Florent Castellia138c6c2023-01-04 11:01:09193 "../rtc_base:ssl",
Mirko Bonadei01ed3252022-06-17 12:07:28194 "../rtc_base:stringutils",
195 "../rtc_base/system:rtc_export",
196 ]
Tommi6bf2d312023-09-25 12:05:31197 absl_deps = [
198 "//third_party/abseil-cpp/absl/base:core_headers",
199 "//third_party/abseil-cpp/absl/strings",
200 ]
Mirko Bonadei01ed3252022-06-17 12:07:28201}
202
203rtc_source_set("turn_customizer") {
Mirko Bonadei130f2fd2022-06-17 22:07:14204 visibility = [ "*" ]
Mirko Bonadeid151cc62022-06-20 06:35:28205 sources = [ "turn_customizer.h" ]
Mirko Bonadei9d9c2d52022-10-07 21:47:49206 deps = [ "transport:stun_types" ]
Mirko Bonadei01ed3252022-06-17 12:07:28207}
208
209rtc_source_set("ice_transport_interface") {
Mirko Bonadei130f2fd2022-06-17 22:07:14210 visibility = [ "*" ]
211
Mirko Bonadeid151cc62022-06-20 06:35:28212 sources = [ "ice_transport_interface.h" ]
Mirko Bonadei01ed3252022-06-17 12:07:28213 deps = [
214 ":async_dns_resolver",
215 ":packet_socket_factory",
Harald Alvestrande8a2b3c2023-10-31 13:30:30216 ":ref_count",
Mirko Bonadei01ed3252022-06-17 12:07:28217 ":rtc_error",
218 ":scoped_refptr",
Mirko Bonadei01ed3252022-06-17 12:07:28219 "rtc_event_log:rtc_event_log",
220 ]
221}
222
Mirko Bonadeid151cc62022-06-20 06:35:28223rtc_library("dtls_transport_interface") {
Mirko Bonadei130f2fd2022-06-17 22:07:14224 visibility = [ "*" ]
225
Mirko Bonadeid151cc62022-06-20 06:35:28226 sources = [
227 "dtls_transport_interface.cc",
228 "dtls_transport_interface.h",
229 ]
Mirko Bonadei01ed3252022-06-17 12:07:28230 deps = [
231 ":ice_transport_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30232 ":ref_count",
Mirko Bonadei01ed3252022-06-17 12:07:28233 ":rtc_error",
234 ":scoped_refptr",
Florent Castellia138c6c2023-01-04 11:01:09235 "../rtc_base:ssl",
Mirko Bonadei01ed3252022-06-17 12:07:28236 "../rtc_base/system:rtc_export",
237 ]
238 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
239}
240
Florent Castelliacabb362022-10-18 15:05:16241rtc_library("dtmf_sender_interface") {
242 visibility = [ "*" ]
243
244 sources = [ "dtmf_sender_interface.h" ]
245 deps = [
246 ":media_stream_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30247 ":ref_count",
Florent Castelliacabb362022-10-18 15:05:16248 ]
249}
250
251rtc_library("rtp_sender_interface") {
252 visibility = [ "*" ]
253
254 sources = [
255 "rtp_sender_interface.cc",
256 "rtp_sender_interface.h",
257 ]
258 deps = [
259 ":dtls_transport_interface",
260 ":dtmf_sender_interface",
261 ":frame_transformer_interface",
262 ":media_stream_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30263 ":ref_count",
Florent Castelliacabb362022-10-18 15:05:16264 ":rtc_error",
265 ":rtp_parameters",
266 ":scoped_refptr",
267 "../rtc_base:checks",
Florent Castelliacabb362022-10-18 15:05:16268 "../rtc_base/system:rtc_export",
269 "crypto:frame_encryptor_interface",
270 "video_codecs:video_codecs_api",
271 ]
272 absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ]
273}
274
Mirko Bonadei86d053c2019-10-17 19:32:04275rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53276 visibility = [ "*" ]
kjellanderc76dc952016-06-03 10:09:32277 cflags = []
278 sources = [
Steve Anton10542f22019-01-11 17:11:00279 "data_channel_interface.cc",
280 "data_channel_interface.h",
Steve Anton845bb732017-12-05 20:50:26281 "jsep.cc",
kjellanderc76dc952016-06-03 10:09:32282 "jsep.h",
Steve Anton10542f22019-01-11 17:11:00283 "jsep_ice_candidate.cc",
284 "jsep_ice_candidate.h",
285 "jsep_session_description.h",
Henrik Boström3e6931b2022-11-11 09:07:34286 "legacy_stats_types.cc",
287 "legacy_stats_types.h",
Steve Anton10542f22019-01-11 17:11:00288 "peer_connection_interface.cc",
289 "peer_connection_interface.h",
Steve Anton10542f22019-01-11 17:11:00290 "rtp_receiver_interface.cc",
291 "rtp_receiver_interface.h",
Steve Anton10542f22019-01-11 17:11:00292 "rtp_transceiver_interface.cc",
293 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 06:51:00294 "sctp_transport_interface.cc",
295 "sctp_transport_interface.h",
Henrik Boström831ae4e2020-07-29 10:04:00296 "set_local_description_observer_interface.h",
Steve Anton10542f22019-01-11 17:11:00297 "set_remote_description_observer_interface.h",
Steve Anton10542f22019-01-11 17:11:00298 "uma_metrics.h",
Markus Handelle93fe6c2021-05-20 20:46:31299 "video_track_source_proxy_factory.h",
Florent Castelliacabb362022-10-18 15:05:16300
301 # Remove when downstream has been updated
302 "dtmf_sender_interface.h",
303 "rtp_sender_interface.h",
304 ]
Arthur Sonzogni47faf322023-08-22 09:55:36305 public_deps += [ # no-presubmit-check TODO(webrtc:8603)
Florent Castelliacabb362022-10-18 15:05:16306 # Remove when downstream has been updated
307 ":dtmf_sender_interface",
308 ":rtp_sender_interface",
kjellanderc76dc952016-06-03 10:09:32309 ]
kjellanderc76dc952016-06-03 10:09:32310 deps = [
Patrik Höglund3e113432017-12-15 13:40:10311 ":array_view",
Harald Alvestrand0ccfbd22021-04-08 07:25:04312 ":async_dns_resolver",
Niels Möllera6fe2612018-01-19 10:28:54313 ":audio_options_api",
Mirko Bonadeid151cc62022-06-20 06:35:28314 ":candidate",
315 ":dtls_transport_interface",
Ying Wang0dd1b0a2018-02-20 11:50:27316 ":fec_controller_api",
Jonas Oreland128c4dc2022-03-30 05:57:48317 ":field_trials",
Jonas Orelande62c2f22022-03-29 09:04:48318 ":field_trials_view",
Marina Cioceae3e07bf2020-02-27 15:28:51319 ":frame_transformer_interface",
Mirko Bonadeid151cc62022-06-20 06:35:28320 ":ice_transport_interface",
Niels Möller8366e172018-02-14 11:20:13321 ":libjingle_logging_api",
Niels Möller7c8c4db2022-06-13 08:36:38322 ":make_ref_counted",
Niels Möllere942b142019-09-17 12:30:41323 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 11:48:24324 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 12:35:04325 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 06:37:49326 ":priority",
Harald Alvestrande8a2b3c2023-10-31 13:30:30327 ":ref_count",
Mirko Bonadeifcfeefe2019-09-10 08:51:23328 ":rtc_error",
hbos74e1a4f2016-09-16 06:33:01329 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 12:53:42330 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 11:33:50331 ":rtp_parameters",
Florent Castelliacabb362022-10-18 15:05:16332 ":rtp_sender_interface",
Markus Handell0357b3e2020-03-16 12:40:51333 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 19:26:48334 ":scoped_refptr",
Artem Titov06159aa2021-02-09 22:38:13335 ":sequence_checker",
Mirko Bonadeid151cc62022-06-20 06:35:28336 ":turn_customizer",
Vojin Ilic504fc192021-05-31 12:02:28337 "../call:rtp_interfaces",
Harald Alvestrandfb4ad292024-02-28 11:01:25338 "../media:media_engine",
Harald Alvestrand9a953b22024-01-26 07:11:50339 "../p2p:connection",
Harald Alvestrand3bddaed2024-02-06 22:54:25340 "../p2p:port_allocator",
Mirko Bonadeid151cc62022-06-20 06:35:28341 "../p2p:rtc_p2p",
Danil Chapovalov082cb562023-10-31 12:51:16342 "../pc:media_factory",
Florent Castellied4aadc2022-04-19 15:40:46343 "../rtc_base:copy_on_write_buffer",
Florent Castelli0af55ba2022-04-04 13:06:30344 "../rtc_base:logging",
Florent Castellia138c6c2023-01-04 11:01:09345 "../rtc_base:network",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01346 "../rtc_base:network_constants",
Florent Castellia138c6c2023-01-04 11:01:09347 "../rtc_base:rtc_certificate_generator",
348 "../rtc_base:ssl",
Florent Castelli57aa81b2022-04-04 15:14:02349 "../rtc_base:stringutils",
Henrik Boström4c1e7cc2020-06-11 10:26:53350 "adaptation:resource_adaptation_api",
Gustaf Ullberg2ae140a2018-02-16 12:43:49351 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58352 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 12:42:15353 "crypto:frame_decryptor_interface",
354 "crypto:frame_encryptor_interface",
355 "crypto:options",
Evan Shrubsolea7ecf112022-01-26 17:02:30356 "metronome",
Ivo Creusenc3d1f9b2019-11-01 10:47:51357 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 11:39:25358 "rtc_event_log",
Danil Chapovalov9435c6102019-04-01 08:33:16359 "task_queue",
Per K39ac25d2024-02-07 13:16:20360 "transport:bandwidth_estimation_settings",
Niels Möller0c4f7be2018-05-07 12:01:37361 "transport:bitrate_settings",
Honghai Zhangf8998cf2019-10-14 18:27:50362 "transport:enums",
Sebastian Janssondfce03a2018-05-18 16:05:10363 "transport:network_control",
Per Kjellander2bca0082020-08-28 07:15:15364 "transport:sctp_transport_factory_interface",
Niels Möllera8370302019-09-02 13:16:49365 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 14:50:38366 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 16:15:37367 "units:timestamp",
Niels Möller3a742392018-10-08 09:13:58368 "video:encoded_image",
Harald Alvestrandf33f7a22021-05-09 14:58:57369 "video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 09:15:30370 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38371 "video:video_rtp_headers",
Jonas Oreland65455162022-06-08 09:25:46372 "video_codecs:video_codecs_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58373
374 # Basically, don't add stuff here. You might break sensitive downstream
375 # targets like pnacl. API should not depend on anything outside of this
376 # file, really. All these should arguably go away in time.
Niels Möller6daa2782018-01-23 09:37:42377 "../media:rtc_media_config",
Patrik Höglund3e113432017-12-15 13:40:10378 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01379 "../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01380 "../rtc_base:socket_address",
381 "../rtc_base:threading",
Mirko Bonadei3b56ee72018-10-15 15:15:12382 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 10:09:32383 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41384 absl_deps = [
385 "//third_party/abseil-cpp/absl/algorithm:container",
Mirko Bonadei5c9b7da2022-10-10 08:43:36386 "//third_party/abseil-cpp/absl/base:core_headers",
Florent Castelliacabb362022-10-18 15:05:16387 "//third_party/abseil-cpp/absl/functional:any_invocable",
Mirko Bonadei2dcf3482020-06-05 12:30:41388 "//third_party/abseil-cpp/absl/memory",
389 "//third_party/abseil-cpp/absl/strings",
390 "//third_party/abseil-cpp/absl/types:optional",
391 ]
ossu7bb87ee2017-01-23 12:56:25392}
kjellanderc76dc952016-06-03 10:09:32393
Marina Cioceae3e07bf2020-02-27 15:28:51394rtc_source_set("frame_transformer_interface") {
395 visibility = [ "*" ]
Tony Herrea45c7052024-05-16 11:38:25396 sources = [
397 "frame_transformer_interface.cc",
398 "frame_transformer_interface.h",
399 ]
Marina Cioceae3e07bf2020-02-27 15:28:51400 deps = [
Niels Möller7c8c4db2022-06-13 08:36:38401 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30402 ":ref_count",
Marina Cioceae3e07bf2020-02-27 15:28:51403 ":scoped_refptr",
Marina Cioceae3e07bf2020-02-27 15:28:51404 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 18:01:02405 "video:video_frame_metadata",
Marina Cioceae3e07bf2020-02-27 15:28:51406 ]
407}
408
Mirko Bonadei86d053c2019-10-17 19:32:04409rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 08:05:26410 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 08:51:23411 sources = [
412 "rtc_error.cc",
413 "rtc_error.h",
414 ]
415 deps = [
416 "../rtc_base:checks",
417 "../rtc_base:logging",
418 "../rtc_base:macromagic",
419 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 08:51:23420 ]
Danil Chapovalova2d85e42023-03-20 16:37:22421 absl_deps = [
422 "//third_party/abseil-cpp/absl/strings",
423 "//third_party/abseil-cpp/absl/types:optional",
424 ]
Mirko Bonadei9bc98852019-09-10 08:05:26425}
426
Patrik Höglund662e31f2019-09-05 12:35:04427rtc_source_set("packet_socket_factory") {
428 visibility = [ "*" ]
Harald Alvestrand24510d42023-11-13 11:52:16429 sources = [ "packet_socket_factory.h" ]
Patrik Höglund662e31f2019-09-05 12:35:04430 deps = [
Harald Alvestrand0ccfbd22021-04-08 07:25:04431 ":async_dns_resolver",
Florent Castellia138c6c2023-01-04 11:01:09432 "../rtc_base:async_packet_socket",
Harald Alvestrande6e2f282021-03-24 12:13:28433 "../rtc_base:socket_address",
Patrik Höglund662e31f2019-09-05 12:35:04434 "../rtc_base/system:rtc_export",
435 ]
436}
437
Harald Alvestrand0ccfbd22021-04-08 07:25:04438rtc_source_set("async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 11:43:10439 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04440 sources = [ "async_dns_resolver.h" ]
441 deps = [
Sameer Vijaykarb787e262022-08-11 09:52:57442 "../rtc_base:checks",
Harald Alvestrand0ccfbd22021-04-08 07:25:04443 "../rtc_base:socket_address",
444 "../rtc_base/system:rtc_export",
445 ]
Harald Alvestrand96e18822023-08-30 19:39:05446 absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04447}
448
Harald Alvestrandd6bac612023-10-31 11:42:45449rtc_source_set("ref_count") {
450 visibility = [ "*" ]
451 sources = [ "ref_count.h" ]
452}
453
Mirko Bonadei85340ce2018-11-19 14:51:39454rtc_source_set("scoped_refptr") {
455 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10456 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 14:51:39457}
458
Niels Möller7c8c4db2022-06-13 08:36:38459rtc_source_set("make_ref_counted") {
460 visibility = [ "*" ]
461 sources = [ "make_ref_counted.h" ]
Harald Alvestrande8a2b3c2023-10-31 13:30:30462 deps = [
463 ":ref_count",
464 "../rtc_base:refcount",
465 ]
Niels Möller7c8c4db2022-06-13 08:36:38466}
467
Artem Titovd57628f2019-03-22 11:34:25468rtc_source_set("video_quality_analyzer_api") {
469 visibility = [ "*" ]
470 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10471 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25472
473 deps = [
Artem Titov3b641672020-06-02 15:18:17474 ":array_view",
Artem Titovd57628f2019-03-22 11:34:25475 ":stats_observer_interface",
Jeremy Leconte47302012023-04-14 13:37:54476 "../rtc_base:checks",
Artem Titovd57628f2019-03-22 11:34:25477 "video:encoded_image",
478 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38479 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 11:34:25480 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 12:30:41481 ]
482 absl_deps = [
Artem Titov8a0284e2020-05-29 13:49:44483 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 11:34:25484 "//third_party/abseil-cpp/absl/types:optional",
485 ]
486}
487
Andrey Logvin20f45822020-07-01 08:32:15488rtc_source_set("track_id_stream_info_map") {
Mirko Bonadeif948eb62019-04-05 13:13:23489 visibility = [ "*" ]
Andrey Logvin20f45822020-07-01 08:32:15490 sources = [ "test/track_id_stream_info_map.h" ]
491 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Mirko Bonadeif948eb62019-04-05 13:13:23492}
493
Markus Handell0357b3e2020-03-16 12:40:51494rtc_source_set("rtp_transceiver_direction") {
495 visibility = [ "*" ]
496 sources = [ "rtp_transceiver_direction.h" ]
497}
498
Harald Alvestrandfd5ae7f2020-05-16 06:37:49499rtc_source_set("priority") {
Florent Castelli4e0d46f2021-07-19 11:43:10500 visibility = [ "*" ]
Harald Alvestrandfd5ae7f2020-05-16 06:37:49501 sources = [ "priority.h" ]
502}
503
Mirko Bonadei86d053c2019-10-17 19:32:04504rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 11:33:50505 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 08:45:28506 sources = [
507 "media_types.cc",
508 "media_types.h",
509 "rtp_parameters.cc",
510 "rtp_parameters.h",
511 ]
512 deps = [
513 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 06:37:49514 ":priority",
Markus Handell0357b3e2020-03-16 12:40:51515 ":rtp_transceiver_direction",
Philipp Hanckeb9405c42023-12-07 17:00:47516 "../media:media_constants",
Niels Möller6dcd4dc2019-08-26 08:45:28517 "../rtc_base:checks",
518 "../rtc_base:stringutils",
519 "../rtc_base/system:rtc_export",
Jonas Oreland0deda152022-09-23 10:08:57520 "video:resolution",
Byoungchan Leea1a7c632022-07-05 12:06:28521 "video_codecs:scalability_mode",
Mirko Bonadei2dcf3482020-06-05 12:30:41522 ]
523 absl_deps = [
Byoungchan Leea1a7c632022-07-05 12:06:28524 "//third_party/abseil-cpp/absl/container:inlined_vector",
Markus Handelldfeb0df2020-03-16 21:20:47525 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 08:45:28526 "//third_party/abseil-cpp/absl/types:optional",
527 ]
Niels Möller184b4af2019-08-23 11:33:50528}
529
Taylor Brandstettere3a294c2020-03-23 23:16:58530if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 06:37:49531 java_cpp_enum("priority_enums") {
532 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58533 }
534}
535
Artem Titovd57628f2019-03-22 11:34:25536rtc_source_set("audio_quality_analyzer_api") {
537 visibility = [ "*" ]
538 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10539 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25540
541 deps = [
542 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15543 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 11:34:25544 ]
545}
546
547rtc_source_set("stats_observer_interface") {
548 visibility = [ "*" ]
549 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10550 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25551
Andrey Logvin9b526182020-06-15 16:14:07552 deps = [ ":rtc_stats_api" ]
553
554 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Artem Titovd57628f2019-03-22 11:34:25555}
556
Niels Möllerf47a7242021-11-22 15:07:35557rtc_source_set("peer_network_dependencies") {
558 visibility = [ "*" ]
559 sources = [ "test/peer_network_dependencies.h" ]
560 deps = [
561 ":packet_socket_factory",
Florent Castellia138c6c2023-01-04 11:01:09562 "../rtc_base:network",
Niels Möllerf47a7242021-11-22 15:07:35563 "../rtc_base:threading",
564 ]
565}
566
Artem Titovd57628f2019-03-22 11:34:25567rtc_source_set("peer_connection_quality_test_fixture_api") {
568 visibility = [ "*" ]
569 testonly = true
Jeremy Lecontee91d4bc2022-11-05 11:56:07570 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 11:34:25571
572 deps = [
Artem Titov0d510522022-04-19 11:01:03573 ":array_view",
Artem Titovd57628f2019-03-22 11:34:25574 ":audio_quality_analyzer_api",
Artem Titovd57628f2019-03-22 11:34:25575 ":fec_controller_api",
Artem Titov00202262019-12-04 21:34:41576 ":frame_generator_api",
Artem Titovd57628f2019-03-22 11:34:25577 ":function_view",
578 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49579 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 11:48:24580 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 10:16:35581 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 15:07:35582 ":peer_network_dependencies",
Artem Titovf9ed56b2020-05-11 19:17:25583 ":rtp_parameters",
Artem Titovd57628f2019-03-22 11:34:25584 ":simulated_network_api",
Artem Titova8549212019-08-19 12:38:06585 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15586 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 11:34:25587 ":video_quality_analyzer_api",
Harald Alvestrand794d5992022-12-16 09:54:57588 "../media:media_constants",
Artem Titov7017a132022-04-20 18:57:56589 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09590 "../rtc_base:network",
Florent Castellia138c6c2023-01-04 11:01:09591 "../rtc_base:rtc_certificate_generator",
592 "../rtc_base:ssl",
Artem Titovbccb4522022-06-01 20:32:15593 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01594 "../rtc_base:threading",
Artem Titov72bc2e22022-08-02 12:03:03595 "../test:fileutils",
Artem Titov7e04b492022-03-08 00:26:03596 "audio:audio_mixer_api",
Florent Castelli0afde762024-04-19 15:07:08597 "audio:audio_processing",
Danil Chapovalov9305d112019-09-04 11:16:09598 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 10:58:03599 "task_queue",
Jeremy Lecontee91d4bc2022-11-05 11:56:07600 "test/pclf:media_configuration",
601 "test/pclf:media_quality_test_params",
Jeremy Leconte389228d2022-11-04 13:01:12602 "test/pclf:peer_configurer",
Artem Titov2068d0d2022-10-12 13:04:06603 "test/video:video_frame_writer",
Artem Titovd57628f2019-03-22 11:34:25604 "transport:network_control",
605 "units:time_delta",
Artem Titovb4463ee2019-11-12 16:27:44606 "video:video_frame",
Artem Titovd57628f2019-03-22 11:34:25607 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 12:30:41608 ]
609 absl_deps = [
Jeremy Lecontea3e51df2022-11-10 14:42:53610 "//third_party/abseil-cpp/absl/base:core_headers",
Artem Titovd57628f2019-03-22 11:34:25611 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 12:24:19612 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 11:34:25613 "//third_party/abseil-cpp/absl/types:optional",
614 ]
615}
616
Artem Titov503d7232019-12-04 11:37:13617rtc_source_set("frame_generator_api") {
618 visibility = [ "*" ]
Evan Shrubsole7899e972020-09-28 10:04:11619 sources = [
620 "test/frame_generator_interface.cc",
621 "test/frame_generator_interface.h",
622 ]
Artem Titov503d7232019-12-04 11:37:13623
624 deps = [
625 ":scoped_refptr",
626 "video:video_frame",
Artem Titov503d7232019-12-04 11:37:13627 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41628 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Artem Titov503d7232019-12-04 11:37:13629}
630
Patrik Höglundb6b29e02018-06-21 14:58:01631if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 13:26:50632 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 19:32:04633 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 14:00:37634 visibility = [ "*" ]
635 testonly = true
636 sources = [
637 "test/create_network_emulation_manager.cc",
638 "test/create_network_emulation_manager.h",
639 ]
640 deps = [
Jeremy Leconte242ed952023-12-05 13:47:22641 ":field_trials_view",
Artem Titov7bf8c7f2019-03-15 14:00:37642 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 08:48:17643 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 14:00:37644 ]
645 }
Artem Titovd57628f2019-03-22 11:34:25646
Andrey Logvine7c79fd2021-02-01 09:56:37647 if (!build_with_chromium) {
Artem Titov17d7eb42023-04-26 08:17:19648 rtc_source_set("video_quality_test_fixture_api") {
649 visibility = [ "*" ]
650 testonly = true
651 sources = [ "test/video_quality_test_fixture.h" ]
652 deps = [
653 ":fec_controller_api",
654 ":libjingle_peerconnection_api",
655 ":network_state_predictor_api",
656 ":rtp_parameters",
657 ":simulated_network_api",
658 "../call:fake_network",
659 "../call:rtp_interfaces",
660 "../test:test_common",
661 "../test:video_test_common",
662 "../video/config:encoder_config",
663 "transport:bitrate_settings",
664 "transport:network_control",
665 "video_codecs:video_codecs_api",
666 ]
667 }
668
669 rtc_library("test_dependency_factory") {
670 visibility = [ "*" ]
671 testonly = true
672 sources = [
673 "test/test_dependency_factory.cc",
674 "test/test_dependency_factory.h",
675 ]
676 deps = [
677 ":video_quality_test_fixture_api",
678 "../rtc_base:checks",
679 "../rtc_base:platform_thread_types",
680 ]
681 }
682
Andrey Logvine7c79fd2021-02-01 09:56:37683 rtc_library("create_video_quality_test_fixture_api") {
684 visibility = [ "*" ]
685 testonly = true
686 sources = [
687 "test/create_video_quality_test_fixture.cc",
688 "test/create_video_quality_test_fixture.h",
689 ]
690 deps = [
691 ":fec_controller_api",
692 ":network_state_predictor_api",
693 ":scoped_refptr",
694 ":video_quality_test_fixture_api",
695 "../video:video_quality_test",
696 ]
697 }
Artem Titovd57628f2019-03-22 11:34:25698
Andrey Logvine7c79fd2021-02-01 09:56:37699 rtc_library("create_peerconnection_quality_test_fixture") {
700 visibility = [ "*" ]
701 testonly = true
702 sources = [
703 "test/create_peerconnection_quality_test_fixture.cc",
704 "test/create_peerconnection_quality_test_fixture.h",
705 ]
706
707 deps = [
708 ":audio_quality_analyzer_api",
709 ":peer_connection_quality_test_fixture_api",
710 ":time_controller",
711 ":video_quality_analyzer_api",
712 "../test/pc/e2e:peerconnection_quality_test",
Artem Titov36806052022-09-21 14:08:03713 "test/metrics:global_metrics_logger_and_exporter",
Andrey Logvine7c79fd2021-02-01 09:56:37714 ]
715 }
Artem Titovd57628f2019-03-22 11:34:25716 }
Artem Titov33f9d2b2019-12-05 14:59:00717}
Artem Titov503d7232019-12-04 11:37:13718
Artem Titov33f9d2b2019-12-05 14:59:00719rtc_library("create_frame_generator") {
720 visibility = [ "*" ]
721 testonly = true
722 sources = [
723 "test/create_frame_generator.cc",
724 "test/create_frame_generator.h",
725 ]
726 deps = [
727 ":frame_generator_api",
728 "../rtc_base:checks",
729 "../system_wrappers",
730 "../test:frame_generator_impl",
Danil Chapovalovc230da02024-03-22 13:54:48731 "environment",
732 "environment:environment_factory",
Artem Titov33f9d2b2019-12-05 14:59:00733 ]
Danil Chapovalovc230da02024-03-22 13:54:48734 absl_deps = [
735 "//third_party/abseil-cpp/absl/base:nullability",
736 "//third_party/abseil-cpp/absl/strings:string_view",
737 "//third_party/abseil-cpp/absl/types:optional",
738 ]
Patrik Höglundb6b29e02018-06-21 14:58:01739}
740
Andrey Logvindad6a942020-05-04 17:27:09741rtc_library("create_peer_connection_quality_test_frame_generator") {
742 visibility = [ "*" ]
743 testonly = true
744 sources = [
745 "test/create_peer_connection_quality_test_frame_generator.cc",
746 "test/create_peer_connection_quality_test_frame_generator.h",
747 ]
748 deps = [
749 ":create_frame_generator",
750 ":frame_generator_api",
Andrey Logvin1e83d342020-05-07 07:19:15751 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09752 "../test:fileutils",
Jeremy Leconte0e2cf6c2022-11-04 10:10:42753 "test/pclf:media_configuration",
Andrey Logvindad6a942020-05-04 17:27:09754 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41755 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Andrey Logvindad6a942020-05-04 17:27:09756}
757
Elad Alon80810732017-10-06 11:07:32758rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53759 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10760 sources = [ "rtc_event_log_output.h" ]
Björn Terelius63299a32022-07-05 08:58:52761 absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
Elad Alon80810732017-10-06 11:07:32762}
763
Mirko Bonadei86d053c2019-10-17 19:32:04764rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 11:53:51765 visibility = [ "*" ]
766 sources = [
767 "rtc_event_log_output_file.cc",
768 "rtc_event_log_output_file.h",
769 ]
770
771 deps = [
772 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 11:53:51773 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30774 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 11:53:51775 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 11:39:25776 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 11:53:51777 ]
778}
779
hbos74e1a4f2016-09-16 06:33:01780rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53781 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01782 cflags = []
783 sources = [
Henrik Boström7978cf12024-01-11 10:41:10784 "stats/attribute.h",
Steve Anton10542f22019-01-11 17:11:00785 "stats/rtc_stats.h",
786 "stats/rtc_stats_collector_callback.h",
787 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-16 06:33:01788 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-16 06:33:01789 ]
790
791 deps = [
Niels Möller7c8c4db2022-06-13 08:36:38792 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30793 ":ref_count",
Mirko Bonadeid9708072019-01-25 19:26:48794 ":scoped_refptr",
Tommi86ee89f2021-04-20 14:58:01795 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 15:05:42796 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:12797 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 15:15:12798 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 17:12:23799 "units:timestamp",
hbos74e1a4f2016-09-16 06:33:01800 ]
Philipp Hancke8e7a1052022-10-13 11:14:01801
Henrik Boström7978cf12024-01-11 10:41:10802 absl_deps = [
803 "//third_party/abseil-cpp/absl/types:optional",
804 "//third_party/abseil-cpp/absl/types:variant",
805 ]
hbos74e1a4f2016-09-16 06:33:01806}
807
Mirko Bonadei86d053c2019-10-17 19:32:04808rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 10:28:54809 visibility = [ "*" ]
810 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52811 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54812 "audio_options.h",
813 ]
814
815 deps = [
Yves Gerey3e707812018-11-28 15:47:49816 ":array_view",
Danil Chapovalov21652332018-08-31 08:29:07817 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 18:26:34818 "../rtc_base/system:rtc_export",
Niels Möllera6fe2612018-01-19 10:28:54819 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41820 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllera6fe2612018-01-19 10:28:54821}
822
Mirko Bonadei86d053c2019-10-17 19:32:04823rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53824 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13825 sources = [
Dino Radaković1807d572018-02-22 13:18:06826 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13827 "call/transport.h",
828 ]
Danil Chapovalov5312a8f2021-01-25 16:02:57829 deps = [
Harald Alvestrandb38d9d22023-08-04 09:50:36830 ":array_view",
Danil Chapovalov5312a8f2021-01-25 16:02:57831 ":refcountedbase",
832 ":scoped_refptr",
833 ]
aleloia8eb7562016-11-28 15:02:13834}
nisseb2250e52016-12-02 12:01:14835
Sebastian Jansson6736df12018-11-21 18:18:39836rtc_source_set("bitrate_allocation") {
837 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10838 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 18:18:39839 deps = [
840 "units:data_rate",
841 "units:time_delta",
842 ]
843}
844
Sebastian Janssoncec24332019-12-04 13:26:50845# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 14:58:01846rtc_source_set("simulated_network_api") {
847 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10848 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 13:18:46849 deps = [
Florent Castelli4467ad72022-04-04 13:18:46850 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 10:41:26851 "../rtc_base:random",
Per K0d037df2024-05-07 15:27:54852 "units:data_rate",
Florent Castelli4467ad72022-04-04 13:18:46853 ]
Per K0d037df2024-05-07 15:27:54854 absl_deps = [
855 "//third_party/abseil-cpp/absl/functional:any_invocable",
856 "//third_party/abseil-cpp/absl/types:optional",
857 ]
Patrik Höglundb6b29e02018-06-21 14:58:01858}
859
Sebastian Janssoncec24332019-12-04 13:26:50860# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 14:00:37861rtc_source_set("network_emulation_manager_api") {
862 visibility = [ "*" ]
863 sources = [
Sebastian Janssoncec24332019-12-04 13:26:50864 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 14:00:37865 "test/network_emulation_manager.h",
866 ]
867 deps = [
Artem Titovcf781282020-07-28 11:45:16868 ":array_view",
Niels Möller5e7a3ae2021-09-09 13:54:42869 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 15:07:35870 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 14:00:37871 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 09:12:56872 ":time_controller",
Per K569849e2024-04-29 08:37:37873 "..//test/network:simulated_network",
Björn Tereliusb22cabc2022-06-02 08:51:59874 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09875 "../rtc_base:network",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01876 "../rtc_base:network_constants",
877 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 13:26:50878 "test/network_emulation",
Artem Titov806299e2019-04-12 10:17:19879 "units:data_rate",
880 "units:data_size",
881 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 14:00:37882 ]
883}
884
Sebastian Jansson6ce033a2020-01-22 09:12:56885rtc_source_set("time_controller") {
886 visibility = [ "*" ]
887 sources = [
888 "test/time_controller.cc",
889 "test/time_controller.h",
890 ]
891
892 deps = [
Mirko Bonadeie5f4c6b2021-01-15 09:41:01893 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 09:12:56894 "../rtc_base/synchronization:yield_policy",
895 "../system_wrappers",
896 "task_queue",
897 "units:time_delta",
898 "units:timestamp",
899 ]
900}
901
Ying Wang3b790f32018-01-19 16:58:57902rtc_source_set("fec_controller_api") {
903 visibility = [ "*" ]
904 sources = [
905 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 13:19:43906 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 16:58:57907 ]
908
909 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27910 "../modules:module_fec_api",
Danil Chapovalov55a61892024-01-03 17:39:27911 "environment",
Niels Möller8f7ce222019-03-21 14:43:58912 "video:video_frame_type",
Ying Wang3b790f32018-01-19 16:58:57913 ]
914}
915
Ying Wang0810a7c2019-04-10 11:48:24916rtc_source_set("network_state_predictor_api") {
917 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10918 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 11:48:24919}
920
kwiberg529662a2017-09-04 12:43:17921rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53922 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10923 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 12:43:17924 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42925 "../rtc_base:checks",
926 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17927 ]
928}
929
Niels Möller9155e492017-10-23 09:22:30930rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53931 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10932 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 14:58:01933 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:30934 ":ref_count",
Tommi86ee89f2021-04-20 14:58:01935 "../rtc_base:macromagic",
936 "../rtc_base:refcount",
937 ]
Niels Möller9155e492017-10-23 09:22:30938}
939
Mirko Bonadei86d053c2019-10-17 19:32:04940rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 13:57:03941 visibility = [ "*" ]
942 sources = [
943 "ice_transport_factory.cc",
944 "ice_transport_factory.h",
945 ]
946 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28947 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 13:57:03948 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 08:36:38949 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 10:16:35950 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 13:57:03951 ":scoped_refptr",
Harald Alvestrand9a953b22024-01-26 07:11:50952 "../p2p:connection",
Harald Alvestranda310d782024-01-25 12:27:18953 "../p2p:ice_transport_internal",
954 "../p2p:p2p_constants",
955 "../p2p:p2p_transport_channel",
Harald Alvestrand3bddaed2024-02-06 22:54:25956 "../p2p:port_allocator",
Harald Alvestrand98462622019-01-30 13:57:03957 "../p2p:rtc_p2p",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01958 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 09:33:59959 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 21:07:33960 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 13:57:03961 ]
962}
963
Mirko Bonadei86d053c2019-10-17 19:32:04964rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 09:49:27965 visibility = [ "*" ]
966 sources = [
967 "test/neteq_simulator.cc",
968 "test/neteq_simulator.h",
969 ]
Jakob Ivarssone0f08a32024-04-02 09:58:19970 deps = [ "neteq:neteq_api" ]
Ivo Creusen55de08e2018-09-03 09:49:27971}
972
Artem Titov741daaf2019-03-21 13:37:36973rtc_source_set("function_view") {
974 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10975 sources = [ "function_view.h" ]
976 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 13:37:36977}
978
Artem Titovb586d822021-02-04 14:06:50979rtc_source_set("sequence_checker") {
980 visibility = [ "*" ]
981 sources = [ "sequence_checker.h" ]
982 deps = [
983 "../rtc_base:checks",
984 "../rtc_base:macromagic",
985 "../rtc_base/synchronization:sequence_checker_internal",
986 ]
987}
988
kjellanderfd5b4e92016-06-13 19:08:33989if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37990 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 19:32:04991 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 11:22:52992 visibility = [ "*" ]
993 testonly = true
994 sources = [
995 "test/audioproc_float.cc",
996 "test/audioproc_float.h",
997 ]
998
999 deps = [
Artem Titov94b57c02019-03-21 12:35:101000 "../modules/audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:521001 "../modules/audio_processing:audioproc_f_impl",
Florent Castelli0afde762024-04-19 15:07:081002 "audio:audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:521003 ]
1004 }
Ivo Creusen55de08e2018-09-03 09:49:271005
Mirko Bonadei86d053c2019-10-17 19:32:041006 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 09:49:271007 visibility = [ "*" ]
1008 testonly = true
1009 sources = [
1010 "test/neteq_simulator_factory.cc",
1011 "test/neteq_simulator_factory.h",
1012 ]
1013 deps = [
1014 ":neteq_simulator_api",
1015 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 08:30:581016 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 16:17:091017 "neteq:neteq_api",
Mirko Bonadei2dcf3482020-06-05 12:30:411018 ]
1019 absl_deps = [
Mirko Bonadei2ab97f62019-07-18 11:44:121020 "//third_party/abseil-cpp/absl/flags:flag",
1021 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 09:52:181022 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 14:59:261023 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 09:49:271024 ]
1025 }
Ivo Creusen2cb41052018-03-15 11:22:521026 }
1027
Rasmus Brandt0cedc052018-05-31 10:53:001028 rtc_source_set("simulcast_test_fixture_api") {
1029 visibility = [ "*" ]
1030 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101031 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 10:53:001032 }
1033
Mirko Bonadei86d053c2019-10-17 19:32:041034 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 10:53:001035 visibility = [ "*" ]
1036 testonly = true
1037 sources = [
1038 "test/create_simulcast_test_fixture.cc",
1039 "test/create_simulcast_test_fixture.h",
1040 ]
1041 deps = [
1042 ":simulcast_test_fixture_api",
1043 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 10:53:001044 "video_codecs:video_codecs_api",
1045 ]
Rasmus Brandt0cedc052018-05-31 10:53:001046 }
1047
Sergey Silkin2e1a9a42022-12-15 09:15:181048 rtc_library("videocodec_test_stats_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551049 visibility = [ "*" ]
1050 testonly = true
1051 sources = [
Kári Tristan Helgason169005d2018-05-22 11:34:141052 "test/videocodec_test_stats.cc",
1053 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:551054 ]
1055 deps = [
Sergey Silkin2e1a9a42022-12-15 09:15:181056 "../api/units:data_rate",
1057 "../api/units:frequency",
Jonas Olsson366a50c2018-09-06 11:41:301058 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 14:43:581059 "video:video_frame_type",
Sergey Silkin2e1a9a42022-12-15 09:15:181060 ]
1061 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
1062 }
1063
1064 rtc_library("videocodec_test_fixture_api") {
1065 visibility = [ "*" ]
1066 testonly = true
1067 sources = [ "test/videocodec_test_fixture.h" ]
1068 deps = [
1069 ":videocodec_test_stats_api",
1070 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 09:56:551071 "video_codecs:video_codecs_api",
1072 ]
1073 }
1074
Mirko Bonadei86d053c2019-10-17 19:32:041075 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551076 visibility = [ "*" ]
1077 testonly = true
1078 sources = [
1079 "test/create_videocodec_test_fixture.cc",
1080 "test/create_videocodec_test_fixture.h",
1081 ]
1082 deps = [
1083 ":videocodec_test_fixture_api",
1084 "../modules/video_coding:video_codecs_test_framework",
1085 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 09:56:551086 "video_codecs:video_codecs_api",
1087 ]
Kári Tristan Helgason9d96e922018-05-04 09:56:551088 }
1089
kjellander2f6af9c2017-03-03 06:26:231090 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 11:43:101091 visibility = [ "*" ]
kjellander2f6af9c2017-03-03 06:26:231092 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101093 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-03 06:26:231094
kjellander2f6af9c2017-03-03 06:26:231095 deps = [
jianjun.zhuc0247402017-07-11 13:20:451096 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:491097 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:231098 ]
1099 }
1100
Florent Castelli2b4f5132021-07-16 15:13:541101 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-16 22:48:101102 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 15:13:541103 testonly = true
1104 sources = [ "test/mock_audio_sink.h" ]
1105
1106 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421107 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 15:13:541108 "../test:test_support",
1109 ]
1110 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
1111 }
1112
Steve Antonc49c7d22020-11-05 03:21:491113 rtc_source_set("mock_data_channel") {
1114 visibility = [ "*" ]
1115 testonly = true
1116 sources = [ "test/mock_data_channel.h" ]
1117
1118 deps = [
1119 ":libjingle_peerconnection_api",
1120 "../test:test_support",
1121 ]
1122 }
1123
Florent Castelli8c6d88f2022-05-11 16:33:281124 rtc_source_set("mock_dtmf_sender") {
1125 visibility = [ "*" ]
1126 testonly = true
1127 sources = [ "test/mock_dtmf_sender.h" ]
1128
1129 deps = [
Florent Castelliacabb362022-10-18 15:05:161130 ":dtmf_sender_interface",
Florent Castelli8c6d88f2022-05-11 16:33:281131 ":libjingle_peerconnection_api",
1132 "../test:test_support",
1133 ]
1134 }
1135
Elad Alon45befc52019-07-02 09:20:091136 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 11:43:101137 visibility = [ "*" ]
Elad Alon45befc52019-07-02 09:20:091138 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101139 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 09:20:091140 deps = [
1141 ":fec_controller_api",
1142 "../test:test_support",
1143 ]
1144 }
1145
Mirko Bonadei86d053c2019-10-17 19:32:041146 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101147 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571148 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031149 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571150 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421151 # For api/crypto/frame_encryptor_interface.h
1152 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571153 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151154 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571155 ]
1156 }
1157
Mirko Bonadei86d053c2019-10-17 19:32:041158 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101159 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571160 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031161 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571162 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421163 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571164 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151165 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571166 ]
1167 }
1168
Tony Herre9c6874602024-01-26 10:16:451169 rtc_library("mock_frame_transformer") {
1170 visibility = [ "*" ]
1171 testonly = true
1172 sources = [ "test/mock_frame_transformer.h" ]
1173 deps = [
1174 ":frame_transformer_interface",
1175 "../test:test_support",
1176 ]
1177 }
1178
Jonas Oreland65455162022-06-08 09:25:461179 rtc_library("mock_encoder_selector") {
1180 visibility = [ "*" ]
1181 testonly = true
1182 sources = [ "test/mock_encoder_selector.h" ]
1183 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421184 ":libjingle_peerconnection_api",
1185 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 09:25:461186 "../test:test_support",
1187 ]
1188 }
1189
Mirko Bonadei86d053c2019-10-17 19:32:041190 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101191 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571192 testonly = true
1193 sources = [
1194 "test/fake_frame_encryptor.cc",
1195 "test/fake_frame_encryptor.h",
1196 ]
1197 deps = [
1198 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421199 ":libjingle_peerconnection_api",
1200 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:301201 ":ref_count",
Niels Möller6dcd4dc2019-08-26 08:45:281202 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 16:52:571203 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:121204 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 12:42:151205 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571206 ]
1207 }
1208
Mirko Bonadei86d053c2019-10-17 19:32:041209 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101210 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 21:22:341211 testonly = true
1212 sources = [
1213 "test/fake_frame_decryptor.cc",
1214 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 21:22:341215 ]
1216 deps = [
1217 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421218 ":libjingle_peerconnection_api",
1219 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 08:45:281220 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 21:22:341221 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 12:42:151222 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 21:22:341223 ]
1224 }
1225
Steve Anton60be6a92020-11-05 22:32:181226 rtc_source_set("mock_media_stream_interface") {
1227 visibility = [ "*" ]
1228 testonly = true
1229 sources = [ "test/mock_media_stream_interface.h" ]
1230
1231 deps = [
1232 ":media_stream_interface",
1233 "../test:test_support",
1234 ]
1235 }
1236
Niels Möller573b1452022-06-21 09:37:291237 rtc_source_set("mock_packet_socket_factory") {
1238 visibility = [ "*" ]
1239 testonly = true
1240 sources = [ "test/mock_packet_socket_factory.h" ]
1241
1242 deps = [
1243 ":packet_socket_factory",
1244 "../test:test_support",
1245 ]
1246 }
1247
Jiawei Ou651b92e2018-06-29 22:46:441248 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 21:34:171249 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 22:46:441250 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101251 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 22:46:441252
1253 deps = [
1254 ":libjingle_peerconnection_api",
Harald Alvestrande8a2b3c2023-10-31 13:30:301255 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421256 "../api:scoped_refptr",
1257 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 22:46:441258 "../test:test_support",
1259 ]
1260 }
1261
Steve Antonf84ab8e2020-06-03 16:18:241262 rtc_source_set("mock_peer_connection_factory_interface") {
1263 visibility = [ "*" ]
1264 testonly = true
1265 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1266
1267 deps = [
1268 ":libjingle_peerconnection_api",
1269 "../test:test_support",
1270 ]
1271 }
1272
Harald Alvestrand98fe9852022-10-24 09:43:221273 rtc_source_set("mock_session_description_interface") {
1274 visibility = [ "*" ]
1275 testonly = true
1276 sources = [ "test/mock_session_description_interface.h" ]
1277 deps = [
1278 ":libjingle_peerconnection_api",
1279 "../test:test_support",
1280 ]
1281 }
1282
Mirko Bonadei26e5a822023-11-14 13:57:231283 rtc_source_set("mock_transformable_frame") {
1284 visibility = [ "*" ]
1285 testonly = true
1286 sources = [ "test/mock_transformable_frame.h" ]
1287 deps = [
1288 ":array_view",
1289 ":frame_transformer_interface",
1290 "../test:test_support",
1291 "units:timestamp",
1292 ]
1293 }
1294
Harald Alvestrand0ccfbd22021-04-08 07:25:041295 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 11:43:101296 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:041297 testonly = true
1298 sources = [ "test/mock_async_dns_resolver.h" ]
1299 deps = [
1300 ":async_dns_resolver",
1301 "../test:test_support",
1302 ]
1303 }
1304
Patrik Höglund4b9e6ba2017-12-19 09:32:111305 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 22:37:221306 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 09:32:111307 testonly = true
1308 sources = [
Steve Anton43ef5d92020-11-05 22:37:221309 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 09:32:111310 "test/mock_rtpreceiver.h",
1311 "test/mock_rtpsender.h",
1312 ]
1313
1314 deps = [
1315 ":libjingle_peerconnection_api",
Florent Castelliacabb362022-10-18 15:05:161316 ":rtp_sender_interface",
Jack Smithadf35a32022-11-29 14:42:381317 "../api/crypto:frame_decryptor_interface",
Patrik Höglund4b9e6ba2017-12-19 09:32:111318 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:111319 ]
1320 }
1321
Tove Petersson1e2d9512023-03-05 11:03:061322 rtc_source_set("mock_transformable_audio_frame") {
1323 visibility = [ "*" ]
1324 testonly = true
1325 sources = [ "test/mock_transformable_audio_frame.h" ]
1326
1327 deps = [
1328 ":frame_transformer_interface",
1329 "../test:test_support",
1330 ]
1331 }
1332
Marina Cioceabb13f382020-05-15 06:24:171333 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 11:43:101334 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 06:24:171335 testonly = true
1336 sources = [ "test/mock_transformable_video_frame.h" ]
1337
1338 deps = [
1339 ":frame_transformer_interface",
1340 "../test:test_support",
1341 ]
1342 }
1343
Jiawei Ou4206a0a2018-07-20 22:49:431344 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 11:43:101345 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 22:49:431346 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101347 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 22:49:431348
1349 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421350 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 22:49:431351 "../test:test_support",
1352 ]
1353 }
1354
Jiawei Ouc2ebe212018-11-08 18:02:561355 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101356 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 18:02:561357 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101358 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 18:02:561359
1360 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421361 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 18:02:561362 "../test:test_support",
1363 ]
1364 }
1365
Emircan Uysalerdbcac7f2017-10-31 06:10:121366 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101367 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-31 06:10:121368 testonly = true
1369 sources = [
1370 "test/mock_video_decoder_factory.h",
1371 "test/mock_video_encoder_factory.h",
1372 ]
1373
Emircan Uysalerdbcac7f2017-10-31 06:10:121374 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421375 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:121376 "../test:test_support",
Danil Chapovalovc708c002024-01-22 12:17:051377 "environment",
Emircan Uysalerdbcac7f2017-10-31 06:10:121378 ]
1379 }
1380
Mirko Bonadei86d053c2019-10-17 19:32:041381 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 09:55:131382 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 09:55:131383 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031384 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 09:55:131385
1386 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421387 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 09:55:131388 "../test:test_support",
1389 ]
1390 }
1391
Mirko Bonadei86d053c2019-10-17 19:32:041392 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 09:55:131393 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 08:01:301394 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031395 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 08:01:301396
1397 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421398 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 08:01:301399 "../test:test_support",
1400 ]
1401 }
1402
Florent Castelli63cc46c2021-07-16 23:32:401403 rtc_library("mock_video_track") {
1404 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-16 23:32:401405 testonly = true
1406 sources = [ "test/mock_video_track.h" ]
1407
1408 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:301409 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421410 "../api:media_stream_interface",
1411 "../api:scoped_refptr",
1412 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-16 23:32:401413 "../test:test_support",
1414 ]
1415 }
1416
Bjorn A Mellemc4f86542019-11-21 18:37:181417 rtc_library("create_time_controller") {
1418 visibility = [ "*" ]
1419 testonly = true
1420 sources = [
1421 "test/create_time_controller.cc",
1422 "test/create_time_controller.h",
1423 ]
1424
1425 deps = [
Danil Chapovalov4fd1cc72023-11-03 11:51:311426 ":enable_media_with_defaults",
1427 ":libjingle_peerconnection_api",
Bjorn A Mellemc4f86542019-11-21 18:37:181428 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 08:30:071429 "../call",
Sebastian Jansson7aa2edf2020-01-23 09:00:331430 "../call:call_interfaces",
Danil Chapovalov4fd1cc72023-11-03 11:51:311431 "../pc:media_factory",
1432 "../rtc_base:checks",
1433 "../system_wrappers",
Bjorn A Mellemc4f86542019-11-21 18:37:181434 "../test/time_controller",
Danil Chapovalov680f1032023-11-27 16:56:491435 "environment",
Danil Chapovalovabd78142023-12-05 16:11:151436 "environment:environment_factory",
Bjorn A Mellemc4f86542019-11-21 18:37:181437 ]
Danil Chapovalov4fd1cc72023-11-03 11:51:311438 absl_deps = [ "//third_party/abseil-cpp/absl/base:nullability" ]
Bjorn A Mellemc4f86542019-11-21 18:37:181439 }
1440
Mirko Bonadei86d053c2019-10-17 19:32:041441 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 08:41:421442 testonly = true
1443
1444 sources = [
1445 "array_view_unittest.cc",
Tommif7b22c62024-02-15 08:18:341446 "candidate_unittest.cc",
Jonas Oreland128c4dc2022-03-30 05:57:481447 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 13:37:361448 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001449 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 11:53:511450 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 12:53:421451 "rtp_packet_info_unittest.cc",
1452 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001453 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 09:24:431454 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 14:06:501455 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 18:37:181456 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 11:01:031457 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 08:41:421458 ]
1459
Niels Möller2e47f7c2018-10-16 08:41:421460 deps = [
1461 ":array_view",
Tommif7b22c62024-02-15 08:18:341462 ":candidate",
Bjorn A Mellemc4f86542019-11-21 18:37:181463 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 05:57:481464 ":field_trials",
1465 ":field_trials_view",
Artem Titov741daaf2019-03-21 13:37:361466 ":function_view",
Niels Möller2e47f7c2018-10-16 08:41:421467 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 11:01:031468 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 08:51:231469 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 11:53:511470 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 12:53:421471 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 08:45:281472 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 09:24:431473 ":scoped_refptr",
Artem Titovb586d822021-02-04 14:06:501474 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 18:37:181475 ":time_controller",
Tommif7b22c62024-02-15 08:18:341476 "../p2p:rtc_p2p",
Florent Castellif9c59842022-04-19 15:07:231477 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 08:41:421478 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 12:15:081479 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 10:18:281480 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 14:57:521481 "../rtc_base:rtc_event",
Tommif7b22c62024-02-15 08:18:341482 "../rtc_base:ssl",
Artem Titovb586d822021-02-04 14:06:501483 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 13:20:221484 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 18:37:181485 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 05:57:481486 "../system_wrappers:field_trial",
Emil Lundmark2e3069b2022-12-01 15:20:371487 "../test:field_trial",
Niels Möllerd8b9ed72019-05-08 11:53:511488 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 05:57:481489 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 08:41:421490 "../test:test_support",
Danil Chapovalove7b48a12023-11-22 15:01:341491 "environment:environment_unittests",
Danil Chapovalov2684ab32019-02-26 09:18:081492 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 11:56:071493 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 15:04:101494 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 05:57:481495 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 18:37:181496 "units:time_delta",
1497 "units:timestamp",
Niels Möller2e47f7c2018-10-16 08:41:421498 "units:units_unittests",
philipel8615bf02022-05-05 13:12:131499 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 12:41:231500 "video:rtp_video_frame_assembler_unittests",
Tove Petersson1fccaa42023-02-28 13:07:421501 "video:video_frame_metadata_unittest",
Niels Möller2e47f7c2018-10-16 08:41:421502 ]
Emil Lundmark6bf20cc2022-09-21 13:20:221503 absl_deps = [
1504 "//third_party/abseil-cpp/absl/strings",
1505 "//third_party/abseil-cpp/absl/types:optional",
1506 ]
Niels Möller2e47f7c2018-10-16 08:41:421507 }
Harald Alvestrand3cc45d42019-03-14 04:42:041508
Mirko Bonadei86d053c2019-10-17 19:32:041509 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 04:42:041510 testonly = true
1511
Mirko Bonadeiccbe95f2020-01-21 11:10:101512 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 04:42:041513
1514 deps = [
1515 ":fake_frame_decryptor",
1516 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:041517 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 04:42:041518 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 15:13:541519 ":mock_audio_sink",
Steve Antonc49c7d22020-11-05 03:21:491520 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 16:33:281521 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 04:42:041522 ":mock_frame_decryptor",
1523 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 22:32:181524 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 09:37:291525 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 16:18:241526 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 04:42:041527 ":mock_peerconnectioninterface",
1528 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:221529 ":mock_session_description_interface",
Tove Petersson1e2d9512023-03-05 11:03:061530 ":mock_transformable_audio_frame",
Mirko Bonadei26e5a822023-11-14 13:57:231531 ":mock_transformable_frame",
Marina Cioceabb13f382020-05-15 06:24:171532 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 04:42:041533 ":mock_video_bitrate_allocator",
1534 ":mock_video_bitrate_allocator_factory",
1535 ":mock_video_codec_factory",
1536 ":mock_video_decoder",
1537 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-16 23:32:401538 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 04:42:041539 ":rtc_api_unittests",
1540 "units:units_unittests",
1541 ]
1542 }
kjellanderfd5b4e92016-06-13 19:08:331543}
Jonas Orelanded99dae2022-03-09 08:28:101544
Emil Lundmark1c8103d2022-09-21 13:20:221545rtc_source_set("field_trials_registry") {
1546 visibility = [ "*" ]
1547 sources = [
1548 "field_trials_registry.cc",
1549 "field_trials_registry.h",
1550 ]
1551 deps = [
1552 ":field_trials_view",
1553 "../experiments:registered_field_trials",
1554 "../rtc_base:checks",
Emil Lundmark9109e852023-02-28 12:57:011555 "../rtc_base:logging",
Emil Lundmark1c8103d2022-09-21 13:20:221556 "../rtc_base/containers:flat_set",
1557 "../rtc_base/system:rtc_export",
1558 ]
1559 absl_deps = [
1560 "//third_party/abseil-cpp/absl/algorithm:container",
1561 "//third_party/abseil-cpp/absl/strings",
1562 ]
1563}
1564
Jonas Orelande62c2f22022-03-29 09:04:481565rtc_source_set("field_trials_view") {
1566 visibility = [ "*" ]
1567 sources = [ "field_trials_view.h" ]
1568 deps = [ "../rtc_base/system:rtc_export" ]
1569 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1570}
1571
Jonas Orelanded99dae2022-03-09 08:28:101572rtc_source_set("webrtc_key_value_config") {
1573 visibility = [ "*" ]
1574 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 09:04:481575 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 08:28:101576}
Jonas Oreland128c4dc2022-03-30 05:57:481577
1578rtc_library("field_trials") {
1579 visibility = [ "*" ]
1580 sources = [
1581 "field_trials.cc",
1582 "field_trials.h",
1583 ]
1584 deps = [
Emil Lundmark1c8103d2022-09-21 13:20:221585 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 05:57:481586 "../rtc_base:checks",
1587 "../rtc_base/containers:flat_map",
1588 "../system_wrappers:field_trial",
1589 ]
1590 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1591}
Harald Alvestrand5c4509a2022-11-25 10:03:341592
1593rtc_library("frame_transformer_factory") {
1594 visibility = [ "*" ]
1595 sources = [
1596 "frame_transformer_factory.cc",
1597 "frame_transformer_factory.h",
1598 ]
1599 deps = [
1600 ":frame_transformer_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:301601 ":ref_count",
Harald Alvestrand5c4509a2022-11-25 10:03:341602 ":scoped_refptr",
Tove Petersson1e2d9512023-03-05 11:03:061603 "../audio:audio",
Harald Alvestrand5c4509a2022-11-25 10:03:341604 "../modules/rtp_rtcp",
Harald Alvestrand5c4509a2022-11-25 10:03:341605 "video:encoded_frame",
1606 "video:video_frame_metadata",
1607 ]
1608}