blob: c68e319da74c60b58c8b4512ad0e218a88debed6 [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",
Florent Castelli3ffa0e82024-05-20 09:57:05118 "//third_party/abseil-cpp/absl/types:optional",
Niels Mölleref1052a2019-03-20 07:40:23119 ]
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",
Florent Castelli99c519b2024-05-23 11:21:53138 "//third_party/abseil-cpp/absl/types:optional",
Chen Xingd2a66862019-06-03 12:53:42139 ]
140}
141
Markus Handell6fa9e682021-10-13 20:50:53142rtc_source_set("video_track_source_constraints") {
143 visibility = [ "*" ]
144 sources = [ "video_track_source_constraints.h" ]
Florent Castelli99c519b2024-05-23 11:21:53145 deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Markus Handell6fa9e682021-10-13 20:50:53146}
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",
Florent Castelli99c519b2024-05-23 11:21:53171 "//third_party/abseil-cpp/absl/strings:string_view",
Niels Möllerc397fc62022-05-30 09:26:40172 "//third_party/abseil-cpp/absl/types:optional",
173 ]
Niels Möllerc1c62842019-09-17 08:16:05174}
175
Mirko Bonadei01ed3252022-06-17 12:07:28176rtc_library("candidate") {
Mirko Bonadei130f2fd2022-06-17 22:07:14177 visibility = [ "*" ]
178
Mirko Bonadeid151cc62022-06-20 06:35:28179 sources = [
180 "candidate.cc",
181 "candidate.h",
182 ]
Mirko Bonadei01ed3252022-06-17 12:07:28183 deps = [
Tommif2431a92024-02-20 14:27:44184 "../p2p:p2p_constants",
Mirko Bonadei01ed3252022-06-17 12:07:28185 "../rtc_base:checks",
Tommif2431a92024-02-20 14:27:44186 "../rtc_base:crc32",
Philipp Hancke41586782024-06-06 14:31:07187 "../rtc_base:crypto_random",
Mirko Bonadei01ed3252022-06-17 12:07:28188 "../rtc_base:ip_address",
189 "../rtc_base:logging",
190 "../rtc_base:network_constants",
191 "../rtc_base:socket_address",
192 "../rtc_base:stringutils",
193 "../rtc_base/system:rtc_export",
Tommi6bf2d312023-09-25 12:05:31194 "//third_party/abseil-cpp/absl/base:core_headers",
Florent Castelli99c519b2024-05-23 11:21:53195 "//third_party/abseil-cpp/absl/strings:string_view",
Tommi6bf2d312023-09-25 12:05:31196 ]
Mirko Bonadei01ed3252022-06-17 12:07:28197}
198
199rtc_source_set("turn_customizer") {
Mirko Bonadei130f2fd2022-06-17 22:07:14200 visibility = [ "*" ]
Mirko Bonadeid151cc62022-06-20 06:35:28201 sources = [ "turn_customizer.h" ]
Mirko Bonadei9d9c2d52022-10-07 21:47:49202 deps = [ "transport:stun_types" ]
Mirko Bonadei01ed3252022-06-17 12:07:28203}
204
205rtc_source_set("ice_transport_interface") {
Mirko Bonadei130f2fd2022-06-17 22:07:14206 visibility = [ "*" ]
207
Mirko Bonadeid151cc62022-06-20 06:35:28208 sources = [ "ice_transport_interface.h" ]
Mirko Bonadei01ed3252022-06-17 12:07:28209 deps = [
210 ":async_dns_resolver",
211 ":packet_socket_factory",
Harald Alvestrande8a2b3c2023-10-31 13:30:30212 ":ref_count",
Mirko Bonadei01ed3252022-06-17 12:07:28213 ":rtc_error",
214 ":scoped_refptr",
Mirko Bonadei01ed3252022-06-17 12:07:28215 "rtc_event_log:rtc_event_log",
216 ]
217}
218
Mirko Bonadeid151cc62022-06-20 06:35:28219rtc_library("dtls_transport_interface") {
Mirko Bonadei130f2fd2022-06-17 22:07:14220 visibility = [ "*" ]
221
Mirko Bonadeid151cc62022-06-20 06:35:28222 sources = [
223 "dtls_transport_interface.cc",
224 "dtls_transport_interface.h",
225 ]
Mirko Bonadei01ed3252022-06-17 12:07:28226 deps = [
227 ":ice_transport_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30228 ":ref_count",
Mirko Bonadei01ed3252022-06-17 12:07:28229 ":rtc_error",
230 ":scoped_refptr",
Florent Castellia138c6c2023-01-04 11:01:09231 "../rtc_base:ssl",
Mirko Bonadei01ed3252022-06-17 12:07:28232 "../rtc_base/system:rtc_export",
Florent Castelli99c519b2024-05-23 11:21:53233 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadei01ed3252022-06-17 12:07:28234 ]
Mirko Bonadei01ed3252022-06-17 12:07:28235}
236
Florent Castelliacabb362022-10-18 15:05:16237rtc_library("dtmf_sender_interface") {
238 visibility = [ "*" ]
239
240 sources = [ "dtmf_sender_interface.h" ]
241 deps = [
242 ":media_stream_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30243 ":ref_count",
Florent Castelliacabb362022-10-18 15:05:16244 ]
245}
246
247rtc_library("rtp_sender_interface") {
248 visibility = [ "*" ]
249
250 sources = [
251 "rtp_sender_interface.cc",
252 "rtp_sender_interface.h",
253 ]
254 deps = [
255 ":dtls_transport_interface",
256 ":dtmf_sender_interface",
257 ":frame_transformer_interface",
258 ":media_stream_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:30259 ":ref_count",
Florent Castelliacabb362022-10-18 15:05:16260 ":rtc_error",
261 ":rtp_parameters",
262 ":scoped_refptr",
263 "../rtc_base:checks",
Florent Castelliacabb362022-10-18 15:05:16264 "../rtc_base/system:rtc_export",
265 "crypto:frame_encryptor_interface",
266 "video_codecs:video_codecs_api",
Florent Castelli99c519b2024-05-23 11:21:53267 "//third_party/abseil-cpp/absl/functional:any_invocable",
Florent Castelliacabb362022-10-18 15:05:16268 ]
Florent Castelliacabb362022-10-18 15:05:16269}
270
Mirko Bonadei86d053c2019-10-17 19:32:04271rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53272 visibility = [ "*" ]
kjellanderc76dc952016-06-03 10:09:32273 cflags = []
274 sources = [
Steve Anton10542f22019-01-11 17:11:00275 "data_channel_interface.cc",
276 "data_channel_interface.h",
Steve Anton845bb732017-12-05 20:50:26277 "jsep.cc",
kjellanderc76dc952016-06-03 10:09:32278 "jsep.h",
Steve Anton10542f22019-01-11 17:11:00279 "jsep_ice_candidate.cc",
280 "jsep_ice_candidate.h",
281 "jsep_session_description.h",
Henrik Boström3e6931b2022-11-11 09:07:34282 "legacy_stats_types.cc",
283 "legacy_stats_types.h",
Steve Anton10542f22019-01-11 17:11:00284 "peer_connection_interface.cc",
285 "peer_connection_interface.h",
Steve Anton10542f22019-01-11 17:11:00286 "rtp_receiver_interface.cc",
287 "rtp_receiver_interface.h",
Steve Anton10542f22019-01-11 17:11:00288 "rtp_transceiver_interface.cc",
289 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 06:51:00290 "sctp_transport_interface.cc",
291 "sctp_transport_interface.h",
Henrik Boström831ae4e2020-07-29 10:04:00292 "set_local_description_observer_interface.h",
Steve Anton10542f22019-01-11 17:11:00293 "set_remote_description_observer_interface.h",
Steve Anton10542f22019-01-11 17:11:00294 "uma_metrics.h",
Markus Handelle93fe6c2021-05-20 20:46:31295 "video_track_source_proxy_factory.h",
Florent Castelliacabb362022-10-18 15:05:16296
297 # Remove when downstream has been updated
298 "dtmf_sender_interface.h",
299 "rtp_sender_interface.h",
300 ]
Arthur Sonzogni47faf322023-08-22 09:55:36301 public_deps += [ # no-presubmit-check TODO(webrtc:8603)
Florent Castelliacabb362022-10-18 15:05:16302 # Remove when downstream has been updated
303 ":dtmf_sender_interface",
304 ":rtp_sender_interface",
kjellanderc76dc952016-06-03 10:09:32305 ]
kjellanderc76dc952016-06-03 10:09:32306 deps = [
Patrik Höglund3e113432017-12-15 13:40:10307 ":array_view",
Harald Alvestrand0ccfbd22021-04-08 07:25:04308 ":async_dns_resolver",
Niels Möllera6fe2612018-01-19 10:28:54309 ":audio_options_api",
Mirko Bonadeid151cc62022-06-20 06:35:28310 ":candidate",
311 ":dtls_transport_interface",
Ying Wang0dd1b0a2018-02-20 11:50:27312 ":fec_controller_api",
Jonas Oreland128c4dc2022-03-30 05:57:48313 ":field_trials",
Jonas Orelande62c2f22022-03-29 09:04:48314 ":field_trials_view",
Marina Cioceae3e07bf2020-02-27 15:28:51315 ":frame_transformer_interface",
Mirko Bonadeid151cc62022-06-20 06:35:28316 ":ice_transport_interface",
Niels Möller8366e172018-02-14 11:20:13317 ":libjingle_logging_api",
Niels Möller7c8c4db2022-06-13 08:36:38318 ":make_ref_counted",
Niels Möllere942b142019-09-17 12:30:41319 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 11:48:24320 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 12:35:04321 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 06:37:49322 ":priority",
Harald Alvestrande8a2b3c2023-10-31 13:30:30323 ":ref_count",
Mirko Bonadeifcfeefe2019-09-10 08:51:23324 ":rtc_error",
hbos74e1a4f2016-09-16 06:33:01325 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 12:53:42326 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 11:33:50327 ":rtp_parameters",
Florent Castelliacabb362022-10-18 15:05:16328 ":rtp_sender_interface",
Markus Handell0357b3e2020-03-16 12:40:51329 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 19:26:48330 ":scoped_refptr",
Artem Titov06159aa2021-02-09 22:38:13331 ":sequence_checker",
Mirko Bonadeid151cc62022-06-20 06:35:28332 ":turn_customizer",
Vojin Ilic504fc192021-05-31 12:02:28333 "../call:rtp_interfaces",
Harald Alvestrandfb4ad292024-02-28 11:01:25334 "../media:media_engine",
Harald Alvestrand9a953b22024-01-26 07:11:50335 "../p2p:connection",
Harald Alvestrand3bddaed2024-02-06 22:54:25336 "../p2p:port_allocator",
Mirko Bonadeid151cc62022-06-20 06:35:28337 "../p2p:rtc_p2p",
Danil Chapovalov082cb562023-10-31 12:51:16338 "../pc:media_factory",
Florent Castellied4aadc2022-04-19 15:40:46339 "../rtc_base:copy_on_write_buffer",
Florent Castelli0af55ba2022-04-04 13:06:30340 "../rtc_base:logging",
Florent Castellia138c6c2023-01-04 11:01:09341 "../rtc_base:network",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01342 "../rtc_base:network_constants",
Florent Castellia138c6c2023-01-04 11:01:09343 "../rtc_base:rtc_certificate_generator",
344 "../rtc_base:ssl",
Philipp Hanckec7fd5af2024-05-17 20:49:05345 "../rtc_base:ssl_adapter",
Florent Castelli57aa81b2022-04-04 15:14:02346 "../rtc_base:stringutils",
Henrik Boström4c1e7cc2020-06-11 10:26:53347 "adaptation:resource_adaptation_api",
Gustaf Ullberg2ae140a2018-02-16 12:43:49348 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58349 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 12:42:15350 "crypto:frame_decryptor_interface",
351 "crypto:frame_encryptor_interface",
352 "crypto:options",
Evan Shrubsolea7ecf112022-01-26 17:02:30353 "metronome",
Ivo Creusenc3d1f9b2019-11-01 10:47:51354 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 11:39:25355 "rtc_event_log",
Danil Chapovalov9435c6102019-04-01 08:33:16356 "task_queue",
Per K39ac25d2024-02-07 13:16:20357 "transport:bandwidth_estimation_settings",
Niels Möller0c4f7be2018-05-07 12:01:37358 "transport:bitrate_settings",
Honghai Zhangf8998cf2019-10-14 18:27:50359 "transport:enums",
Sebastian Janssondfce03a2018-05-18 16:05:10360 "transport:network_control",
Per Kjellander2bca0082020-08-28 07:15:15361 "transport:sctp_transport_factory_interface",
Niels Möllera8370302019-09-02 13:16:49362 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 14:50:38363 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 16:15:37364 "units:timestamp",
Niels Möller3a742392018-10-08 09:13:58365 "video:encoded_image",
Harald Alvestrandf33f7a22021-05-09 14:58:57366 "video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 09:15:30367 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38368 "video:video_rtp_headers",
Jonas Oreland65455162022-06-08 09:25:46369 "video_codecs:video_codecs_api",
Florent Castelli99c519b2024-05-23 11:21:53370 "//third_party/abseil-cpp/absl/algorithm:container",
371 "//third_party/abseil-cpp/absl/base:core_headers",
372 "//third_party/abseil-cpp/absl/functional:any_invocable",
373 "//third_party/abseil-cpp/absl/memory",
374 "//third_party/abseil-cpp/absl/strings:string_view",
375 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 09:19:58376
377 # Basically, don't add stuff here. You might break sensitive downstream
378 # targets like pnacl. API should not depend on anything outside of this
379 # file, really. All these should arguably go away in time.
Niels Möller6daa2782018-01-23 09:37:42380 "../media:rtc_media_config",
Patrik Höglund3e113432017-12-15 13:40:10381 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01382 "../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01383 "../rtc_base:socket_address",
384 "../rtc_base:threading",
Mirko Bonadei3b56ee72018-10-15 15:15:12385 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 10:09:32386 ]
ossu7bb87ee2017-01-23 12:56:25387}
kjellanderc76dc952016-06-03 10:09:32388
Marina Cioceae3e07bf2020-02-27 15:28:51389rtc_source_set("frame_transformer_interface") {
390 visibility = [ "*" ]
Tony Herrea45c7052024-05-16 11:38:25391 sources = [
392 "frame_transformer_interface.cc",
393 "frame_transformer_interface.h",
394 ]
Marina Cioceae3e07bf2020-02-27 15:28:51395 deps = [
Harald Alvestrand6431a642024-06-04 21:29:14396 ":array_view",
Niels Möller7c8c4db2022-06-13 08:36:38397 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30398 ":ref_count",
Marina Cioceae3e07bf2020-02-27 15:28:51399 ":scoped_refptr",
Harald Alvestrand6431a642024-06-04 21:29:14400 "../rtc_base:refcount",
401 "../rtc_base/system:rtc_export",
402 "units:timestamp",
Marina Cioceae3e07bf2020-02-27 15:28:51403 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 18:01:02404 "video:video_frame_metadata",
Harald Alvestrand6431a642024-06-04 21:29:14405 "//third_party/abseil-cpp/absl/types:optional",
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",
Florent Castelli99c519b2024-05-23 11:21:53420 "//third_party/abseil-cpp/absl/strings:string_view",
Danil Chapovalova2d85e42023-03-20 16:37:22421 "//third_party/abseil-cpp/absl/types:optional",
422 ]
Mirko Bonadei9bc98852019-09-10 08:05:26423}
424
Patrik Höglund662e31f2019-09-05 12:35:04425rtc_source_set("packet_socket_factory") {
426 visibility = [ "*" ]
Harald Alvestrand24510d42023-11-13 11:52:16427 sources = [ "packet_socket_factory.h" ]
Patrik Höglund662e31f2019-09-05 12:35:04428 deps = [
Harald Alvestrand0ccfbd22021-04-08 07:25:04429 ":async_dns_resolver",
Florent Castellia138c6c2023-01-04 11:01:09430 "../rtc_base:async_packet_socket",
Harald Alvestrande6e2f282021-03-24 12:13:28431 "../rtc_base:socket_address",
Patrik Höglund662e31f2019-09-05 12:35:04432 "../rtc_base/system:rtc_export",
433 ]
434}
435
Harald Alvestrand0ccfbd22021-04-08 07:25:04436rtc_source_set("async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 11:43:10437 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04438 sources = [ "async_dns_resolver.h" ]
439 deps = [
Sameer Vijaykarb787e262022-08-11 09:52:57440 "../rtc_base:checks",
Harald Alvestrand0ccfbd22021-04-08 07:25:04441 "../rtc_base:socket_address",
442 "../rtc_base/system:rtc_export",
Florent Castelli99c519b2024-05-23 11:21:53443 "//third_party/abseil-cpp/absl/functional:any_invocable",
Harald Alvestrand0ccfbd22021-04-08 07:25:04444 ]
445}
446
Harald Alvestrandd6bac612023-10-31 11:42:45447rtc_source_set("ref_count") {
448 visibility = [ "*" ]
449 sources = [ "ref_count.h" ]
450}
451
Mirko Bonadei85340ce2018-11-19 14:51:39452rtc_source_set("scoped_refptr") {
453 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10454 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 14:51:39455}
456
Niels Möller7c8c4db2022-06-13 08:36:38457rtc_source_set("make_ref_counted") {
458 visibility = [ "*" ]
459 sources = [ "make_ref_counted.h" ]
Harald Alvestrande8a2b3c2023-10-31 13:30:30460 deps = [
461 ":ref_count",
462 "../rtc_base:refcount",
463 ]
Niels Möller7c8c4db2022-06-13 08:36:38464}
465
Artem Titovd57628f2019-03-22 11:34:25466rtc_source_set("video_quality_analyzer_api") {
467 visibility = [ "*" ]
468 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10469 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25470
471 deps = [
Artem Titov3b641672020-06-02 15:18:17472 ":array_view",
Artem Titovd57628f2019-03-22 11:34:25473 ":stats_observer_interface",
Jeremy Leconte47302012023-04-14 13:37:54474 "../rtc_base:checks",
Artem Titovd57628f2019-03-22 11:34:25475 "video:encoded_image",
476 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38477 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 11:34:25478 "video_codecs:video_codecs_api",
Florent Castelli99c519b2024-05-23 11:21:53479 "//third_party/abseil-cpp/absl/strings:string_view",
Artem Titovd57628f2019-03-22 11:34:25480 "//third_party/abseil-cpp/absl/types:optional",
481 ]
482}
483
Andrey Logvin20f45822020-07-01 08:32:15484rtc_source_set("track_id_stream_info_map") {
Mirko Bonadeif948eb62019-04-05 13:13:23485 visibility = [ "*" ]
Andrey Logvin20f45822020-07-01 08:32:15486 sources = [ "test/track_id_stream_info_map.h" ]
Florent Castelli99c519b2024-05-23 11:21:53487 deps = [ "//third_party/abseil-cpp/absl/strings:string_view" ]
Mirko Bonadeif948eb62019-04-05 13:13:23488}
489
Markus Handell0357b3e2020-03-16 12:40:51490rtc_source_set("rtp_transceiver_direction") {
491 visibility = [ "*" ]
492 sources = [ "rtp_transceiver_direction.h" ]
493}
494
Harald Alvestrandfd5ae7f2020-05-16 06:37:49495rtc_source_set("priority") {
Florent Castelli4e0d46f2021-07-19 11:43:10496 visibility = [ "*" ]
Harald Alvestrandfd5ae7f2020-05-16 06:37:49497 sources = [ "priority.h" ]
498}
499
Mirko Bonadei86d053c2019-10-17 19:32:04500rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 11:33:50501 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 08:45:28502 sources = [
503 "media_types.cc",
504 "media_types.h",
505 "rtp_parameters.cc",
506 "rtp_parameters.h",
507 ]
508 deps = [
509 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 06:37:49510 ":priority",
Markus Handell0357b3e2020-03-16 12:40:51511 ":rtp_transceiver_direction",
Philipp Hanckeb9405c42023-12-07 17:00:47512 "../media:media_constants",
Niels Möller6dcd4dc2019-08-26 08:45:28513 "../rtc_base:checks",
514 "../rtc_base:stringutils",
515 "../rtc_base/system:rtc_export",
Jonas Oreland0deda152022-09-23 10:08:57516 "video:resolution",
Byoungchan Leea1a7c632022-07-05 12:06:28517 "video_codecs:scalability_mode",
Byoungchan Leea1a7c632022-07-05 12:06:28518 "//third_party/abseil-cpp/absl/container:inlined_vector",
Florent Castelli99c519b2024-05-23 11:21:53519 "//third_party/abseil-cpp/absl/strings:string_view",
Niels Möller6dcd4dc2019-08-26 08:45:28520 "//third_party/abseil-cpp/absl/types:optional",
521 ]
Niels Möller184b4af2019-08-23 11:33:50522}
523
Taylor Brandstettere3a294c2020-03-23 23:16:58524if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 06:37:49525 java_cpp_enum("priority_enums") {
526 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58527 }
528}
529
Artem Titovd57628f2019-03-22 11:34:25530rtc_source_set("audio_quality_analyzer_api") {
531 visibility = [ "*" ]
532 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10533 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25534
535 deps = [
536 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15537 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 11:34:25538 ]
539}
540
541rtc_source_set("stats_observer_interface") {
542 visibility = [ "*" ]
543 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10544 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 11:34:25545
Florent Castelli99c519b2024-05-23 11:21:53546 deps = [
547 ":rtc_stats_api",
548 "//third_party/abseil-cpp/absl/strings:string_view",
549 ]
Artem Titovd57628f2019-03-22 11:34:25550}
551
Niels Möllerf47a7242021-11-22 15:07:35552rtc_source_set("peer_network_dependencies") {
553 visibility = [ "*" ]
554 sources = [ "test/peer_network_dependencies.h" ]
555 deps = [
556 ":packet_socket_factory",
Florent Castellia138c6c2023-01-04 11:01:09557 "../rtc_base:network",
Niels Möllerf47a7242021-11-22 15:07:35558 "../rtc_base:threading",
559 ]
560}
561
Artem Titovd57628f2019-03-22 11:34:25562rtc_source_set("peer_connection_quality_test_fixture_api") {
563 visibility = [ "*" ]
564 testonly = true
Jeremy Lecontee91d4bc2022-11-05 11:56:07565 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 11:34:25566
567 deps = [
Artem Titov0d510522022-04-19 11:01:03568 ":array_view",
Artem Titovd57628f2019-03-22 11:34:25569 ":audio_quality_analyzer_api",
Artem Titovd57628f2019-03-22 11:34:25570 ":fec_controller_api",
Artem Titov00202262019-12-04 21:34:41571 ":frame_generator_api",
Artem Titovd57628f2019-03-22 11:34:25572 ":function_view",
573 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49574 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 11:48:24575 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 10:16:35576 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 15:07:35577 ":peer_network_dependencies",
Artem Titovf9ed56b2020-05-11 19:17:25578 ":rtp_parameters",
Artem Titovd57628f2019-03-22 11:34:25579 ":simulated_network_api",
Artem Titova8549212019-08-19 12:38:06580 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15581 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 11:34:25582 ":video_quality_analyzer_api",
Harald Alvestrand794d5992022-12-16 09:54:57583 "../media:media_constants",
Artem Titov7017a132022-04-20 18:57:56584 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09585 "../rtc_base:network",
Florent Castellia138c6c2023-01-04 11:01:09586 "../rtc_base:rtc_certificate_generator",
587 "../rtc_base:ssl",
Artem Titovbccb4522022-06-01 20:32:15588 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01589 "../rtc_base:threading",
Artem Titov72bc2e22022-08-02 12:03:03590 "../test:fileutils",
Artem Titov7e04b492022-03-08 00:26:03591 "audio:audio_mixer_api",
Florent Castelli0afde762024-04-19 15:07:08592 "audio:audio_processing",
Danil Chapovalov9305d112019-09-04 11:16:09593 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 10:58:03594 "task_queue",
Jeremy Lecontee91d4bc2022-11-05 11:56:07595 "test/pclf:media_configuration",
596 "test/pclf:media_quality_test_params",
Jeremy Leconte389228d2022-11-04 13:01:12597 "test/pclf:peer_configurer",
Artem Titov2068d0d2022-10-12 13:04:06598 "test/video:video_frame_writer",
Artem Titovd57628f2019-03-22 11:34:25599 "transport:network_control",
600 "units:time_delta",
Artem Titovb4463ee2019-11-12 16:27:44601 "video:video_frame",
Artem Titovd57628f2019-03-22 11:34:25602 "video_codecs:video_codecs_api",
Jeremy Lecontea3e51df2022-11-10 14:42:53603 "//third_party/abseil-cpp/absl/base:core_headers",
Artem Titovd57628f2019-03-22 11:34:25604 "//third_party/abseil-cpp/absl/memory",
Florent Castelli99c519b2024-05-23 11:21:53605 "//third_party/abseil-cpp/absl/strings:string_view",
Artem Titovd57628f2019-03-22 11:34:25606 "//third_party/abseil-cpp/absl/types:optional",
607 ]
608}
609
Artem Titov503d7232019-12-04 11:37:13610rtc_source_set("frame_generator_api") {
611 visibility = [ "*" ]
Evan Shrubsole7899e972020-09-28 10:04:11612 sources = [
613 "test/frame_generator_interface.cc",
614 "test/frame_generator_interface.h",
615 ]
Artem Titov503d7232019-12-04 11:37:13616
617 deps = [
618 ":scoped_refptr",
619 "video:video_frame",
Florent Castelli99c519b2024-05-23 11:21:53620 "//third_party/abseil-cpp/absl/types:optional",
Artem Titov503d7232019-12-04 11:37:13621 ]
622}
623
Patrik Höglundb6b29e02018-06-21 14:58:01624if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 13:26:50625 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 19:32:04626 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 14:00:37627 visibility = [ "*" ]
628 testonly = true
629 sources = [
630 "test/create_network_emulation_manager.cc",
631 "test/create_network_emulation_manager.h",
632 ]
633 deps = [
Jeremy Leconte242ed952023-12-05 13:47:22634 ":field_trials_view",
Artem Titov7bf8c7f2019-03-15 14:00:37635 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 08:48:17636 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 14:00:37637 ]
638 }
Artem Titovd57628f2019-03-22 11:34:25639
Andrey Logvine7c79fd2021-02-01 09:56:37640 if (!build_with_chromium) {
Artem Titov17d7eb42023-04-26 08:17:19641 rtc_source_set("video_quality_test_fixture_api") {
642 visibility = [ "*" ]
643 testonly = true
644 sources = [ "test/video_quality_test_fixture.h" ]
645 deps = [
646 ":fec_controller_api",
647 ":libjingle_peerconnection_api",
648 ":network_state_predictor_api",
649 ":rtp_parameters",
650 ":simulated_network_api",
651 "../call:fake_network",
652 "../call:rtp_interfaces",
653 "../test:test_common",
654 "../test:video_test_common",
655 "../video/config:encoder_config",
656 "transport:bitrate_settings",
657 "transport:network_control",
658 "video_codecs:video_codecs_api",
659 ]
660 }
661
662 rtc_library("test_dependency_factory") {
663 visibility = [ "*" ]
664 testonly = true
665 sources = [
666 "test/test_dependency_factory.cc",
667 "test/test_dependency_factory.h",
668 ]
669 deps = [
670 ":video_quality_test_fixture_api",
671 "../rtc_base:checks",
672 "../rtc_base:platform_thread_types",
673 ]
674 }
675
Andrey Logvine7c79fd2021-02-01 09:56:37676 rtc_library("create_video_quality_test_fixture_api") {
677 visibility = [ "*" ]
678 testonly = true
679 sources = [
680 "test/create_video_quality_test_fixture.cc",
681 "test/create_video_quality_test_fixture.h",
682 ]
683 deps = [
684 ":fec_controller_api",
685 ":network_state_predictor_api",
686 ":scoped_refptr",
687 ":video_quality_test_fixture_api",
688 "../video:video_quality_test",
689 ]
690 }
Artem Titovd57628f2019-03-22 11:34:25691
Andrey Logvine7c79fd2021-02-01 09:56:37692 rtc_library("create_peerconnection_quality_test_fixture") {
693 visibility = [ "*" ]
694 testonly = true
695 sources = [
696 "test/create_peerconnection_quality_test_fixture.cc",
697 "test/create_peerconnection_quality_test_fixture.h",
698 ]
699
700 deps = [
701 ":audio_quality_analyzer_api",
702 ":peer_connection_quality_test_fixture_api",
703 ":time_controller",
704 ":video_quality_analyzer_api",
705 "../test/pc/e2e:peerconnection_quality_test",
Artem Titov36806052022-09-21 14:08:03706 "test/metrics:global_metrics_logger_and_exporter",
Andrey Logvine7c79fd2021-02-01 09:56:37707 ]
708 }
Artem Titovd57628f2019-03-22 11:34:25709 }
Artem Titov33f9d2b2019-12-05 14:59:00710}
Artem Titov503d7232019-12-04 11:37:13711
Artem Titov33f9d2b2019-12-05 14:59:00712rtc_library("create_frame_generator") {
713 visibility = [ "*" ]
714 testonly = true
715 sources = [
716 "test/create_frame_generator.cc",
717 "test/create_frame_generator.h",
718 ]
719 deps = [
720 ":frame_generator_api",
721 "../rtc_base:checks",
722 "../system_wrappers",
723 "../test:frame_generator_impl",
Danil Chapovalovc230da02024-03-22 13:54:48724 "environment",
725 "environment:environment_factory",
Danil Chapovalovc230da02024-03-22 13:54:48726 "//third_party/abseil-cpp/absl/base:nullability",
727 "//third_party/abseil-cpp/absl/strings:string_view",
728 "//third_party/abseil-cpp/absl/types:optional",
729 ]
Patrik Höglundb6b29e02018-06-21 14:58:01730}
731
Andrey Logvindad6a942020-05-04 17:27:09732rtc_library("create_peer_connection_quality_test_frame_generator") {
733 visibility = [ "*" ]
734 testonly = true
735 sources = [
736 "test/create_peer_connection_quality_test_frame_generator.cc",
737 "test/create_peer_connection_quality_test_frame_generator.h",
738 ]
739 deps = [
740 ":create_frame_generator",
741 ":frame_generator_api",
Andrey Logvin1e83d342020-05-07 07:19:15742 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09743 "../test:fileutils",
Jeremy Leconte0e2cf6c2022-11-04 10:10:42744 "test/pclf:media_configuration",
Florent Castelli99c519b2024-05-23 11:21:53745 "//third_party/abseil-cpp/absl/types:optional",
Andrey Logvindad6a942020-05-04 17:27:09746 ]
747}
748
Elad Alon80810732017-10-06 11:07:32749rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53750 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10751 sources = [ "rtc_event_log_output.h" ]
Florent Castelli99c519b2024-05-23 11:21:53752 deps = [ "//third_party/abseil-cpp/absl/strings:string_view" ]
Elad Alon80810732017-10-06 11:07:32753}
754
Mirko Bonadei86d053c2019-10-17 19:32:04755rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 11:53:51756 visibility = [ "*" ]
757 sources = [
758 "rtc_event_log_output_file.cc",
759 "rtc_event_log_output_file.h",
760 ]
761
762 deps = [
763 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 11:53:51764 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30765 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 11:53:51766 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 11:39:25767 "rtc_event_log",
Björn Terelius08b649b2024-06-13 14:44:09768 "//third_party/abseil-cpp/absl/strings:string_view",
Niels Möllerd8b9ed72019-05-08 11:53:51769 ]
770}
771
hbos74e1a4f2016-09-16 06:33:01772rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53773 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01774 cflags = []
775 sources = [
Henrik Boström7978cf12024-01-11 10:41:10776 "stats/attribute.h",
Steve Anton10542f22019-01-11 17:11:00777 "stats/rtc_stats.h",
778 "stats/rtc_stats_collector_callback.h",
779 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-16 06:33:01780 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-16 06:33:01781 ]
782
783 deps = [
Niels Möller7c8c4db2022-06-13 08:36:38784 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30785 ":ref_count",
Mirko Bonadeid9708072019-01-25 19:26:48786 ":scoped_refptr",
Tommi86ee89f2021-04-20 14:58:01787 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 15:05:42788 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:12789 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 15:15:12790 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 17:12:23791 "units:timestamp",
Henrik Boström7978cf12024-01-11 10:41:10792 "//third_party/abseil-cpp/absl/types:optional",
793 "//third_party/abseil-cpp/absl/types:variant",
794 ]
hbos74e1a4f2016-09-16 06:33:01795}
796
Mirko Bonadei86d053c2019-10-17 19:32:04797rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 10:28:54798 visibility = [ "*" ]
799 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52800 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54801 "audio_options.h",
802 ]
803
804 deps = [
Yves Gerey3e707812018-11-28 15:47:49805 ":array_view",
Danil Chapovalov21652332018-08-31 08:29:07806 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 18:26:34807 "../rtc_base/system:rtc_export",
Florent Castelli99c519b2024-05-23 11:21:53808 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 10:28:54809 ]
810}
811
Mirko Bonadei86d053c2019-10-17 19:32:04812rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53813 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13814 sources = [
Dino Radaković1807d572018-02-22 13:18:06815 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13816 "call/transport.h",
817 ]
Danil Chapovalov5312a8f2021-01-25 16:02:57818 deps = [
Harald Alvestrandb38d9d22023-08-04 09:50:36819 ":array_view",
Danil Chapovalov5312a8f2021-01-25 16:02:57820 ":refcountedbase",
821 ":scoped_refptr",
822 ]
aleloia8eb7562016-11-28 15:02:13823}
nisseb2250e52016-12-02 12:01:14824
Sebastian Jansson6736df12018-11-21 18:18:39825rtc_source_set("bitrate_allocation") {
826 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10827 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 18:18:39828 deps = [
829 "units:data_rate",
830 "units:time_delta",
831 ]
832}
833
Sebastian Janssoncec24332019-12-04 13:26:50834# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 14:58:01835rtc_source_set("simulated_network_api") {
836 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10837 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 13:18:46838 deps = [
Florent Castelli4467ad72022-04-04 13:18:46839 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 10:41:26840 "../rtc_base:random",
Per K0d037df2024-05-07 15:27:54841 "units:data_rate",
Per K0d037df2024-05-07 15:27:54842 "//third_party/abseil-cpp/absl/functional:any_invocable",
843 "//third_party/abseil-cpp/absl/types:optional",
844 ]
Patrik Höglundb6b29e02018-06-21 14:58:01845}
846
Sebastian Janssoncec24332019-12-04 13:26:50847# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 14:00:37848rtc_source_set("network_emulation_manager_api") {
849 visibility = [ "*" ]
850 sources = [
Sebastian Janssoncec24332019-12-04 13:26:50851 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 14:00:37852 "test/network_emulation_manager.h",
853 ]
854 deps = [
Artem Titovcf781282020-07-28 11:45:16855 ":array_view",
Niels Möller5e7a3ae2021-09-09 13:54:42856 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 15:07:35857 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 14:00:37858 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 09:12:56859 ":time_controller",
Per K569849e2024-04-29 08:37:37860 "..//test/network:simulated_network",
Björn Tereliusb22cabc2022-06-02 08:51:59861 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09862 "../rtc_base:network",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01863 "../rtc_base:network_constants",
864 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 13:26:50865 "test/network_emulation",
Artem Titov806299e2019-04-12 10:17:19866 "units:data_rate",
867 "units:data_size",
868 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 14:00:37869 ]
870}
871
Sebastian Jansson6ce033a2020-01-22 09:12:56872rtc_source_set("time_controller") {
873 visibility = [ "*" ]
874 sources = [
875 "test/time_controller.cc",
876 "test/time_controller.h",
877 ]
878
879 deps = [
Mirko Bonadeie5f4c6b2021-01-15 09:41:01880 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 09:12:56881 "../rtc_base/synchronization:yield_policy",
882 "../system_wrappers",
883 "task_queue",
884 "units:time_delta",
885 "units:timestamp",
886 ]
887}
888
Ying Wang3b790f32018-01-19 16:58:57889rtc_source_set("fec_controller_api") {
890 visibility = [ "*" ]
891 sources = [
892 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 13:19:43893 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 16:58:57894 ]
895
896 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27897 "../modules:module_fec_api",
Danil Chapovalov55a61892024-01-03 17:39:27898 "environment",
Niels Möller8f7ce222019-03-21 14:43:58899 "video:video_frame_type",
Ying Wang3b790f32018-01-19 16:58:57900 ]
901}
902
Ying Wang0810a7c2019-04-10 11:48:24903rtc_source_set("network_state_predictor_api") {
904 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10905 sources = [ "network_state_predictor.h" ]
Björn Terelius05965032024-05-24 09:40:52906 deps = [ "transport:bandwidth_usage" ]
Ying Wang0810a7c2019-04-10 11:48:24907}
908
kwiberg529662a2017-09-04 12:43:17909rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53910 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10911 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 12:43:17912 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42913 "../rtc_base:checks",
914 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17915 ]
916}
917
Niels Möller9155e492017-10-23 09:22:30918rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53919 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10920 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 14:58:01921 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:30922 ":ref_count",
Tommi86ee89f2021-04-20 14:58:01923 "../rtc_base:macromagic",
924 "../rtc_base:refcount",
925 ]
Niels Möller9155e492017-10-23 09:22:30926}
927
Mirko Bonadei86d053c2019-10-17 19:32:04928rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 13:57:03929 visibility = [ "*" ]
930 sources = [
931 "ice_transport_factory.cc",
932 "ice_transport_factory.h",
933 ]
934 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28935 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 13:57:03936 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 08:36:38937 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 10:16:35938 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 13:57:03939 ":scoped_refptr",
Harald Alvestrand9a953b22024-01-26 07:11:50940 "../p2p:connection",
Harald Alvestranda310d782024-01-25 12:27:18941 "../p2p:ice_transport_internal",
942 "../p2p:p2p_constants",
943 "../p2p:p2p_transport_channel",
Harald Alvestrand3bddaed2024-02-06 22:54:25944 "../p2p:port_allocator",
Harald Alvestrand98462622019-01-30 13:57:03945 "../p2p:rtc_p2p",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01946 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 09:33:59947 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 21:07:33948 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 13:57:03949 ]
950}
951
Mirko Bonadei86d053c2019-10-17 19:32:04952rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 09:49:27953 visibility = [ "*" ]
954 sources = [
955 "test/neteq_simulator.cc",
956 "test/neteq_simulator.h",
957 ]
Jakob Ivarssone0f08a32024-04-02 09:58:19958 deps = [ "neteq:neteq_api" ]
Ivo Creusen55de08e2018-09-03 09:49:27959}
960
Artem Titov741daaf2019-03-21 13:37:36961rtc_source_set("function_view") {
962 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10963 sources = [ "function_view.h" ]
964 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 13:37:36965}
966
Artem Titovb586d822021-02-04 14:06:50967rtc_source_set("sequence_checker") {
968 visibility = [ "*" ]
969 sources = [ "sequence_checker.h" ]
970 deps = [
971 "../rtc_base:checks",
972 "../rtc_base:macromagic",
973 "../rtc_base/synchronization:sequence_checker_internal",
974 ]
975}
976
kjellanderfd5b4e92016-06-13 19:08:33977if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37978 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 19:32:04979 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 11:22:52980 visibility = [ "*" ]
981 testonly = true
982 sources = [
983 "test/audioproc_float.cc",
984 "test/audioproc_float.h",
985 ]
986
987 deps = [
Artem Titov94b57c02019-03-21 12:35:10988 "../modules/audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:52989 "../modules/audio_processing:audioproc_f_impl",
Florent Castelli0afde762024-04-19 15:07:08990 "audio:audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:52991 ]
992 }
Ivo Creusen55de08e2018-09-03 09:49:27993
Mirko Bonadei86d053c2019-10-17 19:32:04994 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 09:49:27995 visibility = [ "*" ]
996 testonly = true
997 sources = [
998 "test/neteq_simulator_factory.cc",
999 "test/neteq_simulator_factory.h",
1000 ]
1001 deps = [
1002 ":neteq_simulator_api",
1003 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 08:30:581004 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 16:17:091005 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 11:44:121006 "//third_party/abseil-cpp/absl/flags:flag",
1007 "//third_party/abseil-cpp/absl/flags:parse",
Florent Castelli99c519b2024-05-23 11:21:531008 "//third_party/abseil-cpp/absl/strings:string_view",
Ivo Creusen26d52e12020-03-24 14:59:261009 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 09:49:271010 ]
1011 }
Ivo Creusen2cb41052018-03-15 11:22:521012 }
1013
Rasmus Brandt0cedc052018-05-31 10:53:001014 rtc_source_set("simulcast_test_fixture_api") {
1015 visibility = [ "*" ]
1016 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101017 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 10:53:001018 }
1019
Mirko Bonadei86d053c2019-10-17 19:32:041020 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 10:53:001021 visibility = [ "*" ]
1022 testonly = true
1023 sources = [
1024 "test/create_simulcast_test_fixture.cc",
1025 "test/create_simulcast_test_fixture.h",
1026 ]
1027 deps = [
1028 ":simulcast_test_fixture_api",
1029 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 10:53:001030 "video_codecs:video_codecs_api",
1031 ]
Rasmus Brandt0cedc052018-05-31 10:53:001032 }
1033
Sergey Silkin2e1a9a42022-12-15 09:15:181034 rtc_library("videocodec_test_stats_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551035 visibility = [ "*" ]
1036 testonly = true
1037 sources = [
Kári Tristan Helgason169005d2018-05-22 11:34:141038 "test/videocodec_test_stats.cc",
1039 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:551040 ]
1041 deps = [
Sergey Silkin2e1a9a42022-12-15 09:15:181042 "../api/units:data_rate",
1043 "../api/units:frequency",
Jonas Olsson366a50c2018-09-06 11:41:301044 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 14:43:581045 "video:video_frame_type",
Florent Castelli99c519b2024-05-23 11:21:531046 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin2e1a9a42022-12-15 09:15:181047 ]
Sergey Silkin2e1a9a42022-12-15 09:15:181048 }
1049
1050 rtc_library("videocodec_test_fixture_api") {
1051 visibility = [ "*" ]
1052 testonly = true
1053 sources = [ "test/videocodec_test_fixture.h" ]
1054 deps = [
1055 ":videocodec_test_stats_api",
1056 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 09:56:551057 "video_codecs:video_codecs_api",
1058 ]
1059 }
1060
Mirko Bonadei86d053c2019-10-17 19:32:041061 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551062 visibility = [ "*" ]
1063 testonly = true
1064 sources = [
1065 "test/create_videocodec_test_fixture.cc",
1066 "test/create_videocodec_test_fixture.h",
1067 ]
1068 deps = [
1069 ":videocodec_test_fixture_api",
1070 "../modules/video_coding:video_codecs_test_framework",
1071 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 09:56:551072 "video_codecs:video_codecs_api",
1073 ]
Kári Tristan Helgason9d96e922018-05-04 09:56:551074 }
1075
kjellander2f6af9c2017-03-03 06:26:231076 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 11:43:101077 visibility = [ "*" ]
kjellander2f6af9c2017-03-03 06:26:231078 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101079 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-03 06:26:231080
kjellander2f6af9c2017-03-03 06:26:231081 deps = [
jianjun.zhuc0247402017-07-11 13:20:451082 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:491083 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:231084 ]
1085 }
1086
Florent Castelli2b4f5132021-07-16 15:13:541087 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-16 22:48:101088 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 15:13:541089 testonly = true
1090 sources = [ "test/mock_audio_sink.h" ]
1091
1092 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421093 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 15:13:541094 "../test:test_support",
Florent Castelli99c519b2024-05-23 11:21:531095 "//third_party/abseil-cpp/absl/types:optional",
Florent Castelli2b4f5132021-07-16 15:13:541096 ]
Florent Castelli2b4f5132021-07-16 15:13:541097 }
1098
Steve Antonc49c7d22020-11-05 03:21:491099 rtc_source_set("mock_data_channel") {
1100 visibility = [ "*" ]
1101 testonly = true
1102 sources = [ "test/mock_data_channel.h" ]
1103
1104 deps = [
1105 ":libjingle_peerconnection_api",
1106 "../test:test_support",
1107 ]
1108 }
1109
Florent Castelli8c6d88f2022-05-11 16:33:281110 rtc_source_set("mock_dtmf_sender") {
1111 visibility = [ "*" ]
1112 testonly = true
1113 sources = [ "test/mock_dtmf_sender.h" ]
1114
1115 deps = [
Florent Castelliacabb362022-10-18 15:05:161116 ":dtmf_sender_interface",
Florent Castelli8c6d88f2022-05-11 16:33:281117 ":libjingle_peerconnection_api",
1118 "../test:test_support",
1119 ]
1120 }
1121
Elad Alon45befc52019-07-02 09:20:091122 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 11:43:101123 visibility = [ "*" ]
Elad Alon45befc52019-07-02 09:20:091124 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101125 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 09:20:091126 deps = [
1127 ":fec_controller_api",
1128 "../test:test_support",
1129 ]
1130 }
1131
Mirko Bonadei86d053c2019-10-17 19:32:041132 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101133 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571134 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031135 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571136 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421137 # For api/crypto/frame_encryptor_interface.h
1138 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571139 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151140 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571141 ]
1142 }
1143
Mirko Bonadei86d053c2019-10-17 19:32:041144 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101145 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571146 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031147 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571148 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421149 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571150 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151151 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571152 ]
1153 }
1154
Tony Herre9c6874602024-01-26 10:16:451155 rtc_library("mock_frame_transformer") {
1156 visibility = [ "*" ]
1157 testonly = true
1158 sources = [ "test/mock_frame_transformer.h" ]
1159 deps = [
1160 ":frame_transformer_interface",
1161 "../test:test_support",
1162 ]
1163 }
1164
Jonas Oreland65455162022-06-08 09:25:461165 rtc_library("mock_encoder_selector") {
1166 visibility = [ "*" ]
1167 testonly = true
1168 sources = [ "test/mock_encoder_selector.h" ]
1169 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421170 ":libjingle_peerconnection_api",
1171 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 09:25:461172 "../test:test_support",
1173 ]
1174 }
1175
Mirko Bonadei86d053c2019-10-17 19:32:041176 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101177 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571178 testonly = true
1179 sources = [
1180 "test/fake_frame_encryptor.cc",
1181 "test/fake_frame_encryptor.h",
1182 ]
1183 deps = [
1184 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421185 ":libjingle_peerconnection_api",
1186 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:301187 ":ref_count",
Niels Möller6dcd4dc2019-08-26 08:45:281188 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 16:52:571189 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:121190 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 12:42:151191 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571192 ]
1193 }
1194
Mirko Bonadei86d053c2019-10-17 19:32:041195 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101196 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 21:22:341197 testonly = true
1198 sources = [
1199 "test/fake_frame_decryptor.cc",
1200 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 21:22:341201 ]
1202 deps = [
1203 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421204 ":libjingle_peerconnection_api",
1205 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 08:45:281206 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 21:22:341207 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 12:42:151208 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 21:22:341209 ]
1210 }
1211
Steve Anton60be6a92020-11-05 22:32:181212 rtc_source_set("mock_media_stream_interface") {
1213 visibility = [ "*" ]
1214 testonly = true
1215 sources = [ "test/mock_media_stream_interface.h" ]
1216
1217 deps = [
1218 ":media_stream_interface",
1219 "../test:test_support",
1220 ]
1221 }
1222
Niels Möller573b1452022-06-21 09:37:291223 rtc_source_set("mock_packet_socket_factory") {
1224 visibility = [ "*" ]
1225 testonly = true
1226 sources = [ "test/mock_packet_socket_factory.h" ]
1227
1228 deps = [
1229 ":packet_socket_factory",
1230 "../test:test_support",
1231 ]
1232 }
1233
Jiawei Ou651b92e2018-06-29 22:46:441234 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 21:34:171235 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 22:46:441236 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101237 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 22:46:441238
1239 deps = [
1240 ":libjingle_peerconnection_api",
Harald Alvestrande8a2b3c2023-10-31 13:30:301241 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421242 "../api:scoped_refptr",
1243 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 22:46:441244 "../test:test_support",
1245 ]
1246 }
1247
Steve Antonf84ab8e2020-06-03 16:18:241248 rtc_source_set("mock_peer_connection_factory_interface") {
1249 visibility = [ "*" ]
1250 testonly = true
1251 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1252
1253 deps = [
1254 ":libjingle_peerconnection_api",
1255 "../test:test_support",
1256 ]
1257 }
1258
Harald Alvestrand98fe9852022-10-24 09:43:221259 rtc_source_set("mock_session_description_interface") {
1260 visibility = [ "*" ]
1261 testonly = true
1262 sources = [ "test/mock_session_description_interface.h" ]
1263 deps = [
1264 ":libjingle_peerconnection_api",
1265 "../test:test_support",
1266 ]
1267 }
1268
Mirko Bonadei26e5a822023-11-14 13:57:231269 rtc_source_set("mock_transformable_frame") {
1270 visibility = [ "*" ]
1271 testonly = true
1272 sources = [ "test/mock_transformable_frame.h" ]
1273 deps = [
1274 ":array_view",
1275 ":frame_transformer_interface",
1276 "../test:test_support",
1277 "units:timestamp",
1278 ]
1279 }
1280
Harald Alvestrand0ccfbd22021-04-08 07:25:041281 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 11:43:101282 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:041283 testonly = true
1284 sources = [ "test/mock_async_dns_resolver.h" ]
1285 deps = [
1286 ":async_dns_resolver",
1287 "../test:test_support",
1288 ]
1289 }
1290
Patrik Höglund4b9e6ba2017-12-19 09:32:111291 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 22:37:221292 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 09:32:111293 testonly = true
1294 sources = [
Steve Anton43ef5d92020-11-05 22:37:221295 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 09:32:111296 "test/mock_rtpreceiver.h",
1297 "test/mock_rtpsender.h",
1298 ]
1299
1300 deps = [
1301 ":libjingle_peerconnection_api",
Florent Castelliacabb362022-10-18 15:05:161302 ":rtp_sender_interface",
Jack Smithadf35a32022-11-29 14:42:381303 "../api/crypto:frame_decryptor_interface",
Patrik Höglund4b9e6ba2017-12-19 09:32:111304 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:111305 ]
1306 }
1307
Tove Petersson1e2d9512023-03-05 11:03:061308 rtc_source_set("mock_transformable_audio_frame") {
1309 visibility = [ "*" ]
1310 testonly = true
1311 sources = [ "test/mock_transformable_audio_frame.h" ]
1312
1313 deps = [
1314 ":frame_transformer_interface",
1315 "../test:test_support",
1316 ]
1317 }
1318
Marina Cioceabb13f382020-05-15 06:24:171319 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 11:43:101320 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 06:24:171321 testonly = true
1322 sources = [ "test/mock_transformable_video_frame.h" ]
1323
1324 deps = [
1325 ":frame_transformer_interface",
1326 "../test:test_support",
1327 ]
1328 }
1329
Jiawei Ou4206a0a2018-07-20 22:49:431330 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 11:43:101331 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 22:49:431332 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101333 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 22:49:431334
1335 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421336 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 22:49:431337 "../test:test_support",
1338 ]
1339 }
1340
Jiawei Ouc2ebe212018-11-08 18:02:561341 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101342 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 18:02:561343 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101344 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 18:02:561345
1346 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421347 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 18:02:561348 "../test:test_support",
1349 ]
1350 }
1351
Emircan Uysalerdbcac7f2017-10-31 06:10:121352 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101353 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-31 06:10:121354 testonly = true
1355 sources = [
1356 "test/mock_video_decoder_factory.h",
1357 "test/mock_video_encoder_factory.h",
1358 ]
1359
Emircan Uysalerdbcac7f2017-10-31 06:10:121360 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421361 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:121362 "../test:test_support",
Danil Chapovalovc708c002024-01-22 12:17:051363 "environment",
Emircan Uysalerdbcac7f2017-10-31 06:10:121364 ]
1365 }
1366
Mirko Bonadei86d053c2019-10-17 19:32:041367 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 09:55:131368 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 09:55:131369 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031370 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 09:55:131371
1372 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421373 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 09:55:131374 "../test:test_support",
1375 ]
1376 }
1377
Mirko Bonadei86d053c2019-10-17 19:32:041378 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 09:55:131379 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 08:01:301380 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031381 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 08:01:301382
1383 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421384 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 08:01:301385 "../test:test_support",
1386 ]
1387 }
1388
Florent Castelli63cc46c2021-07-16 23:32:401389 rtc_library("mock_video_track") {
1390 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-16 23:32:401391 testonly = true
1392 sources = [ "test/mock_video_track.h" ]
1393
1394 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:301395 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421396 "../api:media_stream_interface",
1397 "../api:scoped_refptr",
1398 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-16 23:32:401399 "../test:test_support",
1400 ]
1401 }
1402
Bjorn A Mellemc4f86542019-11-21 18:37:181403 rtc_library("create_time_controller") {
1404 visibility = [ "*" ]
1405 testonly = true
1406 sources = [
1407 "test/create_time_controller.cc",
1408 "test/create_time_controller.h",
1409 ]
1410
1411 deps = [
Danil Chapovalov4fd1cc72023-11-03 11:51:311412 ":enable_media_with_defaults",
1413 ":libjingle_peerconnection_api",
Bjorn A Mellemc4f86542019-11-21 18:37:181414 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 08:30:071415 "../call",
Sebastian Jansson7aa2edf2020-01-23 09:00:331416 "../call:call_interfaces",
Danil Chapovalov4fd1cc72023-11-03 11:51:311417 "../pc:media_factory",
1418 "../rtc_base:checks",
1419 "../system_wrappers",
Bjorn A Mellemc4f86542019-11-21 18:37:181420 "../test/time_controller",
Danil Chapovalov680f1032023-11-27 16:56:491421 "environment",
Danil Chapovalovabd78142023-12-05 16:11:151422 "environment:environment_factory",
Florent Castelli99c519b2024-05-23 11:21:531423 "//third_party/abseil-cpp/absl/base:nullability",
Bjorn A Mellemc4f86542019-11-21 18:37:181424 ]
1425 }
1426
Mirko Bonadei86d053c2019-10-17 19:32:041427 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 08:41:421428 testonly = true
1429
1430 sources = [
1431 "array_view_unittest.cc",
Tommif7b22c62024-02-15 08:18:341432 "candidate_unittest.cc",
Jonas Oreland128c4dc2022-03-30 05:57:481433 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 13:37:361434 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001435 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 11:53:511436 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 12:53:421437 "rtp_packet_info_unittest.cc",
1438 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001439 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 09:24:431440 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 14:06:501441 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 18:37:181442 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 11:01:031443 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 08:41:421444 ]
1445
Niels Möller2e47f7c2018-10-16 08:41:421446 deps = [
1447 ":array_view",
Tommif7b22c62024-02-15 08:18:341448 ":candidate",
Bjorn A Mellemc4f86542019-11-21 18:37:181449 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 05:57:481450 ":field_trials",
1451 ":field_trials_view",
Artem Titov741daaf2019-03-21 13:37:361452 ":function_view",
Niels Möller2e47f7c2018-10-16 08:41:421453 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 11:01:031454 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 08:51:231455 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 11:53:511456 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 12:53:421457 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 08:45:281458 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 09:24:431459 ":scoped_refptr",
Artem Titovb586d822021-02-04 14:06:501460 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 18:37:181461 ":time_controller",
Tommif7b22c62024-02-15 08:18:341462 "../p2p:rtc_p2p",
Florent Castellif9c59842022-04-19 15:07:231463 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 08:41:421464 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 12:15:081465 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 10:18:281466 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 14:57:521467 "../rtc_base:rtc_event",
Tommif7b22c62024-02-15 08:18:341468 "../rtc_base:ssl",
Artem Titovb586d822021-02-04 14:06:501469 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 13:20:221470 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 18:37:181471 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 05:57:481472 "../system_wrappers:field_trial",
Emil Lundmark2e3069b2022-12-01 15:20:371473 "../test:field_trial",
Niels Möllerd8b9ed72019-05-08 11:53:511474 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 05:57:481475 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 08:41:421476 "../test:test_support",
Danil Chapovalove7b48a12023-11-22 15:01:341477 "environment:environment_unittests",
Danil Chapovalov2684ab32019-02-26 09:18:081478 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 11:56:071479 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 15:04:101480 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 05:57:481481 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 18:37:181482 "units:time_delta",
1483 "units:timestamp",
Niels Möller2e47f7c2018-10-16 08:41:421484 "units:units_unittests",
philipel8615bf02022-05-05 13:12:131485 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 12:41:231486 "video:rtp_video_frame_assembler_unittests",
Tove Petersson1fccaa42023-02-28 13:07:421487 "video:video_frame_metadata_unittest",
Florent Castelli99c519b2024-05-23 11:21:531488 "//third_party/abseil-cpp/absl/strings:string_view",
Emil Lundmark6bf20cc2022-09-21 13:20:221489 "//third_party/abseil-cpp/absl/types:optional",
1490 ]
Niels Möller2e47f7c2018-10-16 08:41:421491 }
Harald Alvestrand3cc45d42019-03-14 04:42:041492
Mirko Bonadei86d053c2019-10-17 19:32:041493 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 04:42:041494 testonly = true
1495
Mirko Bonadeiccbe95f2020-01-21 11:10:101496 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 04:42:041497
1498 deps = [
1499 ":fake_frame_decryptor",
1500 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:041501 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 04:42:041502 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 15:13:541503 ":mock_audio_sink",
Steve Antonc49c7d22020-11-05 03:21:491504 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 16:33:281505 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 04:42:041506 ":mock_frame_decryptor",
1507 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 22:32:181508 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 09:37:291509 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 16:18:241510 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 04:42:041511 ":mock_peerconnectioninterface",
1512 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:221513 ":mock_session_description_interface",
Tove Petersson1e2d9512023-03-05 11:03:061514 ":mock_transformable_audio_frame",
Mirko Bonadei26e5a822023-11-14 13:57:231515 ":mock_transformable_frame",
Marina Cioceabb13f382020-05-15 06:24:171516 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 04:42:041517 ":mock_video_bitrate_allocator",
1518 ":mock_video_bitrate_allocator_factory",
1519 ":mock_video_codec_factory",
1520 ":mock_video_decoder",
1521 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-16 23:32:401522 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 04:42:041523 ":rtc_api_unittests",
1524 "units:units_unittests",
1525 ]
1526 }
kjellanderfd5b4e92016-06-13 19:08:331527}
Jonas Orelanded99dae2022-03-09 08:28:101528
Emil Lundmark1c8103d2022-09-21 13:20:221529rtc_source_set("field_trials_registry") {
1530 visibility = [ "*" ]
1531 sources = [
1532 "field_trials_registry.cc",
1533 "field_trials_registry.h",
1534 ]
1535 deps = [
1536 ":field_trials_view",
1537 "../experiments:registered_field_trials",
1538 "../rtc_base:checks",
Emil Lundmark9109e852023-02-28 12:57:011539 "../rtc_base:logging",
Emil Lundmark1c8103d2022-09-21 13:20:221540 "../rtc_base/containers:flat_set",
1541 "../rtc_base/system:rtc_export",
Emil Lundmark1c8103d2022-09-21 13:20:221542 "//third_party/abseil-cpp/absl/algorithm:container",
Florent Castelli99c519b2024-05-23 11:21:531543 "//third_party/abseil-cpp/absl/strings:string_view",
Emil Lundmark1c8103d2022-09-21 13:20:221544 ]
1545}
1546
Jonas Orelande62c2f22022-03-29 09:04:481547rtc_source_set("field_trials_view") {
1548 visibility = [ "*" ]
1549 sources = [ "field_trials_view.h" ]
Florent Castelli99c519b2024-05-23 11:21:531550 deps = [
1551 "../rtc_base/system:rtc_export",
1552 "//third_party/abseil-cpp/absl/strings",
1553 "//third_party/abseil-cpp/absl/strings:string_view",
1554 ]
Jonas Orelande62c2f22022-03-29 09:04:481555}
1556
Jonas Orelanded99dae2022-03-09 08:28:101557rtc_source_set("webrtc_key_value_config") {
1558 visibility = [ "*" ]
1559 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 09:04:481560 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 08:28:101561}
Jonas Oreland128c4dc2022-03-30 05:57:481562
1563rtc_library("field_trials") {
1564 visibility = [ "*" ]
1565 sources = [
1566 "field_trials.cc",
1567 "field_trials.h",
1568 ]
1569 deps = [
Emil Lundmark1c8103d2022-09-21 13:20:221570 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 05:57:481571 "../rtc_base:checks",
1572 "../rtc_base/containers:flat_map",
1573 "../system_wrappers:field_trial",
Florent Castelli99c519b2024-05-23 11:21:531574 "//third_party/abseil-cpp/absl/strings:string_view",
Jonas Oreland128c4dc2022-03-30 05:57:481575 ]
Jonas Oreland128c4dc2022-03-30 05:57:481576}
Harald Alvestrand5c4509a2022-11-25 10:03:341577
1578rtc_library("frame_transformer_factory") {
1579 visibility = [ "*" ]
1580 sources = [
1581 "frame_transformer_factory.cc",
1582 "frame_transformer_factory.h",
1583 ]
1584 deps = [
1585 ":frame_transformer_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:301586 ":ref_count",
Harald Alvestrand5c4509a2022-11-25 10:03:341587 ":scoped_refptr",
Tove Petersson1e2d9512023-03-05 11:03:061588 "../audio:audio",
Harald Alvestrand5c4509a2022-11-25 10:03:341589 "../modules/rtp_rtcp",
Harald Alvestrand5c4509a2022-11-25 10:03:341590 "video:encoded_frame",
1591 "video:video_frame_metadata",
1592 ]
1593}