blob: 3f44bc9b8691d70a140077409e514acf300bd674 [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 "uma_metrics.h",
Markus Handelle93fe6c2021-05-20 22:46:31 +0200223 "video_track_source_proxy_factory.h",
kjellanderc76dc952016-06-03 03:09:32 -0700224 ]
kjellanderc76dc952016-06-03 03:09:32 -0700225 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100226 ":array_view",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000227 ":async_dns_resolver",
Niels Möllera6fe2612018-01-19 11:28:54 +0100228 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100229 ":callfactory_api",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000230 ":candidate",
231 ":dtls_transport_interface",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100232 ":fec_controller_api",
Jonas Oreland128c4dc2022-03-30 07:57:48 +0200233 ":field_trials",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200234 ":field_trials_view",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100235 ":frame_transformer_interface",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000236 ":ice_transport_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100237 ":libjingle_logging_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200238 ":make_ref_counted",
Niels Möllere942b142019-09-17 14:30:41 +0200239 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200240 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200241 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200242 ":priority",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200243 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700244 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200245 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200246 ":rtp_parameters",
Markus Handell0357b3e2020-03-16 13:40:51 +0100247 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100248 ":scoped_refptr",
Artem Titov06159aa2021-02-09 23:38:13 +0100249 ":sequence_checker",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000250 ":turn_customizer",
Vojin Ilic504fc192021-05-31 14:02:28 +0200251 "../call:rtp_interfaces",
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000252 "../p2p:rtc_p2p",
Florent Castellied4aadc2022-04-19 17:40:46 +0200253 "../rtc_base:copy_on_write_buffer",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200254 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100255 "../rtc_base:network_constants",
Florent Castellif86f6f92022-04-05 02:54:12 +0200256 "../rtc_base:refcount",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200257 "../rtc_base:stringutils",
Henrik Boström4c1e7cc2020-06-11 12:26:53 +0200258 "adaptation:resource_adaptation_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100259 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100260 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200261 "crypto:frame_decryptor_interface",
262 "crypto:frame_encryptor_interface",
263 "crypto:options",
Evan Shrubsolea7ecf112022-01-26 18:02:30 +0100264 "metronome",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100265 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200266 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200267 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200268 "transport:bitrate_settings",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700269 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200270 "transport:network_control",
Per Kjellander2bca0082020-08-28 09:15:15 +0200271 "transport:sctp_transport_factory_interface",
Niels Möllera8370302019-09-02 15:16:49 +0200272 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800273 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700274 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200275 "video:encoded_image",
Harald Alvestrandf33f7a22021-05-09 14:58:57 +0000276 "video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200277 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200278 "video:video_rtp_headers",
Jonas Oreland65455162022-06-08 11:25:46 +0200279 "video_codecs:video_codecs_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100280
281 # Basically, don't add stuff here. You might break sensitive downstream
282 # targets like pnacl. API should not depend on anything outside of this
283 # file, really. All these should arguably go away in time.
Niels Möllere24557f2019-09-19 11:36:35 +0200284 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100285 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100286 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100287 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100288 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100289 "../rtc_base:ip_address",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100290 "../rtc_base:socket_address",
291 "../rtc_base:threading",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200292 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700293 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200294 absl_deps = [
295 "//third_party/abseil-cpp/absl/algorithm:container",
Mirko Bonadei5c9b7da2022-10-10 08:43:36 +0000296 "//third_party/abseil-cpp/absl/base:core_headers",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200297 "//third_party/abseil-cpp/absl/memory",
298 "//third_party/abseil-cpp/absl/strings",
299 "//third_party/abseil-cpp/absl/types:optional",
300 ]
ossu7bb87ee2017-01-23 04:56:25 -0800301}
kjellanderc76dc952016-06-03 03:09:32 -0700302
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100303rtc_source_set("frame_transformer_interface") {
304 visibility = [ "*" ]
305 sources = [ "frame_transformer_interface.h" ]
306 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200307 ":make_ref_counted",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100308 ":scoped_refptr",
309 "../rtc_base:refcount",
310 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 20:01:02 +0200311 "video:video_frame_metadata",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100312 ]
313}
314
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200315rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200316 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200317 sources = [
318 "rtc_error.cc",
319 "rtc_error.h",
320 ]
321 deps = [
322 "../rtc_base:checks",
323 "../rtc_base:logging",
324 "../rtc_base:macromagic",
325 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200326 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200327 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200328}
329
Patrik Höglund662e31f2019-09-05 14:35:04 +0200330rtc_source_set("packet_socket_factory") {
331 visibility = [ "*" ]
332 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200333 "async_resolver_factory.h",
334 "packet_socket_factory.h",
335 ]
336 deps = [
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000337 ":async_dns_resolver",
Harald Alvestrand985310e2021-10-01 15:11:17 +0000338 ":wrapping_async_dns_resolver",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100339 "../rtc_base:async_resolver_interface",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200340 "../rtc_base:rtc_base",
Harald Alvestrande6e2f282021-03-24 12:13:28 +0000341 "../rtc_base:socket_address",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200342 "../rtc_base/system:rtc_export",
343 ]
344}
345
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000346rtc_source_set("async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200347 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000348 sources = [ "async_dns_resolver.h" ]
349 deps = [
Sameer Vijaykarb787e262022-08-11 11:52:57 +0200350 "../rtc_base:checks",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +0000351 "../rtc_base:socket_address",
352 "../rtc_base/system:rtc_export",
353 ]
354}
355
Harald Alvestrand985310e2021-10-01 15:11:17 +0000356rtc_source_set("wrapping_async_dns_resolver") {
357 visibility = [
358 ":*",
359 "../p2p:rtc_p2p",
360 ]
361 sources = [
362 "wrapping_async_dns_resolver.cc",
363 "wrapping_async_dns_resolver.h",
364 ]
365 deps = [
366 ":async_dns_resolver",
367 ":sequence_checker",
368 "../rtc_base:async_resolver_interface",
369 "../rtc_base:checks",
370 "../rtc_base:macromagic",
371 "../rtc_base:socket_address",
372 "../rtc_base:threading",
373 "../rtc_base/third_party/sigslot",
374 ]
375 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
376}
377
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100378rtc_source_set("scoped_refptr") {
379 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100380 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100381}
382
Niels Möller7c8c4db2022-06-13 10:36:38 +0200383rtc_source_set("make_ref_counted") {
384 visibility = [ "*" ]
385 sources = [ "make_ref_counted.h" ]
386 deps = [ "../rtc_base:refcount" ]
387}
388
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200389rtc_source_set("video_quality_test_fixture_api") {
390 visibility = [ "*" ]
391 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100392 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200393 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200394 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200395 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200396 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200397 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200398 ":simulated_network_api",
399 "../call:fake_network",
400 "../call:rtp_interfaces",
401 "../test:test_common",
402 "../test:video_test_common",
Jonas Oreland6c2dae22022-09-29 10:28:24 +0200403 "../video/config:encoder_config",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200404 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200405 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200406 "video_codecs:video_codecs_api",
407 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200408}
409
Artem Titovd57628f2019-03-22 12:34:25 +0100410rtc_source_set("video_quality_analyzer_api") {
411 visibility = [ "*" ]
412 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100413 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100414
415 deps = [
Artem Titov3b641672020-06-02 17:18:17 +0200416 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100417 ":stats_observer_interface",
418 "video:encoded_image",
419 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200420 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100421 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200422 ]
423 absl_deps = [
Artem Titov8a0284e2020-05-29 15:49:44 +0200424 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100425 "//third_party/abseil-cpp/absl/types:optional",
426 ]
427}
428
Andrey Logvin20f45822020-07-01 08:32:15 +0000429rtc_source_set("track_id_stream_info_map") {
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200430 visibility = [ "*" ]
Andrey Logvin20f45822020-07-01 08:32:15 +0000431 sources = [ "test/track_id_stream_info_map.h" ]
432 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200433}
434
Markus Handell0357b3e2020-03-16 13:40:51 +0100435rtc_source_set("rtp_transceiver_direction") {
436 visibility = [ "*" ]
437 sources = [ "rtp_transceiver_direction.h" ]
438}
439
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200440rtc_source_set("priority") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200441 visibility = [ "*" ]
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200442 sources = [ "priority.h" ]
443}
444
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200445rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200446 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200447 sources = [
448 "media_types.cc",
449 "media_types.h",
450 "rtp_parameters.cc",
451 "rtp_parameters.h",
452 ]
453 deps = [
454 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200455 ":priority",
Markus Handell0357b3e2020-03-16 13:40:51 +0100456 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200457 "../rtc_base:checks",
458 "../rtc_base:stringutils",
459 "../rtc_base/system:rtc_export",
Jonas Oreland0deda152022-09-23 12:08:57 +0200460 "video:resolution",
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900461 "video_codecs:scalability_mode",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200462 ]
463 absl_deps = [
Byoungchan Leea1a7c632022-07-05 21:06:28 +0900464 "//third_party/abseil-cpp/absl/container:inlined_vector",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100465 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200466 "//third_party/abseil-cpp/absl/types:optional",
467 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200468}
469
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000470if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200471 java_cpp_enum("priority_enums") {
472 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000473 }
474}
475
Artem Titovd57628f2019-03-22 12:34:25 +0100476rtc_source_set("audio_quality_analyzer_api") {
477 visibility = [ "*" ]
478 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100479 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100480
481 deps = [
482 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000483 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100484 ]
485}
486
487rtc_source_set("stats_observer_interface") {
488 visibility = [ "*" ]
489 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100490 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100491
Andrey Logvin9b526182020-06-15 16:14:07 +0000492 deps = [ ":rtc_stats_api" ]
493
494 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100495}
496
Niels Möllerf47a7242021-11-22 16:07:35 +0100497rtc_source_set("peer_network_dependencies") {
498 visibility = [ "*" ]
499 sources = [ "test/peer_network_dependencies.h" ]
500 deps = [
501 ":packet_socket_factory",
502 "../rtc_base",
503 "../rtc_base:threading",
504 ]
505}
506
Artem Titovd57628f2019-03-22 12:34:25 +0100507rtc_source_set("peer_connection_quality_test_fixture_api") {
508 visibility = [ "*" ]
509 testonly = true
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +0100510 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100511
512 deps = [
Artem Titov0d510522022-04-19 13:01:03 +0200513 ":array_view",
Artem Titovd57628f2019-03-22 12:34:25 +0100514 ":audio_quality_analyzer_api",
515 ":callfactory_api",
516 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100517 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100518 ":function_view",
519 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49 +0000520 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200521 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200522 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100523 ":peer_network_dependencies",
Artem Titovf9ed56b2020-05-11 21:17:25 +0200524 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100525 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200526 ":stats_observer_interface",
Andrey Logvin20f45822020-07-01 08:32:15 +0000527 ":track_id_stream_info_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100528 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200529 "../media:rtc_media_base",
Artem Titov7e04b492022-03-08 01:26:03 +0100530 "../modules/audio_processing:api",
Artem Titov7017a132022-04-20 20:57:56 +0200531 "../rtc_base:checks",
Artem Titovd57628f2019-03-22 12:34:25 +0100532 "../rtc_base:rtc_base",
Artem Titovbccb4522022-06-01 22:32:15 +0200533 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100534 "../rtc_base:threading",
Artem Titov72bc2e22022-08-02 14:03:03 +0200535 "../test:fileutils",
Artem Titov2068d0d2022-10-12 15:04:06 +0200536 "../test/pc/e2e:video_dumping",
Artem Titov7e04b492022-03-08 01:26:03 +0100537 "audio:audio_mixer_api",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200538 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200539 "task_queue",
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +0100540 "test/pclf:media_configuration",
541 "test/pclf:media_quality_test_params",
Jeremy Leconte389228d2022-11-04 14:01:12 +0100542 "test/pclf:peer_configurer",
Artem Titov2068d0d2022-10-12 15:04:06 +0200543 "test/video:video_frame_writer",
Artem Titovd57628f2019-03-22 12:34:25 +0100544 "transport:network_control",
545 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100546 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100547 "video_codecs:video_codecs_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200548 ]
549 absl_deps = [
Jeremy Lecontea3e51df2022-11-10 15:42:53 +0100550 "//third_party/abseil-cpp/absl/base:core_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100551 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100552 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100553 "//third_party/abseil-cpp/absl/types:optional",
554 ]
555}
556
Artem Titov503d7232019-12-04 12:37:13 +0100557rtc_source_set("frame_generator_api") {
558 visibility = [ "*" ]
559 testonly = true
Evan Shrubsole7899e972020-09-28 12:04:11 +0200560 sources = [
561 "test/frame_generator_interface.cc",
562 "test/frame_generator_interface.h",
563 ]
Artem Titov503d7232019-12-04 12:37:13 +0100564
565 deps = [
566 ":scoped_refptr",
567 "video:video_frame",
Artem Titov503d7232019-12-04 12:37:13 +0100568 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200569 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Artem Titov503d7232019-12-04 12:37:13 +0100570}
571
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200572rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200573 visibility = [ "*" ]
574 testonly = true
575 sources = [
576 "test/test_dependency_factory.cc",
577 "test/test_dependency_factory.h",
578 ]
579 deps = [
580 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100581 "../rtc_base:checks",
Tommi9b7232a2020-05-15 10:09:27 +0200582 "../rtc_base:platform_thread_types",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200583 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200584}
585
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200586if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 14:26:50 +0100587 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200588 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100589 visibility = [ "*" ]
590 testonly = true
591 sources = [
592 "test/create_network_emulation_manager.cc",
593 "test/create_network_emulation_manager.h",
594 ]
595 deps = [
596 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200597 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100598 ]
599 }
Artem Titovd57628f2019-03-22 12:34:25 +0100600
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000601 if (!build_with_chromium) {
602 rtc_library("create_video_quality_test_fixture_api") {
603 visibility = [ "*" ]
604 testonly = true
605 sources = [
606 "test/create_video_quality_test_fixture.cc",
607 "test/create_video_quality_test_fixture.h",
608 ]
609 deps = [
610 ":fec_controller_api",
611 ":network_state_predictor_api",
612 ":scoped_refptr",
613 ":video_quality_test_fixture_api",
614 "../video:video_quality_test",
615 ]
616 }
Artem Titovd57628f2019-03-22 12:34:25 +0100617
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000618 rtc_library("create_peerconnection_quality_test_fixture") {
619 visibility = [ "*" ]
620 testonly = true
621 sources = [
622 "test/create_peerconnection_quality_test_fixture.cc",
623 "test/create_peerconnection_quality_test_fixture.h",
624 ]
625
626 deps = [
627 ":audio_quality_analyzer_api",
628 ":peer_connection_quality_test_fixture_api",
629 ":time_controller",
630 ":video_quality_analyzer_api",
631 "../test/pc/e2e:peerconnection_quality_test",
Artem Titov36806052022-09-21 16:08:03 +0200632 "test/metrics:global_metrics_logger_and_exporter",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000633 ]
634 }
Artem Titovd57628f2019-03-22 12:34:25 +0100635 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100636}
Artem Titov503d7232019-12-04 12:37:13 +0100637
Artem Titov33f9d2b2019-12-05 15:59:00 +0100638rtc_library("create_frame_generator") {
639 visibility = [ "*" ]
640 testonly = true
641 sources = [
642 "test/create_frame_generator.cc",
643 "test/create_frame_generator.h",
644 ]
645 deps = [
646 ":frame_generator_api",
647 "../rtc_base:checks",
648 "../system_wrappers",
649 "../test:frame_generator_impl",
Artem Titov33f9d2b2019-12-05 15:59:00 +0100650 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200651 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200652}
653
Andrey Logvindad6a942020-05-04 17:27:09 +0000654rtc_library("create_peer_connection_quality_test_frame_generator") {
655 visibility = [ "*" ]
656 testonly = true
657 sources = [
658 "test/create_peer_connection_quality_test_frame_generator.cc",
659 "test/create_peer_connection_quality_test_frame_generator.h",
660 ]
661 deps = [
662 ":create_frame_generator",
663 ":frame_generator_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000664 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000665 "../test:fileutils",
Jeremy Leconte0e2cf6c2022-11-04 11:10:42 +0100666 "test/pclf:media_configuration",
Andrey Logvindad6a942020-05-04 17:27:09 +0000667 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200668 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Andrey Logvindad6a942020-05-04 17:27:09 +0000669}
670
Elad Alon80810732017-10-06 13:07:32 +0200671rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000672 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100673 sources = [ "rtc_event_log_output.h" ]
Björn Terelius63299a32022-07-05 10:58:52 +0200674 absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
Elad Alon80810732017-10-06 13:07:32 +0200675}
676
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200677rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200678 visibility = [ "*" ]
679 sources = [
680 "rtc_event_log_output_file.cc",
681 "rtc_event_log_output_file.h",
682 ]
683
684 deps = [
685 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200686 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200687 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200688 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200689 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200690 ]
691}
692
hbos74e1a4f2016-09-15 23:33:01 -0700693rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000694 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700695 cflags = []
696 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800697 "stats/rtc_stats.h",
698 "stats/rtc_stats_collector_callback.h",
699 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700700 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700701 ]
702
703 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200704 ":make_ref_counted",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100705 ":scoped_refptr",
Tommi86ee89f2021-04-20 16:58:01 +0200706 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100707 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +0200708 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200709 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 19:12:23 +0200710 "units:timestamp",
hbos74e1a4f2016-09-15 23:33:01 -0700711 ]
Philipp Hancke8e7a1052022-10-13 13:14:01 +0200712
713 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
hbos74e1a4f2016-09-15 23:33:01 -0700714}
715
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200716rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100717 visibility = [ "*" ]
718 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200719 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100720 "audio_options.h",
721 ]
722
723 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100724 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200725 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800726 "../rtc_base/system:rtc_export",
Niels Möllera6fe2612018-01-19 11:28:54 +0100727 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200728 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllera6fe2612018-01-19 11:28:54 +0100729}
730
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200731rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000732 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800733 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100734 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800735 "call/transport.h",
736 ]
Danil Chapovalov5312a8f2021-01-25 17:02:57 +0100737 deps = [
738 ":refcountedbase",
739 ":scoped_refptr",
740 ]
aleloia8eb7562016-11-28 07:02:13 -0800741}
nisseb2250e52016-12-02 04:01:14 -0800742
Sebastian Jansson6736df12018-11-21 19:18:39 +0100743rtc_source_set("bitrate_allocation") {
744 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100745 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100746 deps = [
747 "units:data_rate",
748 "units:time_delta",
749 ]
750}
751
Sebastian Janssoncec24332019-12-04 14:26:50 +0100752# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200753rtc_source_set("simulated_network_api") {
754 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100755 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 15:18:46 +0200756 deps = [
757 "../rtc_base",
758 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 12:41:26 +0200759 "../rtc_base:random",
Florent Castelli4467ad72022-04-04 15:18:46 +0200760 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200761 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200762}
763
Sebastian Janssoncec24332019-12-04 14:26:50 +0100764# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100765rtc_source_set("network_emulation_manager_api") {
766 visibility = [ "*" ]
767 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100768 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100769 "test/network_emulation_manager.h",
770 ]
771 deps = [
Artem Titovcf781282020-07-28 13:45:16 +0200772 ":array_view",
Niels Möller5e7a3ae2021-09-09 15:54:42 +0200773 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100774 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100775 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100776 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100777 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100778 "../rtc_base",
Björn Tereliusb22cabc2022-06-02 10:51:59 +0200779 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100780 "../rtc_base:network_constants",
781 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100782 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200783 "units:data_rate",
784 "units:data_size",
785 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100786 ]
787}
788
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100789rtc_source_set("time_controller") {
790 visibility = [ "*" ]
791 sources = [
792 "test/time_controller.cc",
793 "test/time_controller.h",
794 ]
795
796 deps = [
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100797 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100798 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100799 "../rtc_base/synchronization:yield_policy",
800 "../system_wrappers",
801 "task_queue",
802 "units:time_delta",
803 "units:timestamp",
804 ]
805}
806
Ying Wang3b790f32018-01-19 17:58:57 +0100807rtc_source_set("fec_controller_api") {
808 visibility = [ "*" ]
809 sources = [
810 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200811 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100812 ]
813
814 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100815 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100816 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100817 ]
818}
819
Ying Wang0810a7c2019-04-10 13:48:24 +0200820rtc_source_set("network_state_predictor_api") {
821 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100822 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200823}
824
kwiberg529662a2017-09-04 05:43:17 -0700825rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000826 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100827 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700828 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100829 "../rtc_base:checks",
830 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700831 ]
832}
833
Niels Möller9155e492017-10-23 11:22:30 +0200834rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000835 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100836 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 16:58:01 +0200837 deps = [
838 "../rtc_base:macromagic",
839 "../rtc_base:refcount",
840 ]
Niels Möller9155e492017-10-23 11:22:30 +0200841}
842
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200843rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100844 visibility = [ "*" ]
845 sources = [
846 "ice_transport_factory.cc",
847 "ice_transport_factory.h",
848 ]
849 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000850 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 14:57:03 +0100851 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200852 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 12:16:35 +0200853 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100854 ":scoped_refptr",
855 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100856 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100857 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200858 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700859 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100860 ]
861}
862
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200863rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200864 visibility = [ "*" ]
865 sources = [
866 "test/neteq_simulator.cc",
867 "test/neteq_simulator.h",
868 ]
869}
870
Artem Titov741daaf2019-03-21 14:37:36 +0100871rtc_source_set("function_view") {
872 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100873 sources = [ "function_view.h" ]
874 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100875}
876
Artem Titovb586d822021-02-04 15:06:50 +0100877rtc_source_set("sequence_checker") {
878 visibility = [ "*" ]
879 sources = [ "sequence_checker.h" ]
880 deps = [
881 "../rtc_base:checks",
882 "../rtc_base:macromagic",
883 "../rtc_base/synchronization:sequence_checker_internal",
884 ]
885}
886
kjellanderfd5b4e92016-06-13 12:08:33 -0700887if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000888 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200889 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100890 visibility = [ "*" ]
891 testonly = true
892 sources = [
893 "test/audioproc_float.cc",
894 "test/audioproc_float.h",
895 ]
896
897 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100898 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000899 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100900 "../modules/audio_processing:audioproc_f_impl",
901 ]
902 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200903
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200904 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200905 visibility = [ "*" ]
906 testonly = true
907 sources = [
908 "test/neteq_simulator_factory.cc",
909 "test/neteq_simulator_factory.h",
910 ]
911 deps = [
912 ":neteq_simulator_api",
913 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200914 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100915 "neteq:neteq_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200916 ]
917 absl_deps = [
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200918 "//third_party/abseil-cpp/absl/flags:flag",
919 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100920 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100921 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200922 ]
923 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100924 }
925
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200926 rtc_source_set("simulcast_test_fixture_api") {
927 visibility = [ "*" ]
928 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100929 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200930 }
931
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200932 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200933 visibility = [ "*" ]
934 testonly = true
935 sources = [
936 "test/create_simulcast_test_fixture.cc",
937 "test/create_simulcast_test_fixture.h",
938 ]
939 deps = [
940 ":simulcast_test_fixture_api",
941 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200942 "video_codecs:video_codecs_api",
943 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200944 }
945
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200946 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200947 visibility = [ "*" ]
948 testonly = true
949 sources = [
950 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200951 "test/videocodec_test_stats.cc",
952 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200953 ]
954 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200955 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200956 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100957 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200958 "video_codecs:video_codecs_api",
959 ]
960 }
961
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200962 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200963 visibility = [ "*" ]
964 testonly = true
965 sources = [
966 "test/create_videocodec_test_fixture.cc",
967 "test/create_videocodec_test_fixture.h",
968 ]
969 deps = [
970 ":videocodec_test_fixture_api",
971 "../modules/video_coding:video_codecs_test_framework",
972 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200973 "video_codecs:video_codecs_api",
974 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200975 }
976
kjellander2f6af9c2017-03-02 22:26:23 -0800977 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200978 visibility = [ "*" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800979 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100980 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800981
kjellander2f6af9c2017-03-02 22:26:23 -0800982 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700983 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100984 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800985 ]
986 }
987
Florent Castelli2b4f5132021-07-16 17:13:54 +0200988 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-17 00:48:10 +0200989 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 17:13:54 +0200990 testonly = true
991 sources = [ "test/mock_audio_sink.h" ]
992
993 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +0000994 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 17:13:54 +0200995 "../test:test_support",
996 ]
997 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
998 }
999
Steve Antonc49c7d22020-11-04 19:21:49 -08001000 rtc_source_set("mock_data_channel") {
1001 visibility = [ "*" ]
1002 testonly = true
1003 sources = [ "test/mock_data_channel.h" ]
1004
1005 deps = [
1006 ":libjingle_peerconnection_api",
1007 "../test:test_support",
1008 ]
1009 }
1010
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001011 rtc_source_set("mock_dtmf_sender") {
1012 visibility = [ "*" ]
1013 testonly = true
1014 sources = [ "test/mock_dtmf_sender.h" ]
1015
1016 deps = [
1017 ":libjingle_peerconnection_api",
1018 "../test:test_support",
1019 ]
1020 }
1021
Elad Alon45befc52019-07-02 11:20:09 +02001022 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001023 visibility = [ "*" ]
Elad Alon45befc52019-07-02 11:20:09 +02001024 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001025 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +02001026 deps = [
1027 ":fec_controller_api",
1028 "../test:test_support",
1029 ]
1030 }
1031
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001032 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001033 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001034 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001035 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001036 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001037 # For api/crypto/frame_encryptor_interface.h
1038 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001039 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001040 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001041 ]
1042 }
1043
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001044 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001045 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001046 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001047 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001048 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001049 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001050 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001051 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001052 ]
1053 }
1054
Jonas Oreland65455162022-06-08 11:25:46 +02001055 rtc_library("mock_encoder_selector") {
1056 visibility = [ "*" ]
1057 testonly = true
1058 sources = [ "test/mock_encoder_selector.h" ]
1059 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001060 ":libjingle_peerconnection_api",
1061 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 11:25:46 +02001062 "../test:test_support",
1063 ]
1064 }
1065
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001066 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001067 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001068 testonly = true
1069 sources = [
1070 "test/fake_frame_encryptor.cc",
1071 "test/fake_frame_encryptor.h",
1072 ]
1073 deps = [
1074 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001075 ":libjingle_peerconnection_api",
1076 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001077 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001078 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +02001079 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001080 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001081 ]
1082 }
1083
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001084 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001085 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 14:22:34 -07001086 testonly = true
1087 sources = [
1088 "test/fake_frame_decryptor.cc",
1089 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -07001090 ]
1091 deps = [
1092 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001093 ":libjingle_peerconnection_api",
1094 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001095 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -07001096 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001097 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -07001098 ]
1099 }
1100
Steve Anton60be6a92020-11-05 14:32:18 -08001101 rtc_source_set("mock_media_stream_interface") {
1102 visibility = [ "*" ]
1103 testonly = true
1104 sources = [ "test/mock_media_stream_interface.h" ]
1105
1106 deps = [
1107 ":media_stream_interface",
1108 "../test:test_support",
1109 ]
1110 }
1111
Niels Möller573b1452022-06-21 11:37:29 +02001112 rtc_source_set("mock_packet_socket_factory") {
1113 visibility = [ "*" ]
1114 testonly = true
1115 sources = [ "test/mock_packet_socket_factory.h" ]
1116
1117 deps = [
1118 ":packet_socket_factory",
1119 "../test:test_support",
1120 ]
1121 }
1122
Jiawei Ou651b92e2018-06-29 15:46:44 -07001123 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 14:34:17 -07001124 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001125 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001126 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001127
1128 deps = [
1129 ":libjingle_peerconnection_api",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001130 "../api:scoped_refptr",
1131 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 15:46:44 -07001132 "../test:test_support",
1133 ]
1134 }
1135
Steve Antonf84ab8e2020-06-03 09:18:24 -07001136 rtc_source_set("mock_peer_connection_factory_interface") {
1137 visibility = [ "*" ]
1138 testonly = true
1139 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1140
1141 deps = [
1142 ":libjingle_peerconnection_api",
1143 "../test:test_support",
1144 ]
1145 }
1146
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001147 rtc_source_set("mock_session_description_interface") {
1148 visibility = [ "*" ]
1149 testonly = true
1150 sources = [ "test/mock_session_description_interface.h" ]
1151 deps = [
1152 ":libjingle_peerconnection_api",
1153 "../test:test_support",
1154 ]
1155 }
1156
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001157 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001158 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001159 testonly = true
1160 sources = [ "test/mock_async_dns_resolver.h" ]
1161 deps = [
1162 ":async_dns_resolver",
1163 "../test:test_support",
1164 ]
1165 }
1166
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001167 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 14:37:22 -08001168 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001169 testonly = true
1170 sources = [
Steve Anton43ef5d92020-11-05 14:37:22 -08001171 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001172 "test/mock_rtpreceiver.h",
1173 "test/mock_rtpsender.h",
1174 ]
1175
1176 deps = [
1177 ":libjingle_peerconnection_api",
1178 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001179 ]
1180 }
1181
Marina Cioceabb13f382020-05-15 08:24:17 +02001182 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001183 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 08:24:17 +02001184 testonly = true
1185 sources = [ "test/mock_transformable_video_frame.h" ]
1186
1187 deps = [
1188 ":frame_transformer_interface",
1189 "../test:test_support",
1190 ]
1191 }
1192
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001193 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001194 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001195 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001196 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001197
1198 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001199 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001200 "../test:test_support",
1201 ]
1202 }
1203
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001204 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001205 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001206 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001207 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001208
1209 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001210 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001211 "../test:test_support",
1212 ]
1213 }
1214
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001215 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001216 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001217 testonly = true
1218 sources = [
1219 "test/mock_video_decoder_factory.h",
1220 "test/mock_video_encoder_factory.h",
1221 ]
1222
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001223 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001224 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001225 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001226 ]
1227 }
1228
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001229 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001230 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001231 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001232 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001233
1234 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001235 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 11:55:13 +02001236 "../test:test_support",
1237 ]
1238 }
1239
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001240 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001241 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001242 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001243 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001244
1245 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001246 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 10:01:30 +02001247 "../test:test_support",
1248 ]
1249 }
1250
Florent Castelli63cc46c2021-07-17 01:32:40 +02001251 rtc_library("mock_video_track") {
1252 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-17 01:32:40 +02001253 testonly = true
1254 sources = [ "test/mock_video_track.h" ]
1255
1256 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001257 "../api:media_stream_interface",
1258 "../api:scoped_refptr",
1259 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001260 "../test:test_support",
1261 ]
1262 }
1263
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001264 rtc_library("create_time_controller") {
1265 visibility = [ "*" ]
1266 testonly = true
1267 sources = [
1268 "test/create_time_controller.cc",
1269 "test/create_time_controller.h",
1270 ]
1271
1272 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001273 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001274 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +01001275 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001276 "../call:call_interfaces",
Vojin Ilic504fc192021-05-31 14:02:28 +02001277 "../call:rtp_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001278 "../test/time_controller",
1279 ]
1280 }
1281
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001282 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001283 testonly = true
1284
1285 sources = [
1286 "array_view_unittest.cc",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001287 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001288 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001289 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001290 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001291 "rtp_packet_info_unittest.cc",
1292 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001293 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001294 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 15:06:50 +01001295 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001296 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 13:01:03 +02001297 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001298 ]
1299
Niels Möller2e47f7c2018-10-16 10:41:42 +02001300 deps = [
1301 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001302 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001303 ":field_trials",
1304 ":field_trials_view",
Artem Titov741daaf2019-03-21 14:37:36 +01001305 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001306 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 13:01:03 +02001307 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001308 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001309 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001310 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001311 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001312 ":scoped_refptr",
Artem Titovb586d822021-02-04 15:06:50 +01001313 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001314 ":time_controller",
Florent Castellif9c59842022-04-19 17:07:23 +02001315 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001316 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001317 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 12:18:28 +02001318 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 16:57:52 +02001319 "../rtc_base:rtc_event",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001320 "../rtc_base:rtc_task_queue",
Artem Titovb586d822021-02-04 15:06:50 +01001321 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001322 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001323 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001324 "../system_wrappers:field_trial",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001325 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001326 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001327 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001328 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +01001329 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 17:04:10 +02001330 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001331 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001332 "units:time_delta",
1333 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001334 "units:units_unittests",
philipel8615bf02022-05-05 15:12:13 +02001335 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 14:41:23 +02001336 "video:rtp_video_frame_assembler_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001337 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001338 ]
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001339 absl_deps = [
1340 "//third_party/abseil-cpp/absl/strings",
1341 "//third_party/abseil-cpp/absl/types:optional",
1342 ]
Niels Möller2e47f7c2018-10-16 10:41:42 +02001343 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001344
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001345 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001346 testonly = true
1347
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001348 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001349
1350 deps = [
1351 ":fake_frame_decryptor",
1352 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001353 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001354 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 17:13:54 +02001355 ":mock_audio_sink",
Steve Antonc49c7d22020-11-04 19:21:49 -08001356 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001357 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001358 ":mock_frame_decryptor",
1359 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 14:32:18 -08001360 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 11:37:29 +02001361 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 09:18:24 -07001362 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001363 ":mock_peerconnectioninterface",
1364 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001365 ":mock_session_description_interface",
Marina Cioceabb13f382020-05-15 08:24:17 +02001366 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001367 ":mock_video_bitrate_allocator",
1368 ":mock_video_bitrate_allocator_factory",
1369 ":mock_video_codec_factory",
1370 ":mock_video_decoder",
1371 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001372 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001373 ":rtc_api_unittests",
1374 "units:units_unittests",
1375 ]
1376 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001377}
Jonas Orelanded99dae2022-03-09 09:28:10 +01001378
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001379rtc_source_set("field_trials_registry") {
1380 visibility = [ "*" ]
1381 sources = [
1382 "field_trials_registry.cc",
1383 "field_trials_registry.h",
1384 ]
1385 deps = [
1386 ":field_trials_view",
1387 "../experiments:registered_field_trials",
1388 "../rtc_base:checks",
1389 "../rtc_base/containers:flat_set",
1390 "../rtc_base/system:rtc_export",
1391 ]
1392 absl_deps = [
1393 "//third_party/abseil-cpp/absl/algorithm:container",
1394 "//third_party/abseil-cpp/absl/strings",
1395 ]
1396}
1397
Jonas Orelande62c2f22022-03-29 11:04:48 +02001398rtc_source_set("field_trials_view") {
1399 visibility = [ "*" ]
1400 sources = [ "field_trials_view.h" ]
1401 deps = [ "../rtc_base/system:rtc_export" ]
1402 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1403}
1404
Jonas Orelanded99dae2022-03-09 09:28:10 +01001405rtc_source_set("webrtc_key_value_config") {
1406 visibility = [ "*" ]
1407 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 11:04:48 +02001408 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 09:28:10 +01001409}
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001410
1411rtc_library("field_trials") {
1412 visibility = [ "*" ]
1413 sources = [
1414 "field_trials.cc",
1415 "field_trials.h",
1416 ]
1417 deps = [
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001418 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001419 "../rtc_base:checks",
1420 "../rtc_base/containers:flat_map",
1421 "../system_wrappers:field_trial",
1422 ]
1423 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1424}