blob: d6745c998eff0045339bc8efdcf49b8302e685b9 [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",
Steve Anton10542f22019-01-11 09:11:00 -0800209 "peer_connection_interface.cc",
210 "peer_connection_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800211 "rtp_receiver_interface.cc",
212 "rtp_receiver_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800213 "rtp_sender_interface.h",
214 "rtp_transceiver_interface.cc",
215 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100216 "sctp_transport_interface.cc",
217 "sctp_transport_interface.h",
Henrik Boström831ae4e2020-07-29 12:04:00 +0200218 "set_local_description_observer_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800219 "set_remote_description_observer_interface.h",
220 "stats_types.cc",
221 "stats_types.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 = [
Artem Titovd57628f2019-03-22 12:34:25 +0100550 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100551 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100552 "//third_party/abseil-cpp/absl/types:optional",
553 ]
554}
555
Artem Titov503d7232019-12-04 12:37:13 +0100556rtc_source_set("frame_generator_api") {
557 visibility = [ "*" ]
558 testonly = true
Evan Shrubsole7899e972020-09-28 12:04:11 +0200559 sources = [
560 "test/frame_generator_interface.cc",
561 "test/frame_generator_interface.h",
562 ]
Artem Titov503d7232019-12-04 12:37:13 +0100563
564 deps = [
565 ":scoped_refptr",
566 "video:video_frame",
Artem Titov503d7232019-12-04 12:37:13 +0100567 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200568 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Artem Titov503d7232019-12-04 12:37:13 +0100569}
570
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200571rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200572 visibility = [ "*" ]
573 testonly = true
574 sources = [
575 "test/test_dependency_factory.cc",
576 "test/test_dependency_factory.h",
577 ]
578 deps = [
579 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100580 "../rtc_base:checks",
Tommi9b7232a2020-05-15 10:09:27 +0200581 "../rtc_base:platform_thread_types",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200582 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200583}
584
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200585if (rtc_include_tests) {
Sebastian Janssoncec24332019-12-04 14:26:50 +0100586 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200587 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100588 visibility = [ "*" ]
589 testonly = true
590 sources = [
591 "test/create_network_emulation_manager.cc",
592 "test/create_network_emulation_manager.h",
593 ]
594 deps = [
595 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200596 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100597 ]
598 }
Artem Titovd57628f2019-03-22 12:34:25 +0100599
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000600 if (!build_with_chromium) {
601 rtc_library("create_video_quality_test_fixture_api") {
602 visibility = [ "*" ]
603 testonly = true
604 sources = [
605 "test/create_video_quality_test_fixture.cc",
606 "test/create_video_quality_test_fixture.h",
607 ]
608 deps = [
609 ":fec_controller_api",
610 ":network_state_predictor_api",
611 ":scoped_refptr",
612 ":video_quality_test_fixture_api",
613 "../video:video_quality_test",
614 ]
615 }
Artem Titovd57628f2019-03-22 12:34:25 +0100616
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000617 rtc_library("create_peerconnection_quality_test_fixture") {
618 visibility = [ "*" ]
619 testonly = true
620 sources = [
621 "test/create_peerconnection_quality_test_fixture.cc",
622 "test/create_peerconnection_quality_test_fixture.h",
623 ]
624
625 deps = [
626 ":audio_quality_analyzer_api",
627 ":peer_connection_quality_test_fixture_api",
628 ":time_controller",
629 ":video_quality_analyzer_api",
630 "../test/pc/e2e:peerconnection_quality_test",
Artem Titov36806052022-09-21 16:08:03 +0200631 "test/metrics:global_metrics_logger_and_exporter",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000632 ]
633 }
Artem Titovd57628f2019-03-22 12:34:25 +0100634 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100635}
Artem Titov503d7232019-12-04 12:37:13 +0100636
Artem Titov33f9d2b2019-12-05 15:59:00 +0100637rtc_library("create_frame_generator") {
638 visibility = [ "*" ]
639 testonly = true
640 sources = [
641 "test/create_frame_generator.cc",
642 "test/create_frame_generator.h",
643 ]
644 deps = [
645 ":frame_generator_api",
646 "../rtc_base:checks",
647 "../system_wrappers",
648 "../test:frame_generator_impl",
Artem Titov33f9d2b2019-12-05 15:59:00 +0100649 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200650 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200651}
652
Andrey Logvindad6a942020-05-04 17:27:09 +0000653rtc_library("create_peer_connection_quality_test_frame_generator") {
654 visibility = [ "*" ]
655 testonly = true
656 sources = [
657 "test/create_peer_connection_quality_test_frame_generator.cc",
658 "test/create_peer_connection_quality_test_frame_generator.h",
659 ]
660 deps = [
661 ":create_frame_generator",
662 ":frame_generator_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000663 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000664 "../test:fileutils",
Jeremy Leconte0e2cf6c2022-11-04 11:10:42 +0100665 "test/pclf:media_configuration",
Andrey Logvindad6a942020-05-04 17:27:09 +0000666 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200667 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Andrey Logvindad6a942020-05-04 17:27:09 +0000668}
669
Elad Alon80810732017-10-06 13:07:32 +0200670rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000671 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100672 sources = [ "rtc_event_log_output.h" ]
Björn Terelius63299a32022-07-05 10:58:52 +0200673 absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
Elad Alon80810732017-10-06 13:07:32 +0200674}
675
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200676rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200677 visibility = [ "*" ]
678 sources = [
679 "rtc_event_log_output_file.cc",
680 "rtc_event_log_output_file.h",
681 ]
682
683 deps = [
684 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200685 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200686 "../rtc_base:logging",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200687 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200688 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200689 ]
690}
691
hbos74e1a4f2016-09-15 23:33:01 -0700692rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000693 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700694 cflags = []
695 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800696 "stats/rtc_stats.h",
697 "stats/rtc_stats_collector_callback.h",
698 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700699 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700700 ]
701
702 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200703 ":make_ref_counted",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100704 ":scoped_refptr",
Tommi86ee89f2021-04-20 16:58:01 +0200705 "../api:refcountedbase",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100706 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +0200707 "../rtc_base:refcount",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200708 "../rtc_base/system:rtc_export",
Philipp Hancke036b3fd2022-10-12 19:12:23 +0200709 "units:timestamp",
hbos74e1a4f2016-09-15 23:33:01 -0700710 ]
Philipp Hancke8e7a1052022-10-13 13:14:01 +0200711
712 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
hbos74e1a4f2016-09-15 23:33:01 -0700713}
714
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200715rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100716 visibility = [ "*" ]
717 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200718 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100719 "audio_options.h",
720 ]
721
722 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100723 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200724 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800725 "../rtc_base/system:rtc_export",
Niels Möllera6fe2612018-01-19 11:28:54 +0100726 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200727 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllera6fe2612018-01-19 11:28:54 +0100728}
729
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200730rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000731 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800732 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100733 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800734 "call/transport.h",
735 ]
Danil Chapovalov5312a8f2021-01-25 17:02:57 +0100736 deps = [
737 ":refcountedbase",
738 ":scoped_refptr",
739 ]
aleloia8eb7562016-11-28 07:02:13 -0800740}
nisseb2250e52016-12-02 04:01:14 -0800741
Sebastian Jansson6736df12018-11-21 19:18:39 +0100742rtc_source_set("bitrate_allocation") {
743 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100744 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100745 deps = [
746 "units:data_rate",
747 "units:time_delta",
748 ]
749}
750
Sebastian Janssoncec24332019-12-04 14:26:50 +0100751# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200752rtc_source_set("simulated_network_api") {
753 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100754 sources = [ "test/simulated_network.h" ]
Florent Castelli4467ad72022-04-04 15:18:46 +0200755 deps = [
756 "../rtc_base",
757 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 12:41:26 +0200758 "../rtc_base:random",
Florent Castelli4467ad72022-04-04 15:18:46 +0200759 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200760 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200761}
762
Sebastian Janssoncec24332019-12-04 14:26:50 +0100763# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100764rtc_source_set("network_emulation_manager_api") {
765 visibility = [ "*" ]
766 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100767 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100768 "test/network_emulation_manager.h",
769 ]
770 deps = [
Artem Titovcf781282020-07-28 13:45:16 +0200771 ":array_view",
Niels Möller5e7a3ae2021-09-09 15:54:42 +0200772 ":packet_socket_factory",
Niels Möllerf47a7242021-11-22 16:07:35 +0100773 ":peer_network_dependencies",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100774 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100775 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100776 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100777 "../rtc_base",
Björn Tereliusb22cabc2022-06-02 10:51:59 +0200778 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100779 "../rtc_base:network_constants",
780 "../rtc_base:threading",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100781 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200782 "units:data_rate",
783 "units:data_size",
784 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100785 ]
786}
787
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100788rtc_source_set("time_controller") {
789 visibility = [ "*" ]
790 sources = [
791 "test/time_controller.cc",
792 "test/time_controller.h",
793 ]
794
795 deps = [
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100796 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100797 "../rtc_base:threading",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100798 "../rtc_base/synchronization:yield_policy",
799 "../system_wrappers",
800 "task_queue",
801 "units:time_delta",
802 "units:timestamp",
803 ]
804}
805
Ying Wang3b790f32018-01-19 17:58:57 +0100806rtc_source_set("fec_controller_api") {
807 visibility = [ "*" ]
808 sources = [
809 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200810 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100811 ]
812
813 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100814 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100815 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100816 ]
817}
818
Ying Wang0810a7c2019-04-10 13:48:24 +0200819rtc_source_set("network_state_predictor_api") {
820 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100821 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200822}
823
kwiberg529662a2017-09-04 05:43:17 -0700824rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000825 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100826 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700827 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100828 "../rtc_base:checks",
829 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700830 ]
831}
832
Niels Möller9155e492017-10-23 11:22:30 +0200833rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000834 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100835 sources = [ "ref_counted_base.h" ]
Tommi86ee89f2021-04-20 16:58:01 +0200836 deps = [
837 "../rtc_base:macromagic",
838 "../rtc_base:refcount",
839 ]
Niels Möller9155e492017-10-23 11:22:30 +0200840}
841
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200842rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100843 visibility = [ "*" ]
844 sources = [
845 "ice_transport_factory.cc",
846 "ice_transport_factory.h",
847 ]
848 deps = [
Mirko Bonadeid151cc62022-06-20 06:35:28 +0000849 ":ice_transport_interface",
Harald Alvestrand98462622019-01-30 14:57:03 +0100850 ":libjingle_peerconnection_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +0200851 ":make_ref_counted",
Patrik Höglund7d003422019-09-17 12:16:35 +0200852 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100853 ":scoped_refptr",
854 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100855 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100856 "../rtc_base:threading",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200857 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700858 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100859 ]
860}
861
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200862rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200863 visibility = [ "*" ]
864 sources = [
865 "test/neteq_simulator.cc",
866 "test/neteq_simulator.h",
867 ]
868}
869
Artem Titov741daaf2019-03-21 14:37:36 +0100870rtc_source_set("function_view") {
871 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100872 sources = [ "function_view.h" ]
873 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100874}
875
Artem Titovb586d822021-02-04 15:06:50 +0100876rtc_source_set("sequence_checker") {
877 visibility = [ "*" ]
878 sources = [ "sequence_checker.h" ]
879 deps = [
880 "../rtc_base:checks",
881 "../rtc_base:macromagic",
882 "../rtc_base/synchronization:sequence_checker_internal",
883 ]
884}
885
kjellanderfd5b4e92016-06-13 12:08:33 -0700886if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000887 if (rtc_enable_protobuf && !build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200888 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100889 visibility = [ "*" ]
890 testonly = true
891 sources = [
892 "test/audioproc_float.cc",
893 "test/audioproc_float.h",
894 ]
895
896 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100897 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000898 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100899 "../modules/audio_processing:audioproc_f_impl",
900 ]
901 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200902
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200903 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200904 visibility = [ "*" ]
905 testonly = true
906 sources = [
907 "test/neteq_simulator_factory.cc",
908 "test/neteq_simulator_factory.h",
909 ]
910 deps = [
911 ":neteq_simulator_api",
912 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200913 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100914 "neteq:neteq_api",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200915 ]
916 absl_deps = [
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200917 "//third_party/abseil-cpp/absl/flags:flag",
918 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100919 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100920 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200921 ]
922 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100923 }
924
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200925 rtc_source_set("simulcast_test_fixture_api") {
926 visibility = [ "*" ]
927 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100928 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200929 }
930
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200931 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200932 visibility = [ "*" ]
933 testonly = true
934 sources = [
935 "test/create_simulcast_test_fixture.cc",
936 "test/create_simulcast_test_fixture.h",
937 ]
938 deps = [
939 ":simulcast_test_fixture_api",
940 "../modules/video_coding:simulcast_test_fixture_impl",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200941 "video_codecs:video_codecs_api",
942 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200943 }
944
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200945 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200946 visibility = [ "*" ]
947 testonly = true
948 sources = [
949 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200950 "test/videocodec_test_stats.cc",
951 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200952 ]
953 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200954 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200955 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100956 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200957 "video_codecs:video_codecs_api",
958 ]
959 }
960
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200961 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200962 visibility = [ "*" ]
963 testonly = true
964 sources = [
965 "test/create_videocodec_test_fixture.cc",
966 "test/create_videocodec_test_fixture.h",
967 ]
968 deps = [
969 ":videocodec_test_fixture_api",
970 "../modules/video_coding:video_codecs_test_framework",
971 "../modules/video_coding:videocodec_test_impl",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200972 "video_codecs:video_codecs_api",
973 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200974 }
975
kjellander2f6af9c2017-03-02 22:26:23 -0800976 rtc_source_set("mock_audio_mixer") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +0200977 visibility = [ "*" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800978 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100979 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800980
kjellander2f6af9c2017-03-02 22:26:23 -0800981 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700982 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100983 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800984 ]
985 }
986
Florent Castelli2b4f5132021-07-16 17:13:54 +0200987 rtc_source_set("mock_audio_sink") {
Florent Castelli093f5242021-07-17 00:48:10 +0200988 visibility = [ "*" ]
Florent Castelli2b4f5132021-07-16 17:13:54 +0200989 testonly = true
990 sources = [ "test/mock_audio_sink.h" ]
991
992 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +0000993 "../api:media_stream_interface",
Florent Castelli2b4f5132021-07-16 17:13:54 +0200994 "../test:test_support",
995 ]
996 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
997 }
998
Steve Antonc49c7d22020-11-04 19:21:49 -0800999 rtc_source_set("mock_data_channel") {
1000 visibility = [ "*" ]
1001 testonly = true
1002 sources = [ "test/mock_data_channel.h" ]
1003
1004 deps = [
1005 ":libjingle_peerconnection_api",
1006 "../test:test_support",
1007 ]
1008 }
1009
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001010 rtc_source_set("mock_dtmf_sender") {
1011 visibility = [ "*" ]
1012 testonly = true
1013 sources = [ "test/mock_dtmf_sender.h" ]
1014
1015 deps = [
1016 ":libjingle_peerconnection_api",
1017 "../test:test_support",
1018 ]
1019 }
1020
Elad Alon45befc52019-07-02 11:20:09 +02001021 rtc_source_set("mock_fec_controller_override") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001022 visibility = [ "*" ]
Elad Alon45befc52019-07-02 11:20:09 +02001023 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001024 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +02001025 deps = [
1026 ":fec_controller_api",
1027 "../test:test_support",
1028 ]
1029 }
1030
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001031 rtc_library("mock_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001032 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001033 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001034 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001035 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001036 # For api/crypto/frame_encryptor_interface.h
1037 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001038 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001039 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001040 ]
1041 }
1042
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001043 rtc_library("mock_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001044 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001045 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001046 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001047 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001048 ":libjingle_peerconnection_api",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001049 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001050 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001051 ]
1052 }
1053
Jonas Oreland65455162022-06-08 11:25:46 +02001054 rtc_library("mock_encoder_selector") {
1055 visibility = [ "*" ]
1056 testonly = true
1057 sources = [ "test/mock_encoder_selector.h" ]
1058 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001059 ":libjingle_peerconnection_api",
1060 "../api/video_codecs:video_codecs_api",
Jonas Oreland65455162022-06-08 11:25:46 +02001061 "../test:test_support",
1062 ]
1063 }
1064
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001065 rtc_library("fake_frame_encryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001066 visibility = [ "*" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -07001067 testonly = true
1068 sources = [
1069 "test/fake_frame_encryptor.cc",
1070 "test/fake_frame_encryptor.h",
1071 ]
1072 deps = [
1073 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001074 ":libjingle_peerconnection_api",
1075 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001076 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001077 "../rtc_base:checks",
Florent Castellif86f6f92022-04-05 02:54:12 +02001078 "../rtc_base:refcount",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001079 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -07001080 ]
1081 }
1082
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001083 rtc_library("fake_frame_decryptor") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001084 visibility = [ "*" ]
Benjamin Wright84583f62018-10-04 14:22:34 -07001085 testonly = true
1086 sources = [
1087 "test/fake_frame_decryptor.cc",
1088 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -07001089 ]
1090 deps = [
1091 ":array_view",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001092 ":libjingle_peerconnection_api",
1093 ":make_ref_counted",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001094 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -07001095 "../rtc_base:checks",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001096 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -07001097 ]
1098 }
1099
Steve Anton60be6a92020-11-05 14:32:18 -08001100 rtc_source_set("mock_media_stream_interface") {
1101 visibility = [ "*" ]
1102 testonly = true
1103 sources = [ "test/mock_media_stream_interface.h" ]
1104
1105 deps = [
1106 ":media_stream_interface",
1107 "../test:test_support",
1108 ]
1109 }
1110
Niels Möller573b1452022-06-21 11:37:29 +02001111 rtc_source_set("mock_packet_socket_factory") {
1112 visibility = [ "*" ]
1113 testonly = true
1114 sources = [ "test/mock_packet_socket_factory.h" ]
1115
1116 deps = [
1117 ":packet_socket_factory",
1118 "../test:test_support",
1119 ]
1120 }
1121
Jiawei Ou651b92e2018-06-29 15:46:44 -07001122 rtc_source_set("mock_peerconnectioninterface") {
Steve Antonaddf6162020-06-02 14:34:17 -07001123 visibility = [ "*" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001124 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001125 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -07001126
1127 deps = [
1128 ":libjingle_peerconnection_api",
Florent Castelli123a0ed2022-11-10 13:28:42 +00001129 "../api:scoped_refptr",
1130 "../rtc_base:refcount",
Jiawei Ou651b92e2018-06-29 15:46:44 -07001131 "../test:test_support",
1132 ]
1133 }
1134
Steve Antonf84ab8e2020-06-03 09:18:24 -07001135 rtc_source_set("mock_peer_connection_factory_interface") {
1136 visibility = [ "*" ]
1137 testonly = true
1138 sources = [ "test/mock_peer_connection_factory_interface.h" ]
1139
1140 deps = [
1141 ":libjingle_peerconnection_api",
1142 "../test:test_support",
1143 ]
1144 }
1145
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001146 rtc_source_set("mock_session_description_interface") {
1147 visibility = [ "*" ]
1148 testonly = true
1149 sources = [ "test/mock_session_description_interface.h" ]
1150 deps = [
1151 ":libjingle_peerconnection_api",
1152 "../test:test_support",
1153 ]
1154 }
1155
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001156 rtc_source_set("mock_async_dns_resolver") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001157 visibility = [ "*" ]
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001158 testonly = true
1159 sources = [ "test/mock_async_dns_resolver.h" ]
1160 deps = [
1161 ":async_dns_resolver",
1162 "../test:test_support",
1163 ]
1164 }
1165
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001166 rtc_source_set("mock_rtp") {
Steve Anton43ef5d92020-11-05 14:37:22 -08001167 visibility = [ "*" ]
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001168 testonly = true
1169 sources = [
Steve Anton43ef5d92020-11-05 14:37:22 -08001170 "test/mock_rtp_transceiver.h",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001171 "test/mock_rtpreceiver.h",
1172 "test/mock_rtpsender.h",
1173 ]
1174
1175 deps = [
1176 ":libjingle_peerconnection_api",
1177 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +01001178 ]
1179 }
1180
Marina Cioceabb13f382020-05-15 08:24:17 +02001181 rtc_source_set("mock_transformable_video_frame") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001182 visibility = [ "*" ]
Marina Cioceabb13f382020-05-15 08:24:17 +02001183 testonly = true
1184 sources = [ "test/mock_transformable_video_frame.h" ]
1185
1186 deps = [
1187 ":frame_transformer_interface",
1188 "../test:test_support",
1189 ]
1190 }
1191
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001192 rtc_source_set("mock_video_bitrate_allocator") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001193 visibility = [ "*" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001194 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001195 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001196
1197 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001198 "../api/video:video_bitrate_allocator",
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001199 "../test:test_support",
1200 ]
1201 }
1202
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001203 rtc_source_set("mock_video_bitrate_allocator_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001204 visibility = [ "*" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001205 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001206 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001207
1208 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001209 "../api/video:video_bitrate_allocator_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -08001210 "../test:test_support",
1211 ]
1212 }
1213
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001214 rtc_source_set("mock_video_codec_factory") {
Florent Castelli4e0d46f2021-07-19 13:43:10 +02001215 visibility = [ "*" ]
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001216 testonly = true
1217 sources = [
1218 "test/mock_video_decoder_factory.h",
1219 "test/mock_video_encoder_factory.h",
1220 ]
1221
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001222 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001223 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001224 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -07001225 ]
1226 }
1227
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001228 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001229 visibility = [ "*" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001230 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001231 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 11:55:13 +02001232
1233 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001234 "../api/video_codecs:video_codecs_api",
Erik Språngc84cd952018-10-15 11:55:13 +02001235 "../test:test_support",
1236 ]
1237 }
1238
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001239 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +02001240 visibility = [ "*" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001241 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +02001242 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 10:01:30 +02001243
1244 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001245 "../api/video_codecs:video_codecs_api",
Erik Språng6af1c922018-10-12 10:01:30 +02001246 "../test:test_support",
1247 ]
1248 }
1249
Florent Castelli63cc46c2021-07-17 01:32:40 +02001250 rtc_library("mock_video_track") {
1251 visibility = [ "*" ]
Florent Castelli63cc46c2021-07-17 01:32:40 +02001252 testonly = true
1253 sources = [ "test/mock_video_track.h" ]
1254
1255 deps = [
Florent Castelli123a0ed2022-11-10 13:28:42 +00001256 "../api:media_stream_interface",
1257 "../api:scoped_refptr",
1258 "../rtc_base:refcount",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001259 "../test:test_support",
1260 ]
1261 }
1262
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001263 rtc_library("create_time_controller") {
1264 visibility = [ "*" ]
1265 testonly = true
1266 sources = [
1267 "test/create_time_controller.cc",
1268 "test/create_time_controller.h",
1269 ]
1270
1271 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001272 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001273 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +01001274 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +01001275 "../call:call_interfaces",
Vojin Ilic504fc192021-05-31 14:02:28 +02001276 "../call:rtp_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001277 "../test/time_controller",
1278 ]
1279 }
1280
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001281 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001282 testonly = true
1283
1284 sources = [
1285 "array_view_unittest.cc",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001286 "field_trials_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001287 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001288 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001289 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001290 "rtp_packet_info_unittest.cc",
1291 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001292 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001293 "scoped_refptr_unittest.cc",
Artem Titovb586d822021-02-04 15:06:50 +01001294 "sequence_checker_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001295 "test/create_time_controller_unittest.cc",
Artem Titov0d510522022-04-19 13:01:03 +02001296 "test/peerconnection_quality_test_fixture_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001297 ]
1298
Niels Möller2e47f7c2018-10-16 10:41:42 +02001299 deps = [
1300 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001301 ":create_time_controller",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001302 ":field_trials",
1303 ":field_trials_view",
Artem Titov741daaf2019-03-21 14:37:36 +01001304 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001305 ":libjingle_peerconnection_api",
Artem Titov0d510522022-04-19 13:01:03 +02001306 ":peer_connection_quality_test_fixture_api",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001307 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001308 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001309 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001310 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001311 ":scoped_refptr",
Artem Titovb586d822021-02-04 15:06:50 +01001312 ":sequence_checker",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001313 ":time_controller",
Florent Castellif9c59842022-04-19 17:07:23 +02001314 "../rtc_base:buffer",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001315 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001316 "../rtc_base:gunit_helpers",
Florent Castelli45a05992022-04-14 12:18:28 +02001317 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 16:57:52 +02001318 "../rtc_base:rtc_event",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001319 "../rtc_base:rtc_task_queue",
Artem Titovb586d822021-02-04 15:06:50 +01001320 "../rtc_base:task_queue_for_test",
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001321 "../rtc_base/containers:flat_set",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001322 "../rtc_base/task_utils:repeating_task",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001323 "../system_wrappers:field_trial",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001324 "../test:fileutils",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001325 "../test:rtc_expect_death",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001326 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001327 "task_queue:task_queue_default_factory_unittests",
Jeremy Lecontee91d4bc2022-11-05 12:56:07 +01001328 "test/pclf:media_configuration",
Artem Titov96002fa2022-10-25 17:04:10 +02001329 "test/video:video_frame_writer",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001330 "transport:field_trial_based_config",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001331 "units:time_delta",
1332 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001333 "units:units_unittests",
philipel8615bf02022-05-05 15:12:13 +02001334 "video:frame_buffer_unittest",
philipele9a74c92021-06-24 14:41:23 +02001335 "video:rtp_video_frame_assembler_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001336 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001337 ]
Emil Lundmark6bf20cc2022-09-21 15:20:22 +02001338 absl_deps = [
1339 "//third_party/abseil-cpp/absl/strings",
1340 "//third_party/abseil-cpp/absl/types:optional",
1341 ]
Niels Möller2e47f7c2018-10-16 10:41:42 +02001342 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001343
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001344 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001345 testonly = true
1346
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001347 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001348
1349 deps = [
1350 ":fake_frame_decryptor",
1351 ":fake_frame_encryptor",
Harald Alvestrand0ccfbd22021-04-08 07:25:04 +00001352 ":mock_async_dns_resolver",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001353 ":mock_audio_mixer",
Florent Castelli2b4f5132021-07-16 17:13:54 +02001354 ":mock_audio_sink",
Steve Antonc49c7d22020-11-04 19:21:49 -08001355 ":mock_data_channel",
Florent Castelli8c6d88f2022-05-11 18:33:28 +02001356 ":mock_dtmf_sender",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001357 ":mock_frame_decryptor",
1358 ":mock_frame_encryptor",
Steve Anton60be6a92020-11-05 14:32:18 -08001359 ":mock_media_stream_interface",
Niels Möller573b1452022-06-21 11:37:29 +02001360 ":mock_packet_socket_factory",
Steve Antonf84ab8e2020-06-03 09:18:24 -07001361 ":mock_peer_connection_factory_interface",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001362 ":mock_peerconnectioninterface",
1363 ":mock_rtp",
Harald Alvestrand98fe9852022-10-24 09:43:22 +00001364 ":mock_session_description_interface",
Marina Cioceabb13f382020-05-15 08:24:17 +02001365 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001366 ":mock_video_bitrate_allocator",
1367 ":mock_video_bitrate_allocator_factory",
1368 ":mock_video_codec_factory",
1369 ":mock_video_decoder",
1370 ":mock_video_encoder",
Florent Castelli63cc46c2021-07-17 01:32:40 +02001371 ":mock_video_track",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001372 ":rtc_api_unittests",
1373 "units:units_unittests",
1374 ]
1375 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001376}
Jonas Orelanded99dae2022-03-09 09:28:10 +01001377
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001378rtc_source_set("field_trials_registry") {
1379 visibility = [ "*" ]
1380 sources = [
1381 "field_trials_registry.cc",
1382 "field_trials_registry.h",
1383 ]
1384 deps = [
1385 ":field_trials_view",
1386 "../experiments:registered_field_trials",
1387 "../rtc_base:checks",
1388 "../rtc_base/containers:flat_set",
1389 "../rtc_base/system:rtc_export",
1390 ]
1391 absl_deps = [
1392 "//third_party/abseil-cpp/absl/algorithm:container",
1393 "//third_party/abseil-cpp/absl/strings",
1394 ]
1395}
1396
Jonas Orelande62c2f22022-03-29 11:04:48 +02001397rtc_source_set("field_trials_view") {
1398 visibility = [ "*" ]
1399 sources = [ "field_trials_view.h" ]
1400 deps = [ "../rtc_base/system:rtc_export" ]
1401 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1402}
1403
Jonas Orelanded99dae2022-03-09 09:28:10 +01001404rtc_source_set("webrtc_key_value_config") {
1405 visibility = [ "*" ]
1406 sources = [ "webrtc_key_value_config.h" ]
Jonas Orelande62c2f22022-03-29 11:04:48 +02001407 deps = [ ":field_trials_view" ]
Jonas Orelanded99dae2022-03-09 09:28:10 +01001408}
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001409
1410rtc_library("field_trials") {
1411 visibility = [ "*" ]
1412 sources = [
1413 "field_trials.cc",
1414 "field_trials.h",
1415 ]
1416 deps = [
Emil Lundmark1c8103d2022-09-21 15:20:22 +02001417 ":field_trials_registry",
Jonas Oreland128c4dc2022-03-30 07:57:48 +02001418 "../rtc_base:checks",
1419 "../rtc_base/containers:flat_map",
1420 "../system_wrappers:field_trial",
1421 ]
1422 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
1423}