blob: b3c51802ab5fa1cebdd9b9d65f86ac5cc2276bea [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# 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 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010026 sources = [ "call/audio_sink.h" ]
kjellandera69d9732016-08-31 07:33:05 -070027}
28
Niels Möller8366e172018-02-14 12:20:13 +010029rtc_source_set("callfactory_api") {
30 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010031 sources = [ "call/call_factory_interface.h" ]
Vojin Ilic504fc192021-05-31 14:02:28 +020032 deps = [
33 "../call:rtp_interfaces",
34 "../rtc_base/system:rtc_export",
35 ]
Niels Möller8366e172018-02-14 12:20:13 +010036}
37
Danil Chapovalov5bf58062019-06-18 16:43:37 +020038if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020039 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020040 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020041 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020042 sources = [
43 "create_peerconnection_factory.cc",
44 "create_peerconnection_factory.h",
45 ]
46 deps = [
47 ":callfactory_api",
48 ":libjingle_peerconnection_api",
49 ":scoped_refptr",
50 "../api/rtc_event_log:rtc_event_log_factory",
51 "../media:rtc_audio_video",
52 "../media:rtc_media_base",
53 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +000055 "../pc:peer_connection_factory",
56 "../pc:webrtc_sdp",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020057 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +010058 "../rtc_base:threading",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +000059 "../stats:rtc_stats",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020060 "audio:audio_mixer_api",
61 "audio_codecs:audio_codecs_api",
62 "task_queue:default_task_queue_factory",
Erik Språngceb44952020-09-22 11:36:35 +020063 "transport:field_trial_based_config",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020064 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020065 ]
66 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010067}
68
Mirko Bonadei86d053c2019-10-17 21:32:04 +020069rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 14:27:03 +010070 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010071 sources = [
72 "rtp_headers.cc",
73 "rtp_headers.h",
74 ]
75 deps = [
76 ":array_view",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020077 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020078 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010079 ]
Mirko Bonadei8b7cfa12020-06-03 21:23:41 +020080 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllerb8389522019-03-19 14:27:03 +010081}
82
Mirko Bonadei86d053c2019-10-17 21:32:04 +020083rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020084 visibility = [ "*" ]
85 sources = [
86 "rtp_packet_info.cc",
87 "rtp_packet_info.h",
88 "rtp_packet_infos.h",
89 ]
90 deps = [
91 ":array_view",
Niels Möller7c8c4db2022-06-13 10:36:38 +020092 ":make_ref_counted",
Chen Xingd2a66862019-06-03 14:53:42 +020093 ":refcountedbase",
94 ":rtp_headers",
95 ":scoped_refptr",
Johannes Kron0809e7e2020-01-21 11:54:21 +010096 "../rtc_base/system:rtc_export",
Alessio Bazzica56b96ff2022-09-20 11:16:16 +020097 "units:time_delta",
Johannes Kronf7de74c2021-04-30 13:10:56 +020098 "units:timestamp",
Chen Xingd2a66862019-06-03 14:53:42 +020099 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200100 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Chen Xingd2a66862019-06-03 14:53:42 +0200101}
102
Markus Handell6fa9e682021-10-13 22:50:53 +0200103rtc_source_set("video_track_source_constraints") {
104 visibility = [ "*" ]
105 sources = [ "video_track_source_constraints.h" ]
106 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
107}
108
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200109rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200110 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200111 sources = [
112 "media_stream_interface.cc",
113 "media_stream_interface.h",
Harald Alvestrand9cb42c82020-10-11 13:03:47 +0000114 "media_stream_track.h",
Niels Möllere942b142019-09-17 14:30:41 +0200115 "notifier.h",
116 ]
117 deps = [
118 ":audio_options_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200119 ":make_ref_counted",
Niels Möllere942b142019-09-17 14:30:41 +0200120 ":rtp_parameters",
121 ":scoped_refptr",
Byoungchan Leeb36f6892022-03-03 05:55:22 +0900122 ":sequence_checker",
Markus Handell6fa9e682021-10-13 22:50:53 +0200123 ":video_track_source_constraints",
Niels Möllere942b142019-09-17 14:30:41 +0200124 "../modules/audio_processing:audio_processing_statistics",
125 "../rtc_base:checks",
126 "../rtc_base:refcount",
Byoungchan Leeb36f6892022-03-03 05:55:22 +0900127 "../rtc_base/system:no_unique_address",
Niels Möllere942b142019-09-17 14:30:41 +0200128 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100129 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200130 "video:video_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200131 ]
Niels Möllerc397fc62022-05-30 11:26:40 +0200132 absl_deps = [
133 "//third_party/abseil-cpp/absl/strings",
134 "//third_party/abseil-cpp/absl/types:optional",
135 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200136}
137
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200138rtc_library("candidate") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200139 visibility = [ "*" ]
140
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000141 sources = [
142 "candidate.cc",
143 "candidate.h",
144 ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200145 deps = [
146 "../rtc_base",
147 "../rtc_base:checks",
148 "../rtc_base:ip_address",
149 "../rtc_base:logging",
150 "../rtc_base:network_constants",
151 "../rtc_base:socket_address",
152 "../rtc_base:stringutils",
153 "../rtc_base/system:rtc_export",
154 ]
155 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
156}
157
158rtc_source_set("turn_customizer") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200159 visibility = [ "*" ]
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000160 sources = [ "turn_customizer.h" ]
Mirko Bonadei9d9c2d52022-10-07 21:47:49 +0000161 deps = [ "transport:stun_types" ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200162}
163
164rtc_source_set("ice_transport_interface") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200165 visibility = [ "*" ]
166
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000167 sources = [ "ice_transport_interface.h" ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200168 deps = [
169 ":async_dns_resolver",
170 ":packet_socket_factory",
171 ":rtc_error",
172 ":scoped_refptr",
173 "../rtc_base:refcount",
174 "rtc_event_log:rtc_event_log",
175 ]
176}
177
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000178rtc_library("dtls_transport_interface") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200179 visibility = [ "*" ]
180
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000181 sources = [
182 "dtls_transport_interface.cc",
183 "dtls_transport_interface.h",
184 ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200185 deps = [
186 ":ice_transport_interface",
187 ":rtc_error",
188 ":scoped_refptr",
189 "../rtc_base",
190 "../rtc_base:refcount",
191 "../rtc_base/system:rtc_export",
192 ]
193 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
194}
195
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200196rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000197 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700198 cflags = []
199 sources = [
Harald Alvestrand0d018412021-11-04 13:52:31 +0000200 "crypto_params.h",
Steve Anton10542f22019-01-11 09:11:00 -0800201 "data_channel_interface.cc",
202 "data_channel_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800203 "dtmf_sender_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800204 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700205 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800206 "jsep_ice_candidate.cc",
207 "jsep_ice_candidate.h",
208 "jsep_session_description.h",
Henrik Boström3e6931b2022-11-11 10:07:34 +0100209 "legacy_stats_types.cc",
210 "legacy_stats_types.h",
Steve Anton10542f22019-01-11 09:11:00 -0800211 "peer_connection_interface.cc",
212 "peer_connection_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800213 "rtp_receiver_interface.cc",
214 "rtp_receiver_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800215 "rtp_sender_interface.h",
216 "rtp_transceiver_interface.cc",
217 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100218 "sctp_transport_interface.cc",
219 "sctp_transport_interface.h",
Henrik Boström831ae4e2020-07-29 12:04:00 +0200220 "set_local_description_observer_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800221 "set_remote_description_observer_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800222 "stats_types.h",
Steve Anton10542f22019-01-11 09:11:00 -0800223 "uma_metrics.h",
Markus Handelle93fe6c2021-05-20 22:46:31 +0200224 "video_track_source_proxy_factory.h",
kjellanderc76dc952016-06-03 03:09:32 -0700225 ]
kjellanderc76dc952016-06-03 03:09:32 -0700226 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100227 ":array_view",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000228 ":async_dns_resolver",
Niels Möllera6fe2612018-01-19 11:28:54 +0100229 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100230 ":callfactory_api",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000231 ":candidate",
232 ":dtls_transport_interface",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100233 ":fec_controller_api",
Jonas Oreland128c4dc2022-03-30 07:57:48 +0200234 ":field_trials",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200235 ":field_trials_view",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100236 ":frame_transformer_interface",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000237 ":ice_transport_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100238 ":libjingle_logging_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200239 ":make_ref_counted",
Niels Möllere942b142019-09-17 14:30:41 +0200240 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200241 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200242 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200243 ":priority",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200244 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700245 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200246 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200247 ":rtp_parameters",
Markus Handell0357b3e2020-03-16 13:40:51 +0100248 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100249 ":scoped_refptr",
Artem Titov06159aa2021-02-09 23:38:13 +0100250 ":sequence_checker",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000251 ":turn_customizer",
Vojin Ilic504fc192021-05-31 14:02:28 +0200252 "../call:rtp_interfaces",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000253 "../p2p:rtc_p2p",
Florent Castellied4aadc2022-04-19 17:40:46 +0200254 "../rtc_base:copy_on_write_buffer",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200255 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100256 "../rtc_base:network_constants",
Florent Castellif86f6f92022-04-05 02:54:12 +0200257 "../rtc_base:refcount",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200258 "../rtc_base:stringutils",
Henrik Boström4c1e7cc2020-06-11 12:26:53 +0200259 "adaptation:resource_adaptation_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100260 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100261 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200262 "crypto:frame_decryptor_interface",
263 "crypto:frame_encryptor_interface",
264 "crypto:options",
Evan Shrubsolea7ecf112022-01-26 18:02:30 +0100265 "metronome",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100266 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200267 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200268 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200269 "transport:bitrate_settings",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700270 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200271 "transport:network_control",
Per Kjellander2bca0082020-08-28 09:15:15 +0200272 "transport:sctp_transport_factory_interface",
Niels Möllera8370302019-09-02 15:16:49 +0200273 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800274 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700275 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200276 "video:encoded_image",
Harald Alvestrandf33f7a22021-05-09 14:58:57 +0000277 "video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200278 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200279 "video:video_rtp_headers",
Jonas Oreland65455162022-06-08 11:25:46 +0200280 "video_codecs:video_codecs_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100281
282 # Basically, don't add stuff here. You might break sensitive downstream
283 # targets like pnacl. API should not depend on anything outside of this
284 # file, really. All these should arguably go away in time.
Niels Möllere24557f2019-09-19 11:36:35 +0200285 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100286 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100287 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100288 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100289 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100290 "../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100291 "../rtc_base:socket_address",
292 "../rtc_base:threading",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200293 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700294 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200295 absl_deps = [
296 "//third_party/abseil-cpp/absl/algorithm:container",
Mirko Bonadei5c9b7da2022-10-10 08:43:36 +0000297 "//third_party/abseil-cpp/absl/base:core_headers",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200298 "//third_party/abseil-cpp/absl/memory",
299 "//third_party/abseil-cpp/absl/strings",
300 "//third_party/abseil-cpp/absl/types:optional",
301 ]
ossu7bb87ee2017-01-23 04:56:25 -0800302}
kjellanderc76dc952016-06-03 03:09:32 -0700303
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100304rtc_source_set("frame_transformer_interface") {
305 visibility = [ "*" ]
306 sources = [ "frame_transformer_interface.h" ]
307 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200308 ":make_ref_counted",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100309 ":scoped_refptr",
310 "../rtc_base:refcount",
311 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 20:01:02 +0200312 "video:video_frame_metadata",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100313 ]
314}
315
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200316rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200317 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200318 sources = [
319 "rtc_error.cc",
320 "rtc_error.h",
321 ]
322 deps = [
323 "../rtc_base:checks",
324 "../rtc_base:logging",
325 "../rtc_base:macromagic",
326 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200327 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200328 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200329}
330
Patrik Höglund662e31f2019-09-05 14:35:04 +0200331rtc_source_set("packet_socket_factory") {
332 visibility = [ "*" ]
333 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200334 "async_resolver_factory.h",
335 "packet_socket_factory.h",
336 ]
337 deps = [
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000338 ":async_dns_resolver",
Harald Alvestrand985310e2021-10-01 15:11:17 +0000339 ":wrapping_async_dns_resolver",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100340 "../rtc_base:async_resolver_interface",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200341 "../rtc_base:rtc_base",
Harald Alvestrande6e2f282021-03-24 12:13:28 +0000342 "../rtc_base:socket_address",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200343 "../rtc_base/system:rtc_export",
344 ]
345}
346
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000347rtc_source_set("async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200348 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000349 sources = [ "async_dns_resolver.h" ]
350 deps = [
Sameer Vijaykarb787e262022-08-11 11:52:57 +0200351 "../rtc_base:checks",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000352 "../rtc_base:socket_address",
353 "../rtc_base/system:rtc_export",
354 ]
355}
356
Harald Alvestrand985310e2021-10-01 15:11:17 +0000357rtc_source_set("wrapping_async_dns_resolver") {
358 visibility = [
359 ":*",
360 "../p2p:rtc_p2p",
361 ]
362 sources = [
363 "wrapping_async_dns_resolver.cc",
364 "wrapping_async_dns_resolver.h",
365 ]
366 deps = [
367 ":async_dns_resolver",
368 ":sequence_checker",
369 "../rtc_base:async_resolver_interface",
370 "../rtc_base:checks",
371 "../rtc_base:macromagic",
372 "../rtc_base:socket_address",
373 "../rtc_base:threading",
374 "../rtc_base/third_party/sigslot",
375 ]
376 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
377}
378
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100379rtc_source_set("scoped_refptr") {
380 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100381 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100382}
383
Niels Möller7c8c4db2022-06-13 10:36:38 +0200384rtc_source_set("make_ref_counted") {
385 visibility = [ "*" ]
386 sources = [ "make_ref_counted.h" ]
387 deps = [ "../rtc_base:refcount" ]
388}
389
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200390rtc_source_set("video_quality_test_fixture_api") {
391 visibility = [ "*" ]
392 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100393 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200394 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200395 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200396 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200397 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200398 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200399 ":simulated_network_api",
400 "../call:fake_network",
401 "../call:rtp_interfaces",
402 "../test:test_common",
403 "../test:video_test_common",
Jonas Oreland6c2dae22022-09-29 10:28:24 +0200404 "../video/config:encoder_config",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200405 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200406 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200407 "video_codecs:video_codecs_api",
408 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200409}
410
Artem Titovd57628f2019-03-22 12:34:25 +0100411rtc_source_set("video_quality_analyzer_api") {
412 visibility = [ "*" ]
413 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100414 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100415
416 deps = [
Artem Titov3b641672020-06-02 17:18:17 +0200417 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100418 ":stats_observer_interface",
419 "video:encoded_image",
420 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200421 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100422 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200423 ]
424 absl_deps = [
Artem Titov8a0284e2020-05-29 15:49:44 +0200425 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100426 "//third_party/abseil-cpp/absl/types:optional",
427 ]
428}
429
Andrey Logvin20f45822020-07-01 08:32:15 +0000430rtc_source_set("track_id_stream_info_map") {
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200431 visibility = [ "*" ]
Andrey Logvin20f45822020-07-01 08:32:15 +0000432 sources = [ "test/track_id_stream_info_map.h" ]
433 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200434}
435
Markus Handell0357b3e2020-03-16 13:40:51 +0100436rtc_source_set("rtp_transceiver_direction") {
437 visibility = [ "*" ]
438 sources = [ "rtp_transceiver_direction.h" ]
439}
440
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200441rtc_source_set("priority") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200442 visibility = [ "*" ]
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200443 sources = [ "priority.h" ]
444}
445
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200446rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200447 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200448 sources = [
449 "media_types.cc",
450 "media_types.h",
451 "rtp_parameters.cc",
452 "rtp_parameters.h",
453 ]
454 deps = [
455 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200456 ":priority",
Markus Handell0357b3e2020-03-16 13:40:51 +0100457 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200458 "../rtc_base:checks",
459 "../rtc_base:stringutils",
460 "../rtc_base/system:rtc_export",
Jonas Oreland0deda152022-09-23 12:08:57 +0200461 "video:resolution",
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900462 "video_codecs:scalability_mode",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200463 ]
464 absl_deps = [
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900465 "//third_party/abseil-cpp/absl/container:inlined_vector",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100466 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200467 "//third_party/abseil-cpp/absl/types:optional",
468 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200469}
470
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000471if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200472 java_cpp_enum("priority_enums") {
473 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000474 }
475}
476
Artem Titovd57628f2019-03-22 12:34:25 +0100477rtc_source_set("audio_quality_analyzer_api") {
478 visibility = [ "*" ]
479 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100480 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100481
482 deps = [
483 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000484 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100485 ]
486}
487
488rtc_source_set("stats_observer_interface") {
489 visibility = [ "*" ]
490 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100491 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100492
Andrey Logvin9b526182020-06-15 16:14:07 +0000493 deps = [ ":rtc_stats_api" ]
494
495 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100496}
497
Niels Möllerf47a7242021-11-22 16:07:35 +0100498rtc_source_set("peer_network_dependencies") {
499 visibility = [ "*" ]
500 sources = [ "test/peer_network_dependencies.h" ]
501 deps = [
502 ":packet_socket_factory",
503 "../rtc_base",
504 "../rtc_base:threading",
505 ]
506}
507
Artem Titovd57628f2019-03-22 12:34:25 +0100508rtc_source_set("peer_connection_quality_test_fixture_api") {
509 visibility = [ "*" ]
510 testonly = true
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +0100511 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100512
513 deps = [
Artem Titov0d510522022-04-19 13:01:03 +0200514 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100515 ":audio_quality_analyzer_api",
516 ":callfactory_api",
517 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100518 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100519 ":function_view",
520 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49 +0000521 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200522 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200523 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100524 ":peer_network_dependencies",
Artem Titovf9ed56b2020-05-11 21:17:25 +0200525 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100526 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200527 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000528 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100529 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200530 "../media:rtc_media_base",
Artem Titov7e04b492022-03-08 01:26:03 +0100531 "../modules/audio_processing:api",
Artem Titov7017a132022-04-20 20:57:56 +0200532 "../rtc_base:checks",
Artem Titovd57628f2019-03-22 12:34:25 +0100533 "../rtc_base:rtc_base",
Artem Titovbccb4522022-06-01 22:32:15 +0200534 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100535 "../rtc_base:threading",
Artem Titov72bc2e22022-08-02 14:03:03 +0200536 "../test:fileutils",
Artem Titov2068d0d2022-10-12 15:04:06 +0200537 "../test/pc/e2e:video_dumping",
Artem Titov7e04b492022-03-08 01:26:03 +0100538 "audio:audio_mixer_api",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200539 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200540 "task_queue",
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +0100541 "test/pclf:media_configuration",
542 "test/pclf:media_quality_test_params",
Jeremy Leconte389228d2022-11-04 14:01:12 +0100543 "test/pclf:peer_configurer",
Artem Titov2068d0d2022-10-12 15:04:06 +0200544 "test/video:video_frame_writer",
Artem Titovd57628f2019-03-22 12:34:25 +0100545 "transport:network_control",
546 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100547 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100548 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200549 ]
550 absl_deps = [
Jeremy Lecontea3e51df2022-11-10 15:42:53 +0100551 "//third_party/abseil-cpp/absl/base:core_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100552 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100553 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100554 "//third_party/abseil-cpp/absl/types:optional",
555 ]
556}
557
Artem Titov503d7232019-12-04 12:37:13 +0100558rtc_source_set("frame_generator_api") {
559 visibility = [ "*" ]
560 testonly = true
Evan Shrubsole7899e972020-09-28 12:04:11 +0200561 sources = [
562 "test/frame_generator_interface.cc",
563 "test/frame_generator_interface.h",
564 ]
Artem Titov503d7232019-12-04 12:37:13 +0100565
566 deps = [
567 ":scoped_refptr",
568 "video:video_frame",
Artem Titov503d7232019-12-04 12:37:13 +0100569 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200570 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Artem Titov503d7232019-12-04 12:37:13 +0100571}
572
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200573rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200574 visibility = [ "*" ]
575 testonly = true
576 sources = [
577 "test/test_dependency_factory.cc",
578 "test/test_dependency_factory.h",
579 ]
580 deps = [
581 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100582 "../rtc_base:checks",
Tommi9b7232a2020-05-15 10:09:27 +0200583 "../rtc_base:platform_thread_types",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200584 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200585}
586
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200587if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 14:26:50 +0100588 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200589 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100590 visibility = [ "*" ]
591 testonly = true
592 sources = [
593 "test/create_network_emulation_manager.cc",
594 "test/create_network_emulation_manager.h",
595 ]
596 deps = [
597 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200598 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100599 ]
600 }
Artem Titovd57628f2019-03-22 12:34:25 +0100601
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000602 if (!build_with_chromium) {
603 rtc_library("create_video_quality_test_fixture_api") {
604 visibility = [ "*" ]
605 testonly = true
606 sources = [
607 "test/create_video_quality_test_fixture.cc",
608 "test/create_video_quality_test_fixture.h",
609 ]
610 deps = [
611 ":fec_controller_api",
612 ":network_state_predictor_api",
613 ":scoped_refptr",
614 ":video_quality_test_fixture_api",
615 "../video:video_quality_test",
616 ]
617 }
Artem Titovd57628f2019-03-22 12:34:25 +0100618
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000619 rtc_library("create_peerconnection_quality_test_fixture") {
620 visibility = [ "*" ]
621 testonly = true
622 sources = [
623 "test/create_peerconnection_quality_test_fixture.cc",
624 "test/create_peerconnection_quality_test_fixture.h",
625 ]
626
627 deps = [
628 ":audio_quality_analyzer_api",
629 ":peer_connection_quality_test_fixture_api",
630 ":time_controller",
631 ":video_quality_analyzer_api",
632 "../test/pc/e2e:peerconnection_quality_test",
Artem Titov36806052022-09-21 16:08:03 +0200633 "test/metrics:global_metrics_logger_and_exporter",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000634 ]
635 }
Artem Titovd57628f2019-03-22 12:34:25 +0100636 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100637}
Artem Titov503d7232019-12-04 12:37:13 +0100638
Artem Titov33f9d2b2019-12-05 15:59:00 +0100639rtc_library("create_frame_generator") {
640 visibility = [ "*" ]
641 testonly = true
642 sources = [
643 "test/create_frame_generator.cc",
644 "test/create_frame_generator.h",
645 ]
646 deps = [
647 ":frame_generator_api",
648 "../rtc_base:checks",
649 "../system_wrappers",
650 "../test:frame_generator_impl",
Artem Titov33f9d2b2019-12-05 15:59:00 +0100651 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200652 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200653}
654
Andrey Logvindad6a942020-05-04 17:27:09 +0000655rtc_library("create_peer_connection_quality_test_frame_generator") {
656 visibility = [ "*" ]
657 testonly = true
658 sources = [
659 "test/create_peer_connection_quality_test_frame_generator.cc",
660 "test/create_peer_connection_quality_test_frame_generator.h",
661 ]
662 deps = [
663 ":create_frame_generator",
664 ":frame_generator_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000665 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000666 "../test:fileutils",
Jeremy Leconte0e2cf6c2022-11-04 11:10:42 +0100667 "test/pclf:media_configuration",
Andrey Logvindad6a942020-05-04 17:27:09 +0000668 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200669 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Andrey Logvindad6a942020-05-04 17:27:09 +0000670}
671
Elad Alon80810732017-10-06 13:07:32 +0200672rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000673 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100674 sources = [ "rtc_event_log_output.h" ]
Björn Terelius63299a32022-07-05 10:58:52 +0200675 absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
Elad Alon80810732017-10-06 13:07:32 +0200676}
677
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200678rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200679 visibility = [ "*" ]
680 sources = [
681 "rtc_event_log_output_file.cc",
682 "rtc_event_log_output_file.h",
683 ]
684
685 deps = [
686 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200687 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200688 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200689 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200690 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200691 ]
692}
693
hbos74e1a4f2016-09-15 23:33:01 -0700694rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000695 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700696 cflags = []
697 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800698 "stats/rtc_stats.h",
699 "stats/rtc_stats_collector_callback.h",
700 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700701 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700702 ]
703
704 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200705 ":make_ref_counted",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100706 ":scoped_refptr",
Tommi86ee89f2021-04-20 16:58:01 +0200707 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100708 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +0200709 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200710 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 19:12:23 +0200711 "units:timestamp",
hbos74e1a4f2016-09-15 23:33:01 -0700712 ]
Philipp Hancke8e7a1052022-10-13 13:14:01 +0200713
714 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
hbos74e1a4f2016-09-15 23:33:01 -0700715}
716
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200717rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100718 visibility = [ "*" ]
719 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200720 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100721 "audio_options.h",
722 ]
723
724 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100725 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200726 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800727 "../rtc_base/system:rtc_export",
Niels Möllera6fe2612018-01-19 11:28:54 +0100728 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200729 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllera6fe2612018-01-19 11:28:54 +0100730}
731
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200732rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000733 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800734 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100735 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800736 "call/transport.h",
737 ]
Danil Chapovalov5312a8f2021-01-25 17:02:57 +0100738 deps = [
739 ":refcountedbase",
740 ":scoped_refptr",
741 ]
aleloia8eb7562016-11-28 07:02:13 -0800742}
nisseb2250e52016-12-02 04:01:14 -0800743
Sebastian Jansson6736df12018-11-21 19:18:39 +0100744rtc_source_set("bitrate_allocation") {
745 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100746 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100747 deps = [
748 "units:data_rate",
749 "units:time_delta",
750 ]
751}
752
Sebastian Janssoncec24332019-12-04 14:26:50 +0100753# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200754rtc_source_set("simulated_network_api") {
755 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100756 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 15:18:46 +0200757 deps = [
758 "../rtc_base",
759 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 12:41:26 +0200760 "../rtc_base:random",
Florent Castelli4467ad72022-04-04 15:18:46 +0200761 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200762 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200763}
764
Sebastian Janssoncec24332019-12-04 14:26:50 +0100765# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100766rtc_source_set("network_emulation_manager_api") {
767 visibility = [ "*" ]
768 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100769 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100770 "test/network_emulation_manager.h",
771 ]
772 deps = [
Artem Titovcf781282020-07-28 13:45:16 +0200773 ":array_view",
Niels Möller5e7a3ae2021-09-09 15:54:42 +0200774 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100775 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100776 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100777 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100778 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100779 "../rtc_base",
Björn Tereliusb22cabc2022-06-02 10:51:59 +0200780 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100781 "../rtc_base:network_constants",
782 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100783 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200784 "units:data_rate",
785 "units:data_size",
786 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100787 ]
788}
789
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100790rtc_source_set("time_controller") {
791 visibility = [ "*" ]
792 sources = [
793 "test/time_controller.cc",
794 "test/time_controller.h",
795 ]
796
797 deps = [
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100798 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100799 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100800 "../rtc_base/synchronization:yield_policy",
801 "../system_wrappers",
802 "task_queue",
803 "units:time_delta",
804 "units:timestamp",
805 ]
806}
807
Ying Wang3b790f32018-01-19 17:58:57 +0100808rtc_source_set("fec_controller_api") {
809 visibility = [ "*" ]
810 sources = [
811 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200812 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100813 ]
814
815 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100816 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100817 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100818 ]
819}
820
Ying Wang0810a7c2019-04-10 13:48:24 +0200821rtc_source_set("network_state_predictor_api") {
822 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100823 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200824}
825
kwiberg529662a2017-09-04 05:43:17 -0700826rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000827 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100828 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700829 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100830 "../rtc_base:checks",
831 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700832 ]
833}
834
Niels Möller9155e492017-10-23 11:22:30 +0200835rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000836 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100837 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 16:58:01 +0200838 deps = [
839 "../rtc_base:macromagic",
840 "../rtc_base:refcount",
841 ]
Niels Möller9155e492017-10-23 11:22:30 +0200842}
843
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200844rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100845 visibility = [ "*" ]
846 sources = [
847 "ice_transport_factory.cc",
848 "ice_transport_factory.h",
849 ]
850 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000851 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 14:57:03 +0100852 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200853 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 12:16:35 +0200854 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100855 ":scoped_refptr",
856 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100857 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100858 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200859 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700860 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100861 ]
862}
863
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200864rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200865 visibility = [ "*" ]
866 sources = [
867 "test/neteq_simulator.cc",
868 "test/neteq_simulator.h",
869 ]
870}
871
Artem Titov741daaf2019-03-21 14:37:36 +0100872rtc_source_set("function_view") {
873 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100874 sources = [ "function_view.h" ]
875 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100876}
877
Artem Titovb586d822021-02-04 15:06:50 +0100878rtc_source_set("sequence_checker") {
879 visibility = [ "*" ]
880 sources = [ "sequence_checker.h" ]
881 deps = [
882 "../rtc_base:checks",
883 "../rtc_base:macromagic",
884 "../rtc_base/synchronization:sequence_checker_internal",
885 ]
886}
887
kjellanderfd5b4e92016-06-13 12:08:33 -0700888if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000889 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200890 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100891 visibility = [ "*" ]
892 testonly = true
893 sources = [
894 "test/audioproc_float.cc",
895 "test/audioproc_float.h",
896 ]
897
898 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100899 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000900 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100901 "../modules/audio_processing:audioproc_f_impl",
902 ]
903 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200904
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200905 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200906 visibility = [ "*" ]
907 testonly = true
908 sources = [
909 "test/neteq_simulator_factory.cc",
910 "test/neteq_simulator_factory.h",
911 ]
912 deps = [
913 ":neteq_simulator_api",
914 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200915 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100916 "neteq:neteq_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200917 ]
918 absl_deps = [
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200919 "//third_party/abseil-cpp/absl/flags:flag",
920 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100921 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100922 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200923 ]
924 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100925 }
926
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200927 rtc_source_set("simulcast_test_fixture_api") {
928 visibility = [ "*" ]
929 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100930 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200931 }
932
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200933 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200934 visibility = [ "*" ]
935 testonly = true
936 sources = [
937 "test/create_simulcast_test_fixture.cc",
938 "test/create_simulcast_test_fixture.h",
939 ]
940 deps = [
941 ":simulcast_test_fixture_api",
942 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200943 "video_codecs:video_codecs_api",
944 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200945 }
946
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200947 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200948 visibility = [ "*" ]
949 testonly = true
950 sources = [
951 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200952 "test/videocodec_test_stats.cc",
953 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200954 ]
955 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200956 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200957 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100958 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200959 "video_codecs:video_codecs_api",
960 ]
961 }
962
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200963 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200964 visibility = [ "*" ]
965 testonly = true
966 sources = [
967 "test/create_videocodec_test_fixture.cc",
968 "test/create_videocodec_test_fixture.h",
969 ]
970 deps = [
971 ":videocodec_test_fixture_api",
972 "../modules/video_coding:video_codecs_test_framework",
973 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200974 "video_codecs:video_codecs_api",
975 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200976 }
977
kjellander2f6af9c2017-03-02 22:26:23 -0800978 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200979 visibility = [ "*" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800980 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100981 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800982
kjellander2f6af9c2017-03-02 22:26:23 -0800983 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700984 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100985 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800986 ]
987 }
988
Florent Castelli2b4f5132021-07-16 17:13:54 +0200989 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-17 00:48:10 +0200990 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 17:13:54 +0200991 testonly = true
992 sources = [ "test/mock_audio_sink.h" ]
993
994 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +0000995 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 17:13:54 +0200996 "../test:test_support",
997 ]
998 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
999 }
1000
Steve Antonc49c7d22020-11-04 19:21:49 -08001001 rtc_source_set("mock_data_channel") {
1002 visibility = [ "*" ]
1003 testonly = true
1004 sources = [ "test/mock_data_channel.h" ]
1005
1006 deps = [
1007 ":libjingle_peerconnection_api",
1008 "../test:test_support",
1009 ]
1010 }
1011
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001012 rtc_source_set("mock_dtmf_sender") {
1013 visibility = [ "*" ]
1014 testonly = true
1015 sources = [ "test/mock_dtmf_sender.h" ]
1016
1017 deps = [
1018 ":libjingle_peerconnection_api",
1019 "../test:test_support",
1020 ]
1021 }
1022
Elad Alon45befc52019-07-02 11:20:09 +02001023 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001024 visibility = [ "*" ]
Elad Alon45befc52019-07-02 11:20:09 +02001025 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001026 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +02001027 deps = [
1028 ":fec_controller_api",
1029 "../test:test_support",
1030 ]
1031 }
1032
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001033 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001034 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001035 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001036 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001037 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001038 # For api/crypto/frame_encryptor_interface.h
1039 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001040 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001041 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001042 ]
1043 }
1044
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001045 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001046 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001047 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001048 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001049 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001050 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001051 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001052 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001053 ]
1054 }
1055
Jonas Oreland65455162022-06-08 11:25:46 +02001056 rtc_library("mock_encoder_selector") {
1057 visibility = [ "*" ]
1058 testonly = true
1059 sources = [ "test/mock_encoder_selector.h" ]
1060 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001061 ":libjingle_peerconnection_api",
1062 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 11:25:46 +02001063 "../test:test_support",
1064 ]
1065 }
1066
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001067 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001068 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001069 testonly = true
1070 sources = [
1071 "test/fake_frame_encryptor.cc",
1072 "test/fake_frame_encryptor.h",
1073 ]
1074 deps = [
1075 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001076 ":libjingle_peerconnection_api",
1077 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001078 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001079 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +02001080 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001081 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001082 ]
1083 }
1084
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001085 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001086 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 14:22:34 -07001087 testonly = true
1088 sources = [
1089 "test/fake_frame_decryptor.cc",
1090 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -07001091 ]
1092 deps = [
1093 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001094 ":libjingle_peerconnection_api",
1095 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001096 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -07001097 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001098 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -07001099 ]
1100 }
1101
Steve Anton60be6a92020-11-05 14:32:18 -08001102 rtc_source_set("mock_media_stream_interface") {
1103 visibility = [ "*" ]
1104 testonly = true
1105 sources = [ "test/mock_media_stream_interface.h" ]
1106
1107 deps = [
1108 ":media_stream_interface",
1109 "../test:test_support",
1110 ]
1111 }
1112
Niels Möller573b1452022-06-21 11:37:29 +02001113 rtc_source_set("mock_packet_socket_factory") {
1114 visibility = [ "*" ]
1115 testonly = true
1116 sources = [ "test/mock_packet_socket_factory.h" ]
1117
1118 deps = [
1119 ":packet_socket_factory",
1120 "../test:test_support",
1121 ]
1122 }
1123
Jiawei Ou651b92e2018-06-29 15:46:44 -07001124 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 14:34:17 -07001125 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001126 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001127 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001128
1129 deps = [
1130 ":libjingle_peerconnection_api",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001131 "../api:scoped_refptr",
1132 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 15:46:44 -07001133 "../test:test_support",
1134 ]
1135 }
1136
Steve Antonf84ab8e2020-06-03 09:18:24 -07001137 rtc_source_set("mock_peer_connection_factory_interface") {
1138 visibility = [ "*" ]
1139 testonly = true
1140 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1141
1142 deps = [
1143 ":libjingle_peerconnection_api",
1144 "../test:test_support",
1145 ]
1146 }
1147
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001148 rtc_source_set("mock_session_description_interface") {
1149 visibility = [ "*" ]
1150 testonly = true
1151 sources = [ "test/mock_session_description_interface.h" ]
1152 deps = [
1153 ":libjingle_peerconnection_api",
1154 "../test:test_support",
1155 ]
1156 }
1157
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001158 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001159 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001160 testonly = true
1161 sources = [ "test/mock_async_dns_resolver.h" ]
1162 deps = [
1163 ":async_dns_resolver",
1164 "../test:test_support",
1165 ]
1166 }
1167
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001168 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 14:37:22 -08001169 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001170 testonly = true
1171 sources = [
Steve Anton43ef5d92020-11-05 14:37:22 -08001172 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001173 "test/mock_rtpreceiver.h",
1174 "test/mock_rtpsender.h",
1175 ]
1176
1177 deps = [
1178 ":libjingle_peerconnection_api",
1179 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001180 ]
1181 }
1182
Marina Cioceabb13f382020-05-15 08:24:17 +02001183 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001184 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 08:24:17 +02001185 testonly = true
1186 sources = [ "test/mock_transformable_video_frame.h" ]
1187
1188 deps = [
1189 ":frame_transformer_interface",
1190 "../test:test_support",
1191 ]
1192 }
1193
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001194 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001195 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001196 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001197 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001198
1199 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001200 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001201 "../test:test_support",
1202 ]
1203 }
1204
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001205 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001206 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001207 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001208 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001209
1210 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001211 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001212 "../test:test_support",
1213 ]
1214 }
1215
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001216 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001217 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001218 testonly = true
1219 sources = [
1220 "test/mock_video_decoder_factory.h",
1221 "test/mock_video_encoder_factory.h",
1222 ]
1223
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001224 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001225 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001226 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001227 ]
1228 }
1229
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001230 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001231 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001232 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001233 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001234
1235 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001236 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 11:55:13 +02001237 "../test:test_support",
1238 ]
1239 }
1240
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001241 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001242 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001243 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001244 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001245
1246 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001247 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 10:01:30 +02001248 "../test:test_support",
1249 ]
1250 }
1251
Florent Castelli63cc46c2021-07-17 01:32:40 +02001252 rtc_library("mock_video_track") {
1253 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-17 01:32:40 +02001254 testonly = true
1255 sources = [ "test/mock_video_track.h" ]
1256
1257 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001258 "../api:media_stream_interface",
1259 "../api:scoped_refptr",
1260 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001261 "../test:test_support",
1262 ]
1263 }
1264
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001265 rtc_library("create_time_controller") {
1266 visibility = [ "*" ]
1267 testonly = true
1268 sources = [
1269 "test/create_time_controller.cc",
1270 "test/create_time_controller.h",
1271 ]
1272
1273 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001274 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001275 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +01001276 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001277 "../call:call_interfaces",
Vojin Ilic504fc192021-05-31 14:02:28 +02001278 "../call:rtp_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001279 "../test/time_controller",
1280 ]
1281 }
1282
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001283 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001284 testonly = true
1285
1286 sources = [
1287 "array_view_unittest.cc",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001288 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001289 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001290 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001291 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001292 "rtp_packet_info_unittest.cc",
1293 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001294 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001295 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 15:06:50 +01001296 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001297 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 13:01:03 +02001298 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001299 ]
1300
Niels Möller2e47f7c2018-10-16 10:41:42 +02001301 deps = [
1302 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001303 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001304 ":field_trials",
1305 ":field_trials_view",
Artem Titov741daaf2019-03-21 14:37:36 +01001306 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001307 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 13:01:03 +02001308 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001309 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001310 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001311 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001312 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001313 ":scoped_refptr",
Artem Titovb586d822021-02-04 15:06:50 +01001314 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001315 ":time_controller",
Florent Castellif9c59842022-04-19 17:07:23 +02001316 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001317 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001318 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 12:18:28 +02001319 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 16:57:52 +02001320 "../rtc_base:rtc_event",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001321 "../rtc_base:rtc_task_queue",
Artem Titovb586d822021-02-04 15:06:50 +01001322 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001323 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001324 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001325 "../system_wrappers:field_trial",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001326 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001327 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001328 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001329 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +01001330 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 17:04:10 +02001331 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001332 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001333 "units:time_delta",
1334 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001335 "units:units_unittests",
philipel8615bf02022-05-05 15:12:13 +02001336 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 14:41:23 +02001337 "video:rtp_video_frame_assembler_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001338 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001339 ]
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001340 absl_deps = [
1341 "//third_party/abseil-cpp/absl/strings",
1342 "//third_party/abseil-cpp/absl/types:optional",
1343 ]
Niels Möller2e47f7c2018-10-16 10:41:42 +02001344 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001345
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001346 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001347 testonly = true
1348
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001349 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001350
1351 deps = [
1352 ":fake_frame_decryptor",
1353 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001354 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001355 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 17:13:54 +02001356 ":mock_audio_sink",
Steve Antonc49c7d22020-11-04 19:21:49 -08001357 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001358 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001359 ":mock_frame_decryptor",
1360 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 14:32:18 -08001361 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 11:37:29 +02001362 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 09:18:24 -07001363 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001364 ":mock_peerconnectioninterface",
1365 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001366 ":mock_session_description_interface",
Marina Cioceabb13f382020-05-15 08:24:17 +02001367 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001368 ":mock_video_bitrate_allocator",
1369 ":mock_video_bitrate_allocator_factory",
1370 ":mock_video_codec_factory",
1371 ":mock_video_decoder",
1372 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001373 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001374 ":rtc_api_unittests",
1375 "units:units_unittests",
1376 ]
1377 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001378}
Jonas Orelanded99dae2022-03-09 09:28:10 +01001379
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001380rtc_source_set("field_trials_registry") {
1381 visibility = [ "*" ]
1382 sources = [
1383 "field_trials_registry.cc",
1384 "field_trials_registry.h",
1385 ]
1386 deps = [
1387 ":field_trials_view",
1388 "../experiments:registered_field_trials",
1389 "../rtc_base:checks",
1390 "../rtc_base/containers:flat_set",
1391 "../rtc_base/system:rtc_export",
1392 ]
1393 absl_deps = [
1394 "//third_party/abseil-cpp/absl/algorithm:container",
1395 "//third_party/abseil-cpp/absl/strings",
1396 ]
1397}
1398
Jonas Orelande62c2f22022-03-29 11:04:48 +02001399rtc_source_set("field_trials_view") {
1400 visibility = [ "*" ]
1401 sources = [ "field_trials_view.h" ]
1402 deps = [ "../rtc_base/system:rtc_export" ]
1403 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1404}
1405
Jonas Orelanded99dae2022-03-09 09:28:10 +01001406rtc_source_set("webrtc_key_value_config") {
1407 visibility = [ "*" ]
1408 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 11:04:48 +02001409 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 09:28:10 +01001410}
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001411
1412rtc_library("field_trials") {
1413 visibility = [ "*" ]
1414 sources = [
1415 "field_trials.cc",
1416 "field_trials.h",
1417 ]
1418 deps = [
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001419 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001420 "../rtc_base:checks",
1421 "../rtc_base/containers:flat_map",
1422 "../system_wrappers:field_trial",
1423 ]
1424 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1425}