blob: eca66e51aab08c95e3783716e5ad2e81470d0eb8 [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",
Johannes Kronf7de74c2021-04-30 13:10:56 +020097 "units:timestamp",
Chen Xingd2a66862019-06-03 14:53:42 +020098 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020099 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Chen Xingd2a66862019-06-03 14:53:42 +0200100}
101
Markus Handell6fa9e682021-10-13 22:50:53 +0200102rtc_source_set("video_track_source_constraints") {
103 visibility = [ "*" ]
104 sources = [ "video_track_source_constraints.h" ]
105 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
106}
107
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200108rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200109 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200110 sources = [
111 "media_stream_interface.cc",
112 "media_stream_interface.h",
Harald Alvestrand9cb42c82020-10-11 13:03:47 +0000113 "media_stream_track.h",
Niels Möllere942b142019-09-17 14:30:41 +0200114 "notifier.h",
115 ]
116 deps = [
117 ":audio_options_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200118 ":make_ref_counted",
Niels Möllere942b142019-09-17 14:30:41 +0200119 ":rtp_parameters",
120 ":scoped_refptr",
Byoungchan Leeb36f6892022-03-03 05:55:22 +0900121 ":sequence_checker",
Markus Handell6fa9e682021-10-13 22:50:53 +0200122 ":video_track_source_constraints",
Niels Möllere942b142019-09-17 14:30:41 +0200123 "../modules/audio_processing:audio_processing_statistics",
124 "../rtc_base:checks",
125 "../rtc_base:refcount",
Byoungchan Leeb36f6892022-03-03 05:55:22 +0900126 "../rtc_base/system:no_unique_address",
Niels Möllere942b142019-09-17 14:30:41 +0200127 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100128 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200129 "video:video_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200130 ]
Niels Möllerc397fc62022-05-30 11:26:40 +0200131 absl_deps = [
132 "//third_party/abseil-cpp/absl/strings",
133 "//third_party/abseil-cpp/absl/types:optional",
134 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200135}
136
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200137rtc_library("candidate") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200138 visibility = [ "*" ]
139
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000140 sources = [
141 "candidate.cc",
142 "candidate.h",
143 ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200144 deps = [
145 "../rtc_base",
146 "../rtc_base:checks",
147 "../rtc_base:ip_address",
148 "../rtc_base:logging",
149 "../rtc_base:network_constants",
150 "../rtc_base:socket_address",
151 "../rtc_base:stringutils",
152 "../rtc_base/system:rtc_export",
153 ]
154 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
155}
156
157rtc_source_set("turn_customizer") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200158 visibility = [ "*" ]
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000159 sources = [ "turn_customizer.h" ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200160}
161
162rtc_source_set("ice_transport_interface") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200163 visibility = [ "*" ]
164
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000165 sources = [ "ice_transport_interface.h" ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200166 deps = [
167 ":async_dns_resolver",
168 ":packet_socket_factory",
169 ":rtc_error",
170 ":scoped_refptr",
171 "../rtc_base:refcount",
172 "rtc_event_log:rtc_event_log",
173 ]
174}
175
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000176rtc_library("dtls_transport_interface") {
Mirko Bonadei130f2fd2022-06-18 00:07:14 +0200177 visibility = [ "*" ]
178
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000179 sources = [
180 "dtls_transport_interface.cc",
181 "dtls_transport_interface.h",
182 ]
Mirko Bonadei01ed3252022-06-17 14:07:28 +0200183 deps = [
184 ":ice_transport_interface",
185 ":rtc_error",
186 ":scoped_refptr",
187 "../rtc_base",
188 "../rtc_base:refcount",
189 "../rtc_base/system:rtc_export",
190 ]
191 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
192}
193
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200194rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000195 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700196 cflags = []
197 sources = [
Harald Alvestrand0d018412021-11-04 13:52:31 +0000198 "crypto_params.h",
Steve Anton10542f22019-01-11 09:11:00 -0800199 "data_channel_interface.cc",
200 "data_channel_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800201 "dtmf_sender_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800202 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700203 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800204 "jsep_ice_candidate.cc",
205 "jsep_ice_candidate.h",
206 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800207 "peer_connection_interface.cc",
208 "peer_connection_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800209 "rtp_receiver_interface.cc",
210 "rtp_receiver_interface.h",
211 "rtp_sender_interface.cc",
212 "rtp_sender_interface.h",
213 "rtp_transceiver_interface.cc",
214 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100215 "sctp_transport_interface.cc",
216 "sctp_transport_interface.h",
Henrik Boström831ae4e2020-07-29 12:04:00 +0200217 "set_local_description_observer_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800218 "set_remote_description_observer_interface.h",
219 "stats_types.cc",
220 "stats_types.h",
Steve Anton10542f22019-01-11 09:11:00 -0800221 "uma_metrics.h",
Markus Handelle93fe6c2021-05-20 22:46:31 +0200222 "video_track_source_proxy_factory.h",
kjellanderc76dc952016-06-03 03:09:32 -0700223 ]
kjellanderc76dc952016-06-03 03:09:32 -0700224 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100225 ":array_view",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000226 ":async_dns_resolver",
Niels Möllera6fe2612018-01-19 11:28:54 +0100227 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100228 ":callfactory_api",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000229 ":candidate",
230 ":dtls_transport_interface",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100231 ":fec_controller_api",
Jonas Oreland128c4dc2022-03-30 07:57:48 +0200232 ":field_trials",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200233 ":field_trials_view",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100234 ":frame_transformer_interface",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000235 ":ice_transport_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100236 ":libjingle_logging_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200237 ":make_ref_counted",
Niels Möllere942b142019-09-17 14:30:41 +0200238 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200239 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200240 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200241 ":priority",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200242 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700243 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200244 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200245 ":rtp_parameters",
Markus Handell0357b3e2020-03-16 13:40:51 +0100246 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100247 ":scoped_refptr",
Artem Titov06159aa2021-02-09 23:38:13 +0100248 ":sequence_checker",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000249 ":turn_customizer",
Vojin Ilic504fc192021-05-31 14:02:28 +0200250 "../call:rtp_interfaces",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000251 "../p2p:rtc_p2p",
Florent Castellied4aadc2022-04-19 17:40:46 +0200252 "../rtc_base:copy_on_write_buffer",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200253 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100254 "../rtc_base:network_constants",
Florent Castellif86f6f92022-04-05 02:54:12 +0200255 "../rtc_base:refcount",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200256 "../rtc_base:stringutils",
Henrik Boström4c1e7cc2020-06-11 12:26:53 +0200257 "adaptation:resource_adaptation_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100258 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100259 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200260 "crypto:frame_decryptor_interface",
261 "crypto:frame_encryptor_interface",
262 "crypto:options",
Evan Shrubsolea7ecf112022-01-26 18:02:30 +0100263 "metronome",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100264 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200265 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200266 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200267 "transport:bitrate_settings",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700268 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200269 "transport:network_control",
Per Kjellander2bca0082020-08-28 09:15:15 +0200270 "transport:sctp_transport_factory_interface",
Niels Möllera8370302019-09-02 15:16:49 +0200271 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800272 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700273 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200274 "video:encoded_image",
Harald Alvestrandf33f7a22021-05-09 14:58:57 +0000275 "video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200276 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200277 "video:video_rtp_headers",
Jonas Oreland65455162022-06-08 11:25:46 +0200278 "video_codecs:video_codecs_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100279
280 # Basically, don't add stuff here. You might break sensitive downstream
281 # targets like pnacl. API should not depend on anything outside of this
282 # file, really. All these should arguably go away in time.
Niels Möllere24557f2019-09-19 11:36:35 +0200283 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100284 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100285 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100286 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100287 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100288 "../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100289 "../rtc_base:socket_address",
290 "../rtc_base:threading",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200291 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700292 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200293 absl_deps = [
294 "//third_party/abseil-cpp/absl/algorithm:container",
295 "//third_party/abseil-cpp/absl/memory",
296 "//third_party/abseil-cpp/absl/strings",
297 "//third_party/abseil-cpp/absl/types:optional",
298 ]
ossu7bb87ee2017-01-23 04:56:25 -0800299}
kjellanderc76dc952016-06-03 03:09:32 -0700300
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100301rtc_source_set("frame_transformer_interface") {
302 visibility = [ "*" ]
303 sources = [ "frame_transformer_interface.h" ]
304 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200305 ":make_ref_counted",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100306 ":scoped_refptr",
307 "../rtc_base:refcount",
308 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 20:01:02 +0200309 "video:video_frame_metadata",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100310 ]
311}
312
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200313rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200314 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200315 sources = [
316 "rtc_error.cc",
317 "rtc_error.h",
318 ]
319 deps = [
320 "../rtc_base:checks",
321 "../rtc_base:logging",
322 "../rtc_base:macromagic",
323 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200324 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200325 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200326}
327
Patrik Höglund662e31f2019-09-05 14:35:04 +0200328rtc_source_set("packet_socket_factory") {
329 visibility = [ "*" ]
330 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200331 "async_resolver_factory.h",
332 "packet_socket_factory.h",
333 ]
334 deps = [
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000335 ":async_dns_resolver",
Harald Alvestrand985310e2021-10-01 15:11:17 +0000336 ":wrapping_async_dns_resolver",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100337 "../rtc_base:async_resolver_interface",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200338 "../rtc_base:rtc_base",
Harald Alvestrande6e2f282021-03-24 12:13:28 +0000339 "../rtc_base:socket_address",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200340 "../rtc_base/system:rtc_export",
341 ]
342}
343
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000344rtc_source_set("async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200345 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000346 sources = [ "async_dns_resolver.h" ]
347 deps = [
Sameer Vijaykarb787e262022-08-11 11:52:57 +0200348 "../rtc_base:checks",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000349 "../rtc_base:socket_address",
350 "../rtc_base/system:rtc_export",
351 ]
352}
353
Harald Alvestrand985310e2021-10-01 15:11:17 +0000354rtc_source_set("wrapping_async_dns_resolver") {
355 visibility = [
356 ":*",
357 "../p2p:rtc_p2p",
358 ]
359 sources = [
360 "wrapping_async_dns_resolver.cc",
361 "wrapping_async_dns_resolver.h",
362 ]
363 deps = [
364 ":async_dns_resolver",
365 ":sequence_checker",
366 "../rtc_base:async_resolver_interface",
367 "../rtc_base:checks",
368 "../rtc_base:macromagic",
369 "../rtc_base:socket_address",
370 "../rtc_base:threading",
371 "../rtc_base/third_party/sigslot",
372 ]
373 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
374}
375
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100376rtc_source_set("scoped_refptr") {
377 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100378 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100379}
380
Niels Möller7c8c4db2022-06-13 10:36:38 +0200381rtc_source_set("make_ref_counted") {
382 visibility = [ "*" ]
383 sources = [ "make_ref_counted.h" ]
384 deps = [ "../rtc_base:refcount" ]
385}
386
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200387rtc_source_set("video_quality_test_fixture_api") {
388 visibility = [ "*" ]
389 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100390 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200391 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200392 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200393 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200394 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200395 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200396 ":simulated_network_api",
397 "../call:fake_network",
398 "../call:rtp_interfaces",
399 "../test:test_common",
400 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200401 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200402 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200403 "video_codecs:video_codecs_api",
404 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200405}
406
Artem Titovd57628f2019-03-22 12:34:25 +0100407rtc_source_set("video_quality_analyzer_api") {
408 visibility = [ "*" ]
409 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100410 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100411
412 deps = [
Artem Titov3b641672020-06-02 17:18:17 +0200413 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100414 ":stats_observer_interface",
415 "video:encoded_image",
416 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200417 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100418 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200419 ]
420 absl_deps = [
Artem Titov8a0284e2020-05-29 15:49:44 +0200421 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100422 "//third_party/abseil-cpp/absl/types:optional",
423 ]
424}
425
Andrey Logvin20f45822020-07-01 08:32:15 +0000426rtc_source_set("track_id_stream_info_map") {
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200427 visibility = [ "*" ]
Andrey Logvin20f45822020-07-01 08:32:15 +0000428 sources = [ "test/track_id_stream_info_map.h" ]
429 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200430}
431
Markus Handell0357b3e2020-03-16 13:40:51 +0100432rtc_source_set("rtp_transceiver_direction") {
433 visibility = [ "*" ]
434 sources = [ "rtp_transceiver_direction.h" ]
435}
436
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200437rtc_source_set("priority") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200438 visibility = [ "*" ]
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200439 sources = [ "priority.h" ]
440}
441
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200442rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200443 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200444 sources = [
445 "media_types.cc",
446 "media_types.h",
447 "rtp_parameters.cc",
448 "rtp_parameters.h",
449 ]
450 deps = [
451 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200452 ":priority",
Markus Handell0357b3e2020-03-16 13:40:51 +0100453 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200454 "../rtc_base:checks",
455 "../rtc_base:stringutils",
456 "../rtc_base/system:rtc_export",
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900457 "video_codecs:scalability_mode",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200458 ]
459 absl_deps = [
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900460 "//third_party/abseil-cpp/absl/container:inlined_vector",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100461 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200462 "//third_party/abseil-cpp/absl/types:optional",
463 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200464}
465
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000466if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200467 java_cpp_enum("priority_enums") {
468 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000469 }
470}
471
Artem Titovd57628f2019-03-22 12:34:25 +0100472rtc_source_set("audio_quality_analyzer_api") {
473 visibility = [ "*" ]
474 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100475 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100476
477 deps = [
478 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000479 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100480 ]
481}
482
483rtc_source_set("stats_observer_interface") {
484 visibility = [ "*" ]
485 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100486 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100487
Andrey Logvin9b526182020-06-15 16:14:07 +0000488 deps = [ ":rtc_stats_api" ]
489
490 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100491}
492
Niels Möllerf47a7242021-11-22 16:07:35 +0100493rtc_source_set("peer_network_dependencies") {
494 visibility = [ "*" ]
495 sources = [ "test/peer_network_dependencies.h" ]
496 deps = [
497 ":packet_socket_factory",
498 "../rtc_base",
499 "../rtc_base:threading",
500 ]
501}
502
Artem Titovd57628f2019-03-22 12:34:25 +0100503rtc_source_set("peer_connection_quality_test_fixture_api") {
504 visibility = [ "*" ]
505 testonly = true
Artem Titov0d510522022-04-19 13:01:03 +0200506 sources = [
507 "test/peerconnection_quality_test_fixture.cc",
508 "test/peerconnection_quality_test_fixture.h",
509 ]
Artem Titovd57628f2019-03-22 12:34:25 +0100510
511 deps = [
Artem Titov0d510522022-04-19 13:01:03 +0200512 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100513 ":audio_quality_analyzer_api",
514 ":callfactory_api",
515 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100516 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100517 ":function_view",
518 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49 +0000519 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200520 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200521 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100522 ":peer_network_dependencies",
Artem Titovf9ed56b2020-05-11 21:17:25 +0200523 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100524 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200525 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000526 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100527 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200528 "../media:rtc_media_base",
Artem Titov7e04b492022-03-08 01:26:03 +0100529 "../modules/audio_processing:api",
Artem Titov7017a132022-04-20 20:57:56 +0200530 "../rtc_base:checks",
Artem Titovd57628f2019-03-22 12:34:25 +0100531 "../rtc_base:rtc_base",
Artem Titovbccb4522022-06-01 22:32:15 +0200532 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100533 "../rtc_base:threading",
Artem Titov72bc2e22022-08-02 14:03:03 +0200534 "../test:fileutils",
Artem Titov7e04b492022-03-08 01:26:03 +0100535 "audio:audio_mixer_api",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200536 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200537 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100538 "transport:network_control",
539 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100540 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100541 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200542 ]
543 absl_deps = [
Artem Titovd57628f2019-03-22 12:34:25 +0100544 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100545 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100546 "//third_party/abseil-cpp/absl/types:optional",
547 ]
548}
549
Artem Titov503d7232019-12-04 12:37:13 +0100550rtc_source_set("frame_generator_api") {
551 visibility = [ "*" ]
552 testonly = true
Evan Shrubsole7899e972020-09-28 12:04:11 +0200553 sources = [
554 "test/frame_generator_interface.cc",
555 "test/frame_generator_interface.h",
556 ]
Artem Titov503d7232019-12-04 12:37:13 +0100557
558 deps = [
559 ":scoped_refptr",
560 "video:video_frame",
Artem Titov503d7232019-12-04 12:37:13 +0100561 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200562 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Artem Titov503d7232019-12-04 12:37:13 +0100563}
564
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200565rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200566 visibility = [ "*" ]
567 testonly = true
568 sources = [
569 "test/test_dependency_factory.cc",
570 "test/test_dependency_factory.h",
571 ]
572 deps = [
573 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100574 "../rtc_base:checks",
Tommi9b7232a2020-05-15 10:09:27 +0200575 "../rtc_base:platform_thread_types",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200576 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200577}
578
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200579if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 14:26:50 +0100580 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200581 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100582 visibility = [ "*" ]
583 testonly = true
584 sources = [
585 "test/create_network_emulation_manager.cc",
586 "test/create_network_emulation_manager.h",
587 ]
588 deps = [
589 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200590 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100591 ]
592 }
Artem Titovd57628f2019-03-22 12:34:25 +0100593
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000594 if (!build_with_chromium) {
595 rtc_library("create_video_quality_test_fixture_api") {
596 visibility = [ "*" ]
597 testonly = true
598 sources = [
599 "test/create_video_quality_test_fixture.cc",
600 "test/create_video_quality_test_fixture.h",
601 ]
602 deps = [
603 ":fec_controller_api",
604 ":network_state_predictor_api",
605 ":scoped_refptr",
606 ":video_quality_test_fixture_api",
607 "../video:video_quality_test",
608 ]
609 }
Artem Titovd57628f2019-03-22 12:34:25 +0100610
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000611 rtc_library("create_peerconnection_quality_test_fixture") {
612 visibility = [ "*" ]
613 testonly = true
614 sources = [
615 "test/create_peerconnection_quality_test_fixture.cc",
616 "test/create_peerconnection_quality_test_fixture.h",
617 ]
618
619 deps = [
620 ":audio_quality_analyzer_api",
621 ":peer_connection_quality_test_fixture_api",
622 ":time_controller",
623 ":video_quality_analyzer_api",
624 "../test/pc/e2e:peerconnection_quality_test",
625 ]
626 }
Artem Titovd57628f2019-03-22 12:34:25 +0100627 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100628}
Artem Titov503d7232019-12-04 12:37:13 +0100629
Artem Titov33f9d2b2019-12-05 15:59:00 +0100630rtc_library("create_frame_generator") {
631 visibility = [ "*" ]
632 testonly = true
633 sources = [
634 "test/create_frame_generator.cc",
635 "test/create_frame_generator.h",
636 ]
637 deps = [
638 ":frame_generator_api",
639 "../rtc_base:checks",
640 "../system_wrappers",
641 "../test:frame_generator_impl",
Artem Titov33f9d2b2019-12-05 15:59:00 +0100642 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200643 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200644}
645
Andrey Logvindad6a942020-05-04 17:27:09 +0000646rtc_library("create_peer_connection_quality_test_frame_generator") {
647 visibility = [ "*" ]
648 testonly = true
649 sources = [
650 "test/create_peer_connection_quality_test_frame_generator.cc",
651 "test/create_peer_connection_quality_test_frame_generator.h",
652 ]
653 deps = [
654 ":create_frame_generator",
655 ":frame_generator_api",
656 ":peer_connection_quality_test_fixture_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000657 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000658 "../test:fileutils",
Andrey Logvindad6a942020-05-04 17:27:09 +0000659 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200660 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Andrey Logvindad6a942020-05-04 17:27:09 +0000661}
662
Elad Alon80810732017-10-06 13:07:32 +0200663rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000664 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100665 sources = [ "rtc_event_log_output.h" ]
Björn Terelius63299a32022-07-05 10:58:52 +0200666 absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
Elad Alon80810732017-10-06 13:07:32 +0200667}
668
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200669rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200670 visibility = [ "*" ]
671 sources = [
672 "rtc_event_log_output_file.cc",
673 "rtc_event_log_output_file.h",
674 ]
675
676 deps = [
677 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200678 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200679 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200680 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200681 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200682 ]
683}
684
hbos74e1a4f2016-09-15 23:33:01 -0700685rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000686 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700687 cflags = []
688 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800689 "stats/rtc_stats.h",
690 "stats/rtc_stats_collector_callback.h",
691 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700692 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700693 ]
694
695 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200696 ":make_ref_counted",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100697 ":scoped_refptr",
Tommi86ee89f2021-04-20 16:58:01 +0200698 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100699 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +0200700 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200701 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700702 ]
703}
704
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200705rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100706 visibility = [ "*" ]
707 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200708 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100709 "audio_options.h",
710 ]
711
712 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100713 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200714 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800715 "../rtc_base/system:rtc_export",
Niels Möllera6fe2612018-01-19 11:28:54 +0100716 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200717 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllera6fe2612018-01-19 11:28:54 +0100718}
719
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200720rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000721 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800722 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100723 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800724 "call/transport.h",
725 ]
Danil Chapovalov5312a8f2021-01-25 17:02:57 +0100726 deps = [
727 ":refcountedbase",
728 ":scoped_refptr",
729 ]
aleloia8eb7562016-11-28 07:02:13 -0800730}
nisseb2250e52016-12-02 04:01:14 -0800731
Sebastian Jansson6736df12018-11-21 19:18:39 +0100732rtc_source_set("bitrate_allocation") {
733 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100734 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100735 deps = [
736 "units:data_rate",
737 "units:time_delta",
738 ]
739}
740
Sebastian Janssoncec24332019-12-04 14:26:50 +0100741# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200742rtc_source_set("simulated_network_api") {
743 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100744 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 15:18:46 +0200745 deps = [
746 "../rtc_base",
747 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 12:41:26 +0200748 "../rtc_base:random",
Florent Castelli4467ad72022-04-04 15:18:46 +0200749 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200750 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200751}
752
Sebastian Janssoncec24332019-12-04 14:26:50 +0100753# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100754rtc_source_set("network_emulation_manager_api") {
755 visibility = [ "*" ]
756 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100757 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100758 "test/network_emulation_manager.h",
759 ]
760 deps = [
Artem Titovcf781282020-07-28 13:45:16 +0200761 ":array_view",
Niels Möller5e7a3ae2021-09-09 15:54:42 +0200762 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100763 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100764 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100765 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100766 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100767 "../rtc_base",
Björn Tereliusb22cabc2022-06-02 10:51:59 +0200768 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100769 "../rtc_base:network_constants",
770 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100771 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200772 "units:data_rate",
773 "units:data_size",
774 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100775 ]
776}
777
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100778rtc_source_set("time_controller") {
779 visibility = [ "*" ]
780 sources = [
781 "test/time_controller.cc",
782 "test/time_controller.h",
783 ]
784
785 deps = [
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100786 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100787 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100788 "../rtc_base/synchronization:yield_policy",
789 "../system_wrappers",
790 "task_queue",
791 "units:time_delta",
792 "units:timestamp",
793 ]
794}
795
Ying Wang3b790f32018-01-19 17:58:57 +0100796rtc_source_set("fec_controller_api") {
797 visibility = [ "*" ]
798 sources = [
799 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200800 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100801 ]
802
803 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100804 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100805 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100806 ]
807}
808
Ying Wang0810a7c2019-04-10 13:48:24 +0200809rtc_source_set("network_state_predictor_api") {
810 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100811 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200812}
813
kwiberg529662a2017-09-04 05:43:17 -0700814rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000815 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100816 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700817 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100818 "../rtc_base:checks",
819 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700820 ]
821}
822
Niels Möller9155e492017-10-23 11:22:30 +0200823rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000824 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100825 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 16:58:01 +0200826 deps = [
827 "../rtc_base:macromagic",
828 "../rtc_base:refcount",
829 ]
Niels Möller9155e492017-10-23 11:22:30 +0200830}
831
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200832rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100833 visibility = [ "*" ]
834 sources = [
835 "ice_transport_factory.cc",
836 "ice_transport_factory.h",
837 ]
838 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000839 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 14:57:03 +0100840 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200841 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 12:16:35 +0200842 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100843 ":scoped_refptr",
844 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100845 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100846 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200847 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700848 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100849 ]
850}
851
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200852rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200853 visibility = [ "*" ]
854 sources = [
855 "test/neteq_simulator.cc",
856 "test/neteq_simulator.h",
857 ]
858}
859
Artem Titov741daaf2019-03-21 14:37:36 +0100860rtc_source_set("function_view") {
861 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100862 sources = [ "function_view.h" ]
863 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100864}
865
Artem Titovb586d822021-02-04 15:06:50 +0100866rtc_source_set("sequence_checker") {
867 visibility = [ "*" ]
868 sources = [ "sequence_checker.h" ]
869 deps = [
870 "../rtc_base:checks",
871 "../rtc_base:macromagic",
872 "../rtc_base/synchronization:sequence_checker_internal",
873 ]
874}
875
kjellanderfd5b4e92016-06-13 12:08:33 -0700876if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000877 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200878 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100879 visibility = [ "*" ]
880 testonly = true
881 sources = [
882 "test/audioproc_float.cc",
883 "test/audioproc_float.h",
884 ]
885
886 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100887 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000888 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100889 "../modules/audio_processing:audioproc_f_impl",
890 ]
891 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200892
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200893 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200894 visibility = [ "*" ]
895 testonly = true
896 sources = [
897 "test/neteq_simulator_factory.cc",
898 "test/neteq_simulator_factory.h",
899 ]
900 deps = [
901 ":neteq_simulator_api",
902 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200903 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100904 "neteq:neteq_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200905 ]
906 absl_deps = [
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200907 "//third_party/abseil-cpp/absl/flags:flag",
908 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100909 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100910 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200911 ]
912 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100913 }
914
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200915 rtc_source_set("simulcast_test_fixture_api") {
916 visibility = [ "*" ]
917 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100918 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200919 }
920
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200921 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200922 visibility = [ "*" ]
923 testonly = true
924 sources = [
925 "test/create_simulcast_test_fixture.cc",
926 "test/create_simulcast_test_fixture.h",
927 ]
928 deps = [
929 ":simulcast_test_fixture_api",
930 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200931 "video_codecs:video_codecs_api",
932 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200933 }
934
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200935 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200936 visibility = [ "*" ]
937 testonly = true
938 sources = [
939 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200940 "test/videocodec_test_stats.cc",
941 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200942 ]
943 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200944 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200945 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100946 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200947 "video_codecs:video_codecs_api",
948 ]
949 }
950
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200951 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200952 visibility = [ "*" ]
953 testonly = true
954 sources = [
955 "test/create_videocodec_test_fixture.cc",
956 "test/create_videocodec_test_fixture.h",
957 ]
958 deps = [
959 ":videocodec_test_fixture_api",
960 "../modules/video_coding:video_codecs_test_framework",
961 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200962 "video_codecs:video_codecs_api",
963 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200964 }
965
kjellander2f6af9c2017-03-02 22:26:23 -0800966 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200967 visibility = [ "*" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800968 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100969 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800970
kjellander2f6af9c2017-03-02 22:26:23 -0800971 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700972 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100973 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800974 ]
975 }
976
Florent Castelli2b4f5132021-07-16 17:13:54 +0200977 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-17 00:48:10 +0200978 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 17:13:54 +0200979 testonly = true
980 sources = [ "test/mock_audio_sink.h" ]
981
982 deps = [
983 "../api:media_stream_interface",
984 "../test:test_support",
985 ]
986 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
987 }
988
Steve Antonc49c7d22020-11-04 19:21:49 -0800989 rtc_source_set("mock_data_channel") {
990 visibility = [ "*" ]
991 testonly = true
992 sources = [ "test/mock_data_channel.h" ]
993
994 deps = [
995 ":libjingle_peerconnection_api",
996 "../test:test_support",
997 ]
998 }
999
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001000 rtc_source_set("mock_dtmf_sender") {
1001 visibility = [ "*" ]
1002 testonly = true
1003 sources = [ "test/mock_dtmf_sender.h" ]
1004
1005 deps = [
1006 ":libjingle_peerconnection_api",
1007 "../test:test_support",
1008 ]
1009 }
1010
Elad Alon45befc52019-07-02 11:20:09 +02001011 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001012 visibility = [ "*" ]
Elad Alon45befc52019-07-02 11:20:09 +02001013 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001014 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +02001015 deps = [
1016 ":fec_controller_api",
1017 "../test:test_support",
1018 ]
1019 }
1020
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001021 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001022 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001023 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001024 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001025 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +02001026 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -07001027 ":libjingle_peerconnection_api",
1028 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001029 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001030 ]
1031 }
1032
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001033 rtc_library("mock_frame_decryptor") {
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_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001037 deps = [
1038 ":libjingle_peerconnection_api",
1039 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001040 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001041 ]
1042 }
1043
Jonas Oreland65455162022-06-08 11:25:46 +02001044 rtc_library("mock_encoder_selector") {
1045 visibility = [ "*" ]
1046 testonly = true
1047 sources = [ "test/mock_encoder_selector.h" ]
1048 deps = [
1049 ":libjingle_peerconnection_api",
1050 "../api/video_codecs:video_codecs_api",
1051 "../test:test_support",
1052 ]
1053 }
1054
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001055 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001056 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001057 testonly = true
1058 sources = [
1059 "test/fake_frame_encryptor.cc",
1060 "test/fake_frame_encryptor.h",
1061 ]
1062 deps = [
1063 ":array_view",
1064 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +02001065 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001066 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001067 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +02001068 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001069 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001070 ]
1071 }
1072
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001073 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001074 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 14:22:34 -07001075 testonly = true
1076 sources = [
1077 "test/fake_frame_decryptor.cc",
1078 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -07001079 ]
1080 deps = [
1081 ":array_view",
1082 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +02001083 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001084 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -07001085 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001086 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -07001087 ]
1088 }
1089
Steve Anton60be6a92020-11-05 14:32:18 -08001090 rtc_source_set("mock_media_stream_interface") {
1091 visibility = [ "*" ]
1092 testonly = true
1093 sources = [ "test/mock_media_stream_interface.h" ]
1094
1095 deps = [
1096 ":media_stream_interface",
1097 "../test:test_support",
1098 ]
1099 }
1100
Niels Möller573b1452022-06-21 11:37:29 +02001101 rtc_source_set("mock_packet_socket_factory") {
1102 visibility = [ "*" ]
1103 testonly = true
1104 sources = [ "test/mock_packet_socket_factory.h" ]
1105
1106 deps = [
1107 ":packet_socket_factory",
1108 "../test:test_support",
1109 ]
1110 }
1111
Jiawei Ou651b92e2018-06-29 15:46:44 -07001112 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 14:34:17 -07001113 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001114 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001115 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001116
1117 deps = [
1118 ":libjingle_peerconnection_api",
Florent Castelli0fc787b2021-07-16 17:36:52 +02001119 "../api:scoped_refptr",
1120 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 15:46:44 -07001121 "../test:test_support",
1122 ]
1123 }
1124
Steve Antonf84ab8e2020-06-03 09:18:24 -07001125 rtc_source_set("mock_peer_connection_factory_interface") {
1126 visibility = [ "*" ]
1127 testonly = true
1128 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1129
1130 deps = [
1131 ":libjingle_peerconnection_api",
1132 "../test:test_support",
1133 ]
1134 }
1135
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001136 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001137 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001138 testonly = true
1139 sources = [ "test/mock_async_dns_resolver.h" ]
1140 deps = [
1141 ":async_dns_resolver",
1142 "../test:test_support",
1143 ]
1144 }
1145
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001146 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 14:37:22 -08001147 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001148 testonly = true
1149 sources = [
Steve Anton43ef5d92020-11-05 14:37:22 -08001150 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001151 "test/mock_rtpreceiver.h",
1152 "test/mock_rtpsender.h",
1153 ]
1154
1155 deps = [
1156 ":libjingle_peerconnection_api",
1157 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001158 ]
1159 }
1160
Marina Cioceabb13f382020-05-15 08:24:17 +02001161 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001162 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 08:24:17 +02001163 testonly = true
1164 sources = [ "test/mock_transformable_video_frame.h" ]
1165
1166 deps = [
1167 ":frame_transformer_interface",
1168 "../test:test_support",
1169 ]
1170 }
1171
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001172 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001173 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001174 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001175 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001176
1177 deps = [
1178 "../api/video:video_bitrate_allocator",
1179 "../test:test_support",
1180 ]
1181 }
1182
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001183 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001184 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001185 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001186 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001187
1188 deps = [
1189 "../api/video:video_bitrate_allocator_factory",
1190 "../test:test_support",
1191 ]
1192 }
1193
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001194 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001195 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001196 testonly = true
1197 sources = [
1198 "test/mock_video_decoder_factory.h",
1199 "test/mock_video_encoder_factory.h",
1200 ]
1201
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001202 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +01001203 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001204 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001205 ]
1206 }
1207
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001208 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001209 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001210 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001211 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001212
1213 deps = [
1214 "../api/video_codecs:video_codecs_api",
1215 "../test:test_support",
1216 ]
1217 }
1218
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001219 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001220 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001221 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001222 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001223
1224 deps = [
1225 "../api/video_codecs:video_codecs_api",
1226 "../test:test_support",
1227 ]
1228 }
1229
Florent Castelli63cc46c2021-07-17 01:32:40 +02001230 rtc_library("mock_video_track") {
1231 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-17 01:32:40 +02001232 testonly = true
1233 sources = [ "test/mock_video_track.h" ]
1234
1235 deps = [
1236 "../api:media_stream_interface",
1237 "../api:scoped_refptr",
1238 "../rtc_base:refcount",
1239 "../test:test_support",
1240 ]
1241 }
1242
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001243 rtc_library("create_time_controller") {
1244 visibility = [ "*" ]
1245 testonly = true
1246 sources = [
1247 "test/create_time_controller.cc",
1248 "test/create_time_controller.h",
1249 ]
1250
1251 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001252 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001253 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +01001254 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001255 "../call:call_interfaces",
Vojin Ilic504fc192021-05-31 14:02:28 +02001256 "../call:rtp_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001257 "../test/time_controller",
1258 ]
1259 }
1260
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001261 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001262 testonly = true
1263
1264 sources = [
1265 "array_view_unittest.cc",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001266 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001267 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001268 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001269 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001270 "rtp_packet_info_unittest.cc",
1271 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001272 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001273 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 15:06:50 +01001274 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001275 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 13:01:03 +02001276 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001277 ]
1278
Niels Möller2e47f7c2018-10-16 10:41:42 +02001279 deps = [
1280 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001281 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001282 ":field_trials",
1283 ":field_trials_view",
Artem Titov741daaf2019-03-21 14:37:36 +01001284 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001285 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 13:01:03 +02001286 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001287 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001288 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001289 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001290 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001291 ":scoped_refptr",
Artem Titovb586d822021-02-04 15:06:50 +01001292 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001293 ":time_controller",
Florent Castellif9c59842022-04-19 17:07:23 +02001294 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001295 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001296 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 12:18:28 +02001297 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 16:57:52 +02001298 "../rtc_base:rtc_event",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001299 "../rtc_base:rtc_task_queue",
Artem Titovb586d822021-02-04 15:06:50 +01001300 "../rtc_base:task_queue_for_test",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001301 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001302 "../system_wrappers:field_trial",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001303 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001304 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001305 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001306 "task_queue:task_queue_default_factory_unittests",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001307 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001308 "units:time_delta",
1309 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001310 "units:units_unittests",
philipel8615bf02022-05-05 15:12:13 +02001311 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 14:41:23 +02001312 "video:rtp_video_frame_assembler_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001313 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001314 ]
Artem Titov0d510522022-04-19 13:01:03 +02001315 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möller2e47f7c2018-10-16 10:41:42 +02001316 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001317
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001318 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001319 testonly = true
1320
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001321 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001322
1323 deps = [
1324 ":fake_frame_decryptor",
1325 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001326 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001327 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 17:13:54 +02001328 ":mock_audio_sink",
Steve Antonc49c7d22020-11-04 19:21:49 -08001329 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001330 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001331 ":mock_frame_decryptor",
1332 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 14:32:18 -08001333 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 11:37:29 +02001334 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 09:18:24 -07001335 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001336 ":mock_peerconnectioninterface",
1337 ":mock_rtp",
Marina Cioceabb13f382020-05-15 08:24:17 +02001338 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001339 ":mock_video_bitrate_allocator",
1340 ":mock_video_bitrate_allocator_factory",
1341 ":mock_video_codec_factory",
1342 ":mock_video_decoder",
1343 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001344 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001345 ":rtc_api_unittests",
1346 "units:units_unittests",
1347 ]
1348 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001349}
Jonas Orelanded99dae2022-03-09 09:28:10 +01001350
Jonas Orelande62c2f22022-03-29 11:04:48 +02001351rtc_source_set("field_trials_view") {
1352 visibility = [ "*" ]
1353 sources = [ "field_trials_view.h" ]
1354 deps = [ "../rtc_base/system:rtc_export" ]
1355 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1356}
1357
Jonas Orelanded99dae2022-03-09 09:28:10 +01001358rtc_source_set("webrtc_key_value_config") {
1359 visibility = [ "*" ]
1360 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 11:04:48 +02001361 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 09:28:10 +01001362}
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001363
1364rtc_library("field_trials") {
1365 visibility = [ "*" ]
1366 sources = [
1367 "field_trials.cc",
1368 "field_trials.h",
1369 ]
1370 deps = [
1371 ":field_trials_view",
1372 "../rtc_base:checks",
1373 "../rtc_base/containers:flat_map",
1374 "../system_wrappers:field_trial",
1375 ]
1376 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1377}