blob: b0f95ebcf80ef8c4c95bad210ac5b52378f2443e [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",
Mirko Bonadei01ed3252022-06-17 12:07:28187 "../rtc_base:ip_address",
188 "../rtc_base:logging",
189 "../rtc_base:network_constants",
190 "../rtc_base:socket_address",
Florent Castellia138c6c2023-01-04 11:01:09191 "../rtc_base:ssl",
Mirko Bonadei01ed3252022-06-17 12:07:28192 "../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",
Niels Möllerd8b9ed72019-05-08 11:53:51768 ]
769}
770
hbos74e1a4f2016-09-16 06:33:01771rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53772 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01773 cflags = []
774 sources = [
Henrik Boström7978cf12024-01-11 10:41:10775 "stats/attribute.h",
Steve Anton10542f22019-01-11 17:11:00776 "stats/rtc_stats.h",
777 "stats/rtc_stats_collector_callback.h",
778 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-16 06:33:01779 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-16 06:33:01780 ]
781
782 deps = [
Niels Möller7c8c4db2022-06-13 08:36:38783 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:30784 ":ref_count",
Mirko Bonadeid9708072019-01-25 19:26:48785 ":scoped_refptr",
Tommi86ee89f2021-04-20 14:58:01786 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 15:05:42787 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:12788 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 15:15:12789 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 17:12:23790 "units:timestamp",
Henrik Boström7978cf12024-01-11 10:41:10791 "//third_party/abseil-cpp/absl/types:optional",
792 "//third_party/abseil-cpp/absl/types:variant",
793 ]
hbos74e1a4f2016-09-16 06:33:01794}
795
Mirko Bonadei86d053c2019-10-17 19:32:04796rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 10:28:54797 visibility = [ "*" ]
798 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52799 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54800 "audio_options.h",
801 ]
802
803 deps = [
Yves Gerey3e707812018-11-28 15:47:49804 ":array_view",
Danil Chapovalov21652332018-08-31 08:29:07805 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 18:26:34806 "../rtc_base/system:rtc_export",
Florent Castelli99c519b2024-05-23 11:21:53807 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 10:28:54808 ]
809}
810
Mirko Bonadei86d053c2019-10-17 19:32:04811rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53812 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13813 sources = [
Dino Radaković1807d572018-02-22 13:18:06814 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13815 "call/transport.h",
816 ]
Danil Chapovalov5312a8f2021-01-25 16:02:57817 deps = [
Harald Alvestrandb38d9d22023-08-04 09:50:36818 ":array_view",
Danil Chapovalov5312a8f2021-01-25 16:02:57819 ":refcountedbase",
820 ":scoped_refptr",
821 ]
aleloia8eb7562016-11-28 15:02:13822}
nisseb2250e52016-12-02 12:01:14823
Sebastian Jansson6736df12018-11-21 18:18:39824rtc_source_set("bitrate_allocation") {
825 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10826 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 18:18:39827 deps = [
828 "units:data_rate",
829 "units:time_delta",
830 ]
831}
832
Sebastian Janssoncec24332019-12-04 13:26:50833# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 14:58:01834rtc_source_set("simulated_network_api") {
835 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10836 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 13:18:46837 deps = [
Florent Castelli4467ad72022-04-04 13:18:46838 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 10:41:26839 "../rtc_base:random",
Per K0d037df2024-05-07 15:27:54840 "units:data_rate",
Per K0d037df2024-05-07 15:27:54841 "//third_party/abseil-cpp/absl/functional:any_invocable",
842 "//third_party/abseil-cpp/absl/types:optional",
843 ]
Patrik Höglundb6b29e02018-06-21 14:58:01844}
845
Sebastian Janssoncec24332019-12-04 13:26:50846# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 14:00:37847rtc_source_set("network_emulation_manager_api") {
848 visibility = [ "*" ]
849 sources = [
Sebastian Janssoncec24332019-12-04 13:26:50850 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 14:00:37851 "test/network_emulation_manager.h",
852 ]
853 deps = [
Artem Titovcf781282020-07-28 11:45:16854 ":array_view",
Niels Möller5e7a3ae2021-09-09 13:54:42855 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 15:07:35856 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 14:00:37857 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 09:12:56858 ":time_controller",
Per K569849e2024-04-29 08:37:37859 "..//test/network:simulated_network",
Björn Tereliusb22cabc2022-06-02 08:51:59860 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09861 "../rtc_base:network",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01862 "../rtc_base:network_constants",
863 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 13:26:50864 "test/network_emulation",
Artem Titov806299e2019-04-12 10:17:19865 "units:data_rate",
866 "units:data_size",
867 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 14:00:37868 ]
869}
870
Sebastian Jansson6ce033a2020-01-22 09:12:56871rtc_source_set("time_controller") {
872 visibility = [ "*" ]
873 sources = [
874 "test/time_controller.cc",
875 "test/time_controller.h",
876 ]
877
878 deps = [
Mirko Bonadeie5f4c6b2021-01-15 09:41:01879 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 09:12:56880 "../rtc_base/synchronization:yield_policy",
881 "../system_wrappers",
882 "task_queue",
883 "units:time_delta",
884 "units:timestamp",
885 ]
886}
887
Ying Wang3b790f32018-01-19 16:58:57888rtc_source_set("fec_controller_api") {
889 visibility = [ "*" ]
890 sources = [
891 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 13:19:43892 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 16:58:57893 ]
894
895 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27896 "../modules:module_fec_api",
Danil Chapovalov55a61892024-01-03 17:39:27897 "environment",
Niels Möller8f7ce222019-03-21 14:43:58898 "video:video_frame_type",
Ying Wang3b790f32018-01-19 16:58:57899 ]
900}
901
Ying Wang0810a7c2019-04-10 11:48:24902rtc_source_set("network_state_predictor_api") {
903 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10904 sources = [ "network_state_predictor.h" ]
Björn Terelius05965032024-05-24 09:40:52905 deps = [ "transport:bandwidth_usage" ]
Ying Wang0810a7c2019-04-10 11:48:24906}
907
kwiberg529662a2017-09-04 12:43:17908rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53909 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10910 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 12:43:17911 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42912 "../rtc_base:checks",
913 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17914 ]
915}
916
Niels Möller9155e492017-10-23 09:22:30917rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53918 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10919 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 14:58:01920 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:30921 ":ref_count",
Tommi86ee89f2021-04-20 14:58:01922 "../rtc_base:macromagic",
923 "../rtc_base:refcount",
924 ]
Niels Möller9155e492017-10-23 09:22:30925}
926
Mirko Bonadei86d053c2019-10-17 19:32:04927rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 13:57:03928 visibility = [ "*" ]
929 sources = [
930 "ice_transport_factory.cc",
931 "ice_transport_factory.h",
932 ]
933 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28934 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 13:57:03935 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 08:36:38936 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 10:16:35937 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 13:57:03938 ":scoped_refptr",
Harald Alvestrand9a953b22024-01-26 07:11:50939 "../p2p:connection",
Harald Alvestranda310d782024-01-25 12:27:18940 "../p2p:ice_transport_internal",
941 "../p2p:p2p_constants",
942 "../p2p:p2p_transport_channel",
Harald Alvestrand3bddaed2024-02-06 22:54:25943 "../p2p:port_allocator",
Harald Alvestrand98462622019-01-30 13:57:03944 "../p2p:rtc_p2p",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01945 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 09:33:59946 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 21:07:33947 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 13:57:03948 ]
949}
950
Mirko Bonadei86d053c2019-10-17 19:32:04951rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 09:49:27952 visibility = [ "*" ]
953 sources = [
954 "test/neteq_simulator.cc",
955 "test/neteq_simulator.h",
956 ]
Jakob Ivarssone0f08a32024-04-02 09:58:19957 deps = [ "neteq:neteq_api" ]
Ivo Creusen55de08e2018-09-03 09:49:27958}
959
Artem Titov741daaf2019-03-21 13:37:36960rtc_source_set("function_view") {
961 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10962 sources = [ "function_view.h" ]
963 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 13:37:36964}
965
Artem Titovb586d822021-02-04 14:06:50966rtc_source_set("sequence_checker") {
967 visibility = [ "*" ]
968 sources = [ "sequence_checker.h" ]
969 deps = [
970 "../rtc_base:checks",
971 "../rtc_base:macromagic",
972 "../rtc_base/synchronization:sequence_checker_internal",
973 ]
974}
975
kjellanderfd5b4e92016-06-13 19:08:33976if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37977 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 19:32:04978 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 11:22:52979 visibility = [ "*" ]
980 testonly = true
981 sources = [
982 "test/audioproc_float.cc",
983 "test/audioproc_float.h",
984 ]
985
986 deps = [
Artem Titov94b57c02019-03-21 12:35:10987 "../modules/audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:52988 "../modules/audio_processing:audioproc_f_impl",
Florent Castelli0afde762024-04-19 15:07:08989 "audio:audio_processing",
Ivo Creusen2cb41052018-03-15 11:22:52990 ]
991 }
Ivo Creusen55de08e2018-09-03 09:49:27992
Mirko Bonadei86d053c2019-10-17 19:32:04993 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 09:49:27994 visibility = [ "*" ]
995 testonly = true
996 sources = [
997 "test/neteq_simulator_factory.cc",
998 "test/neteq_simulator_factory.h",
999 ]
1000 deps = [
1001 ":neteq_simulator_api",
1002 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 08:30:581003 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 16:17:091004 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 11:44:121005 "//third_party/abseil-cpp/absl/flags:flag",
1006 "//third_party/abseil-cpp/absl/flags:parse",
Florent Castelli99c519b2024-05-23 11:21:531007 "//third_party/abseil-cpp/absl/strings:string_view",
Ivo Creusen26d52e12020-03-24 14:59:261008 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 09:49:271009 ]
1010 }
Ivo Creusen2cb41052018-03-15 11:22:521011 }
1012
Rasmus Brandt0cedc052018-05-31 10:53:001013 rtc_source_set("simulcast_test_fixture_api") {
1014 visibility = [ "*" ]
1015 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101016 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 10:53:001017 }
1018
Mirko Bonadei86d053c2019-10-17 19:32:041019 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 10:53:001020 visibility = [ "*" ]
1021 testonly = true
1022 sources = [
1023 "test/create_simulcast_test_fixture.cc",
1024 "test/create_simulcast_test_fixture.h",
1025 ]
1026 deps = [
1027 ":simulcast_test_fixture_api",
1028 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 10:53:001029 "video_codecs:video_codecs_api",
1030 ]
Rasmus Brandt0cedc052018-05-31 10:53:001031 }
1032
Sergey Silkin2e1a9a42022-12-15 09:15:181033 rtc_library("videocodec_test_stats_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551034 visibility = [ "*" ]
1035 testonly = true
1036 sources = [
Kári Tristan Helgason169005d2018-05-22 11:34:141037 "test/videocodec_test_stats.cc",
1038 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:551039 ]
1040 deps = [
Sergey Silkin2e1a9a42022-12-15 09:15:181041 "../api/units:data_rate",
1042 "../api/units:frequency",
Jonas Olsson366a50c2018-09-06 11:41:301043 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 14:43:581044 "video:video_frame_type",
Florent Castelli99c519b2024-05-23 11:21:531045 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin2e1a9a42022-12-15 09:15:181046 ]
Sergey Silkin2e1a9a42022-12-15 09:15:181047 }
1048
1049 rtc_library("videocodec_test_fixture_api") {
1050 visibility = [ "*" ]
1051 testonly = true
1052 sources = [ "test/videocodec_test_fixture.h" ]
1053 deps = [
1054 ":videocodec_test_stats_api",
1055 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 09:56:551056 "video_codecs:video_codecs_api",
1057 ]
1058 }
1059
Mirko Bonadei86d053c2019-10-17 19:32:041060 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 09:56:551061 visibility = [ "*" ]
1062 testonly = true
1063 sources = [
1064 "test/create_videocodec_test_fixture.cc",
1065 "test/create_videocodec_test_fixture.h",
1066 ]
1067 deps = [
1068 ":videocodec_test_fixture_api",
1069 "../modules/video_coding:video_codecs_test_framework",
1070 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 09:56:551071 "video_codecs:video_codecs_api",
1072 ]
Kári Tristan Helgason9d96e922018-05-04 09:56:551073 }
1074
kjellander2f6af9c2017-03-03 06:26:231075 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 11:43:101076 visibility = [ "*" ]
kjellander2f6af9c2017-03-03 06:26:231077 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101078 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-03 06:26:231079
kjellander2f6af9c2017-03-03 06:26:231080 deps = [
jianjun.zhuc0247402017-07-11 13:20:451081 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:491082 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:231083 ]
1084 }
1085
Florent Castelli2b4f5132021-07-16 15:13:541086 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-16 22:48:101087 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 15:13:541088 testonly = true
1089 sources = [ "test/mock_audio_sink.h" ]
1090
1091 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421092 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 15:13:541093 "../test:test_support",
Florent Castelli99c519b2024-05-23 11:21:531094 "//third_party/abseil-cpp/absl/types:optional",
Florent Castelli2b4f5132021-07-16 15:13:541095 ]
Florent Castelli2b4f5132021-07-16 15:13:541096 }
1097
Steve Antonc49c7d22020-11-05 03:21:491098 rtc_source_set("mock_data_channel") {
1099 visibility = [ "*" ]
1100 testonly = true
1101 sources = [ "test/mock_data_channel.h" ]
1102
1103 deps = [
1104 ":libjingle_peerconnection_api",
1105 "../test:test_support",
1106 ]
1107 }
1108
Florent Castelli8c6d88f2022-05-11 16:33:281109 rtc_source_set("mock_dtmf_sender") {
1110 visibility = [ "*" ]
1111 testonly = true
1112 sources = [ "test/mock_dtmf_sender.h" ]
1113
1114 deps = [
Florent Castelliacabb362022-10-18 15:05:161115 ":dtmf_sender_interface",
Florent Castelli8c6d88f2022-05-11 16:33:281116 ":libjingle_peerconnection_api",
1117 "../test:test_support",
1118 ]
1119 }
1120
Elad Alon45befc52019-07-02 09:20:091121 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 11:43:101122 visibility = [ "*" ]
Elad Alon45befc52019-07-02 09:20:091123 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101124 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 09:20:091125 deps = [
1126 ":fec_controller_api",
1127 "../test:test_support",
1128 ]
1129 }
1130
Mirko Bonadei86d053c2019-10-17 19:32:041131 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101132 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571133 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031134 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571135 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421136 # For api/crypto/frame_encryptor_interface.h
1137 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571138 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151139 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571140 ]
1141 }
1142
Mirko Bonadei86d053c2019-10-17 19:32:041143 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101144 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571145 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031146 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 16:52:571147 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421148 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 16:52:571149 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 12:42:151150 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571151 ]
1152 }
1153
Tony Herre9c6874602024-01-26 10:16:451154 rtc_library("mock_frame_transformer") {
1155 visibility = [ "*" ]
1156 testonly = true
1157 sources = [ "test/mock_frame_transformer.h" ]
1158 deps = [
1159 ":frame_transformer_interface",
1160 "../test:test_support",
1161 ]
1162 }
1163
Jonas Oreland65455162022-06-08 09:25:461164 rtc_library("mock_encoder_selector") {
1165 visibility = [ "*" ]
1166 testonly = true
1167 sources = [ "test/mock_encoder_selector.h" ]
1168 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421169 ":libjingle_peerconnection_api",
1170 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 09:25:461171 "../test:test_support",
1172 ]
1173 }
1174
Mirko Bonadei86d053c2019-10-17 19:32:041175 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101176 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 16:52:571177 testonly = true
1178 sources = [
1179 "test/fake_frame_encryptor.cc",
1180 "test/fake_frame_encryptor.h",
1181 ]
1182 deps = [
1183 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421184 ":libjingle_peerconnection_api",
1185 ":make_ref_counted",
Harald Alvestrande8a2b3c2023-10-31 13:30:301186 ":ref_count",
Niels Möller6dcd4dc2019-08-26 08:45:281187 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 16:52:571188 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 00:54:121189 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 12:42:151190 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 16:52:571191 ]
1192 }
1193
Mirko Bonadei86d053c2019-10-17 19:32:041194 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 11:43:101195 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 21:22:341196 testonly = true
1197 sources = [
1198 "test/fake_frame_decryptor.cc",
1199 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 21:22:341200 ]
1201 deps = [
1202 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:421203 ":libjingle_peerconnection_api",
1204 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 08:45:281205 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 21:22:341206 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 12:42:151207 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 21:22:341208 ]
1209 }
1210
Steve Anton60be6a92020-11-05 22:32:181211 rtc_source_set("mock_media_stream_interface") {
1212 visibility = [ "*" ]
1213 testonly = true
1214 sources = [ "test/mock_media_stream_interface.h" ]
1215
1216 deps = [
1217 ":media_stream_interface",
1218 "../test:test_support",
1219 ]
1220 }
1221
Niels Möller573b1452022-06-21 09:37:291222 rtc_source_set("mock_packet_socket_factory") {
1223 visibility = [ "*" ]
1224 testonly = true
1225 sources = [ "test/mock_packet_socket_factory.h" ]
1226
1227 deps = [
1228 ":packet_socket_factory",
1229 "../test:test_support",
1230 ]
1231 }
1232
Jiawei Ou651b92e2018-06-29 22:46:441233 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 21:34:171234 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 22:46:441235 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101236 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 22:46:441237
1238 deps = [
1239 ":libjingle_peerconnection_api",
Harald Alvestrande8a2b3c2023-10-31 13:30:301240 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421241 "../api:scoped_refptr",
1242 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 22:46:441243 "../test:test_support",
1244 ]
1245 }
1246
Steve Antonf84ab8e2020-06-03 16:18:241247 rtc_source_set("mock_peer_connection_factory_interface") {
1248 visibility = [ "*" ]
1249 testonly = true
1250 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1251
1252 deps = [
1253 ":libjingle_peerconnection_api",
1254 "../test:test_support",
1255 ]
1256 }
1257
Harald Alvestrand98fe9852022-10-24 09:43:221258 rtc_source_set("mock_session_description_interface") {
1259 visibility = [ "*" ]
1260 testonly = true
1261 sources = [ "test/mock_session_description_interface.h" ]
1262 deps = [
1263 ":libjingle_peerconnection_api",
1264 "../test:test_support",
1265 ]
1266 }
1267
Mirko Bonadei26e5a822023-11-14 13:57:231268 rtc_source_set("mock_transformable_frame") {
1269 visibility = [ "*" ]
1270 testonly = true
1271 sources = [ "test/mock_transformable_frame.h" ]
1272 deps = [
1273 ":array_view",
1274 ":frame_transformer_interface",
1275 "../test:test_support",
1276 "units:timestamp",
1277 ]
1278 }
1279
Harald Alvestrand0ccfbd22021-04-08 07:25:041280 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 11:43:101281 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:041282 testonly = true
1283 sources = [ "test/mock_async_dns_resolver.h" ]
1284 deps = [
1285 ":async_dns_resolver",
1286 "../test:test_support",
1287 ]
1288 }
1289
Patrik Höglund4b9e6ba2017-12-19 09:32:111290 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 22:37:221291 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 09:32:111292 testonly = true
1293 sources = [
Steve Anton43ef5d92020-11-05 22:37:221294 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 09:32:111295 "test/mock_rtpreceiver.h",
1296 "test/mock_rtpsender.h",
1297 ]
1298
1299 deps = [
1300 ":libjingle_peerconnection_api",
Florent Castelliacabb362022-10-18 15:05:161301 ":rtp_sender_interface",
Jack Smithadf35a32022-11-29 14:42:381302 "../api/crypto:frame_decryptor_interface",
Patrik Höglund4b9e6ba2017-12-19 09:32:111303 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:111304 ]
1305 }
1306
Tove Petersson1e2d9512023-03-05 11:03:061307 rtc_source_set("mock_transformable_audio_frame") {
1308 visibility = [ "*" ]
1309 testonly = true
1310 sources = [ "test/mock_transformable_audio_frame.h" ]
1311
1312 deps = [
1313 ":frame_transformer_interface",
1314 "../test:test_support",
1315 ]
1316 }
1317
Marina Cioceabb13f382020-05-15 06:24:171318 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 11:43:101319 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 06:24:171320 testonly = true
1321 sources = [ "test/mock_transformable_video_frame.h" ]
1322
1323 deps = [
1324 ":frame_transformer_interface",
1325 "../test:test_support",
1326 ]
1327 }
1328
Jiawei Ou4206a0a2018-07-20 22:49:431329 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 11:43:101330 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 22:49:431331 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101332 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 22:49:431333
1334 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421335 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 22:49:431336 "../test:test_support",
1337 ]
1338 }
1339
Jiawei Ouc2ebe212018-11-08 18:02:561340 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101341 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 18:02:561342 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:101343 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 18:02:561344
1345 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421346 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 18:02:561347 "../test:test_support",
1348 ]
1349 }
1350
Emircan Uysalerdbcac7f2017-10-31 06:10:121351 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 11:43:101352 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-31 06:10:121353 testonly = true
1354 sources = [
1355 "test/mock_video_decoder_factory.h",
1356 "test/mock_video_encoder_factory.h",
1357 ]
1358
Emircan Uysalerdbcac7f2017-10-31 06:10:121359 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421360 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:121361 "../test:test_support",
Danil Chapovalovc708c002024-01-22 12:17:051362 "environment",
Emircan Uysalerdbcac7f2017-10-31 06:10:121363 ]
1364 }
1365
Mirko Bonadei86d053c2019-10-17 19:32:041366 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 09:55:131367 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 09:55:131368 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031369 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 09:55:131370
1371 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421372 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 09:55:131373 "../test:test_support",
1374 ]
1375 }
1376
Mirko Bonadei86d053c2019-10-17 19:32:041377 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 09:55:131378 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 08:01:301379 testonly = true
Danil Chapovalovfc115192020-05-08 13:03:031380 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 08:01:301381
1382 deps = [
Florent Castelli123a0ed2022-11-10 13:28:421383 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 08:01:301384 "../test:test_support",
1385 ]
1386 }
1387
Florent Castelli63cc46c2021-07-16 23:32:401388 rtc_library("mock_video_track") {
1389 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-16 23:32:401390 testonly = true
1391 sources = [ "test/mock_video_track.h" ]
1392
1393 deps = [
Harald Alvestrande8a2b3c2023-10-31 13:30:301394 ":ref_count",
Florent Castelli123a0ed2022-11-10 13:28:421395 "../api:media_stream_interface",
1396 "../api:scoped_refptr",
1397 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-16 23:32:401398 "../test:test_support",
1399 ]
1400 }
1401
Bjorn A Mellemc4f86542019-11-21 18:37:181402 rtc_library("create_time_controller") {
1403 visibility = [ "*" ]
1404 testonly = true
1405 sources = [
1406 "test/create_time_controller.cc",
1407 "test/create_time_controller.h",
1408 ]
1409
1410 deps = [
Danil Chapovalov4fd1cc72023-11-03 11:51:311411 ":enable_media_with_defaults",
1412 ":libjingle_peerconnection_api",
Bjorn A Mellemc4f86542019-11-21 18:37:181413 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 08:30:071414 "../call",
Sebastian Jansson7aa2edf2020-01-23 09:00:331415 "../call:call_interfaces",
Danil Chapovalov4fd1cc72023-11-03 11:51:311416 "../pc:media_factory",
1417 "../rtc_base:checks",
1418 "../system_wrappers",
Bjorn A Mellemc4f86542019-11-21 18:37:181419 "../test/time_controller",
Danil Chapovalov680f1032023-11-27 16:56:491420 "environment",
Danil Chapovalovabd78142023-12-05 16:11:151421 "environment:environment_factory",
Florent Castelli99c519b2024-05-23 11:21:531422 "//third_party/abseil-cpp/absl/base:nullability",
Bjorn A Mellemc4f86542019-11-21 18:37:181423 ]
1424 }
1425
Mirko Bonadei86d053c2019-10-17 19:32:041426 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 08:41:421427 testonly = true
1428
1429 sources = [
1430 "array_view_unittest.cc",
Tommif7b22c62024-02-15 08:18:341431 "candidate_unittest.cc",
Jonas Oreland128c4dc2022-03-30 05:57:481432 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 13:37:361433 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001434 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 11:53:511435 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 12:53:421436 "rtp_packet_info_unittest.cc",
1437 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 17:11:001438 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 09:24:431439 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 14:06:501440 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 18:37:181441 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 11:01:031442 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 08:41:421443 ]
1444
Niels Möller2e47f7c2018-10-16 08:41:421445 deps = [
1446 ":array_view",
Tommif7b22c62024-02-15 08:18:341447 ":candidate",
Bjorn A Mellemc4f86542019-11-21 18:37:181448 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 05:57:481449 ":field_trials",
1450 ":field_trials_view",
Artem Titov741daaf2019-03-21 13:37:361451 ":function_view",
Niels Möller2e47f7c2018-10-16 08:41:421452 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 11:01:031453 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 08:51:231454 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 11:53:511455 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 12:53:421456 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 08:45:281457 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 09:24:431458 ":scoped_refptr",
Artem Titovb586d822021-02-04 14:06:501459 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 18:37:181460 ":time_controller",
Tommif7b22c62024-02-15 08:18:341461 "../p2p:rtc_p2p",
Florent Castellif9c59842022-04-19 15:07:231462 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 08:41:421463 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 12:15:081464 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 10:18:281465 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 14:57:521466 "../rtc_base:rtc_event",
Tommif7b22c62024-02-15 08:18:341467 "../rtc_base:ssl",
Artem Titovb586d822021-02-04 14:06:501468 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 13:20:221469 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 18:37:181470 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 05:57:481471 "../system_wrappers:field_trial",
Emil Lundmark2e3069b2022-12-01 15:20:371472 "../test:field_trial",
Niels Möllerd8b9ed72019-05-08 11:53:511473 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 05:57:481474 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 08:41:421475 "../test:test_support",
Danil Chapovalove7b48a12023-11-22 15:01:341476 "environment:environment_unittests",
Danil Chapovalov2684ab32019-02-26 09:18:081477 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 11:56:071478 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 15:04:101479 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 05:57:481480 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 18:37:181481 "units:time_delta",
1482 "units:timestamp",
Niels Möller2e47f7c2018-10-16 08:41:421483 "units:units_unittests",
philipel8615bf02022-05-05 13:12:131484 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 12:41:231485 "video:rtp_video_frame_assembler_unittests",
Tove Petersson1fccaa42023-02-28 13:07:421486 "video:video_frame_metadata_unittest",
Florent Castelli99c519b2024-05-23 11:21:531487 "//third_party/abseil-cpp/absl/strings:string_view",
Emil Lundmark6bf20cc2022-09-21 13:20:221488 "//third_party/abseil-cpp/absl/types:optional",
1489 ]
Niels Möller2e47f7c2018-10-16 08:41:421490 }
Harald Alvestrand3cc45d42019-03-14 04:42:041491
Mirko Bonadei86d053c2019-10-17 19:32:041492 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 04:42:041493 testonly = true
1494
Mirko Bonadeiccbe95f2020-01-21 11:10:101495 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 04:42:041496
1497 deps = [
1498 ":fake_frame_decryptor",
1499 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:041500 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 04:42:041501 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 15:13:541502 ":mock_audio_sink",
Steve Antonc49c7d22020-11-05 03:21:491503 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 16:33:281504 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 04:42:041505 ":mock_frame_decryptor",
1506 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 22:32:181507 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 09:37:291508 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 16:18:241509 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 04:42:041510 ":mock_peerconnectioninterface",
1511 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:221512 ":mock_session_description_interface",
Tove Petersson1e2d9512023-03-05 11:03:061513 ":mock_transformable_audio_frame",
Mirko Bonadei26e5a822023-11-14 13:57:231514 ":mock_transformable_frame",
Marina Cioceabb13f382020-05-15 06:24:171515 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 04:42:041516 ":mock_video_bitrate_allocator",
1517 ":mock_video_bitrate_allocator_factory",
1518 ":mock_video_codec_factory",
1519 ":mock_video_decoder",
1520 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-16 23:32:401521 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 04:42:041522 ":rtc_api_unittests",
1523 "units:units_unittests",
1524 ]
1525 }
kjellanderfd5b4e92016-06-13 19:08:331526}
Jonas Orelanded99dae2022-03-09 08:28:101527
Emil Lundmark1c8103d2022-09-21 13:20:221528rtc_source_set("field_trials_registry") {
1529 visibility = [ "*" ]
1530 sources = [
1531 "field_trials_registry.cc",
1532 "field_trials_registry.h",
1533 ]
1534 deps = [
1535 ":field_trials_view",
1536 "../experiments:registered_field_trials",
1537 "../rtc_base:checks",
Emil Lundmark9109e852023-02-28 12:57:011538 "../rtc_base:logging",
Emil Lundmark1c8103d2022-09-21 13:20:221539 "../rtc_base/containers:flat_set",
1540 "../rtc_base/system:rtc_export",
Emil Lundmark1c8103d2022-09-21 13:20:221541 "//third_party/abseil-cpp/absl/algorithm:container",
Florent Castelli99c519b2024-05-23 11:21:531542 "//third_party/abseil-cpp/absl/strings:string_view",
Emil Lundmark1c8103d2022-09-21 13:20:221543 ]
1544}
1545
Jonas Orelande62c2f22022-03-29 09:04:481546rtc_source_set("field_trials_view") {
1547 visibility = [ "*" ]
1548 sources = [ "field_trials_view.h" ]
Florent Castelli99c519b2024-05-23 11:21:531549 deps = [
1550 "../rtc_base/system:rtc_export",
1551 "//third_party/abseil-cpp/absl/strings",
1552 "//third_party/abseil-cpp/absl/strings:string_view",
1553 ]
Jonas Orelande62c2f22022-03-29 09:04:481554}
1555
Jonas Orelanded99dae2022-03-09 08:28:101556rtc_source_set("webrtc_key_value_config") {
1557 visibility = [ "*" ]
1558 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 09:04:481559 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 08:28:101560}
Jonas Oreland128c4dc2022-03-30 05:57:481561
1562rtc_library("field_trials") {
1563 visibility = [ "*" ]
1564 sources = [
1565 "field_trials.cc",
1566 "field_trials.h",
1567 ]
1568 deps = [
Emil Lundmark1c8103d2022-09-21 13:20:221569 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 05:57:481570 "../rtc_base:checks",
1571 "../rtc_base/containers:flat_map",
1572 "../system_wrappers:field_trial",
Florent Castelli99c519b2024-05-23 11:21:531573 "//third_party/abseil-cpp/absl/strings:string_view",
Jonas Oreland128c4dc2022-03-30 05:57:481574 ]
Jonas Oreland128c4dc2022-03-30 05:57:481575}
Harald Alvestrand5c4509a2022-11-25 10:03:341576
1577rtc_library("frame_transformer_factory") {
1578 visibility = [ "*" ]
1579 sources = [
1580 "frame_transformer_factory.cc",
1581 "frame_transformer_factory.h",
1582 ]
1583 deps = [
1584 ":frame_transformer_interface",
Harald Alvestrande8a2b3c2023-10-31 13:30:301585 ":ref_count",
Harald Alvestrand5c4509a2022-11-25 10:03:341586 ":scoped_refptr",
Tove Petersson1e2d9512023-03-05 11:03:061587 "../audio:audio",
Harald Alvestrand5c4509a2022-11-25 10:03:341588 "../modules/rtp_rtcp",
Harald Alvestrand5c4509a2022-11-25 10:03:341589 "video:encoded_frame",
1590 "video:video_frame_metadata",
1591 ]
1592}