blob: d82c28d7b4c111394b9c1626c0fd3a63476621a6 [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 = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
Mirko Bonadei35214fc2019-09-23 14:54:28 +020036 deps = [
37 "../rtc_base/system:rtc_export",
38 ]
Niels Möller8366e172018-02-14 12:20:13 +010039}
40
Danil Chapovalov5bf58062019-06-18 16:43:37 +020041if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020042 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020043 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020044 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020045 sources = [
46 "create_peerconnection_factory.cc",
47 "create_peerconnection_factory.h",
48 ]
49 deps = [
50 ":callfactory_api",
51 ":libjingle_peerconnection_api",
52 ":scoped_refptr",
53 "../api/rtc_event_log:rtc_event_log_factory",
54 "../media:rtc_audio_video",
55 "../media:rtc_media_base",
56 "../modules/audio_device:audio_device_api",
57 "../modules/audio_processing:api",
58 "../pc:peerconnection",
59 "../rtc_base",
60 "../rtc_base:rtc_base_approved",
61 "audio:audio_mixer_api",
62 "audio_codecs:audio_codecs_api",
63 "task_queue:default_task_queue_factory",
64 "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",
77 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020078 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020079 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010080 "//third_party/abseil-cpp/absl/types:optional",
81 ]
Niels Möllerb8389522019-03-19 14:27:03 +010082}
83
Mirko Bonadei86d053c2019-10-17 21:32:04 +020084rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020085 visibility = [ "*" ]
86 sources = [
87 "rtp_packet_info.cc",
88 "rtp_packet_info.h",
89 "rtp_packet_infos.h",
90 ]
91 deps = [
92 ":array_view",
93 ":refcountedbase",
94 ":rtp_headers",
95 ":scoped_refptr",
96 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020097 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020098 "../rtc_base:rtc_base_approved",
99 "//third_party/abseil-cpp/absl/types:optional",
100 ]
101}
102
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200103rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200104 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200105 sources = [
106 "media_stream_interface.cc",
107 "media_stream_interface.h",
108 "notifier.h",
109 ]
110 deps = [
111 ":audio_options_api",
112 ":rtp_parameters",
113 ":scoped_refptr",
114 "../modules/audio_processing:audio_processing_statistics",
115 "../rtc_base:checks",
116 "../rtc_base:refcount",
117 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100118 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200119 "video:video_frame",
120 "//third_party/abseil-cpp/absl/types:optional",
121 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200122}
123
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200124rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000125 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700126 cflags = []
127 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700128 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200129 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800130 "crypto_params.h",
131 "data_channel_interface.cc",
132 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200133 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "dtls_transport_interface.h",
135 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100136 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800137 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700138 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "jsep_ice_candidate.cc",
140 "jsep_ice_candidate.h",
141 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800142 "media_stream_proxy.h",
143 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800144 "peer_connection_factory_proxy.h",
145 "peer_connection_interface.cc",
146 "peer_connection_interface.h",
147 "peer_connection_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700148 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800149 "rtp_receiver_interface.cc",
150 "rtp_receiver_interface.h",
151 "rtp_sender_interface.cc",
152 "rtp_sender_interface.h",
153 "rtp_transceiver_interface.cc",
154 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100155 "sctp_transport_interface.cc",
156 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800157 "set_remote_description_observer_interface.h",
158 "stats_types.cc",
159 "stats_types.h",
160 "turn_customizer.h",
161 "uma_metrics.h",
162 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700163 ]
kjellanderc76dc952016-06-03 03:09:32 -0700164 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100165 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100166 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100167 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100168 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100169 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200170 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200171 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200172 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200173 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700174 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200175 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200176 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100177 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100178 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100179 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200180 "crypto:frame_decryptor_interface",
181 "crypto:frame_encryptor_interface",
182 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100183 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200184 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200185 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200186 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200187 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700188 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200189 "transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +0100190 "transport:webrtc_key_value_config",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100191 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200192 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100193 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200194 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800195 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700196 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200197 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200198 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200199 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800200 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700201 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800202 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200203 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100204
205 # Basically, don't add stuff here. You might break sensitive downstream
206 # targets like pnacl. API should not depend on anything outside of this
207 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700208 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200209 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100210 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100211 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100212 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100213 "../rtc_base:checks",
214 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700215 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200216 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700217 ]
ossu7bb87ee2017-01-23 04:56:25 -0800218}
kjellanderc76dc952016-06-03 03:09:32 -0700219
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200220rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200221 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200222 sources = [
223 "rtc_error.cc",
224 "rtc_error.h",
225 ]
226 deps = [
227 "../rtc_base:checks",
228 "../rtc_base:logging",
229 "../rtc_base:macromagic",
230 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100231 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200232 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200233}
234
Patrik Höglund662e31f2019-09-05 14:35:04 +0200235rtc_source_set("packet_socket_factory") {
236 visibility = [ "*" ]
237 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200238 "async_resolver_factory.h",
239 "packet_socket_factory.h",
240 ]
241 deps = [
242 "../rtc_base:rtc_base",
243 "../rtc_base/system:rtc_export",
244 ]
245}
246
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100247rtc_source_set("scoped_refptr") {
248 visibility = [ "*" ]
249 sources = [
250 "scoped_refptr.h",
251 ]
252}
253
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200254rtc_source_set("video_quality_test_fixture_api") {
255 visibility = [ "*" ]
256 testonly = true
257 sources = [
258 "test/video_quality_test_fixture.h",
259 ]
260 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200261 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200262 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200263 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200264 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200265 ":simulated_network_api",
266 "../call:fake_network",
267 "../call:rtp_interfaces",
268 "../test:test_common",
269 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200270 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200271 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200272 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200273 "video_codecs:video_codecs_api",
274 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200275}
276
Artem Titovd57628f2019-03-22 12:34:25 +0100277rtc_source_set("video_quality_analyzer_api") {
278 visibility = [ "*" ]
279 testonly = true
280 sources = [
281 "test/video_quality_analyzer_interface.h",
282 ]
283
284 deps = [
285 ":stats_observer_interface",
286 "video:encoded_image",
287 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200288 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100289 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100290 "//third_party/abseil-cpp/absl/types:optional",
291 ]
292}
293
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200294rtc_source_set("track_id_stream_label_map") {
295 visibility = [ "*" ]
296 sources = [
297 "test/track_id_stream_label_map.h",
298 ]
299}
300
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200301rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200302 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200303 sources = [
304 "media_types.cc",
305 "media_types.h",
306 "rtp_parameters.cc",
307 "rtp_parameters.h",
308 ]
309 deps = [
310 ":array_view",
311 "../rtc_base:checks",
312 "../rtc_base:stringutils",
313 "../rtc_base/system:rtc_export",
314 "//third_party/abseil-cpp/absl/types:optional",
315 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200316}
317
Artem Titovd57628f2019-03-22 12:34:25 +0100318rtc_source_set("audio_quality_analyzer_api") {
319 visibility = [ "*" ]
320 testonly = true
321 sources = [
322 "test/audio_quality_analyzer_interface.h",
323 ]
324
325 deps = [
326 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200327 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100328 ]
329}
330
331rtc_source_set("stats_observer_interface") {
332 visibility = [ "*" ]
333 testonly = true
334 sources = [
335 "test/stats_observer_interface.h",
336 ]
337
338 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200339 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100340 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200341 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100342 ]
343}
344
345rtc_source_set("peer_connection_quality_test_fixture_api") {
346 visibility = [ "*" ]
347 testonly = true
348 sources = [
349 "test/peerconnection_quality_test_fixture.h",
350 ]
351
352 deps = [
353 ":audio_quality_analyzer_api",
354 ":callfactory_api",
355 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100356 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100357 ":function_view",
358 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200359 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200360 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100361 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200362 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100363 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200364 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100365 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200366 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200367 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100368 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200369 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100370 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100371 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100372 "video_codecs:video_codecs_api",
373 "//third_party/abseil-cpp/absl/memory",
374 "//third_party/abseil-cpp/absl/types:optional",
375 ]
376}
377
Artem Titov503d7232019-12-04 12:37:13 +0100378rtc_source_set("frame_generator_api") {
379 visibility = [ "*" ]
380 testonly = true
381 sources = [
382 "test/frame_generator_interface.h",
383 ]
384
385 deps = [
386 ":scoped_refptr",
387 "video:video_frame",
388 "//third_party/abseil-cpp/absl/types:optional",
389 ]
390}
391
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200392rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200393 visibility = [ "*" ]
394 testonly = true
395 sources = [
396 "test/test_dependency_factory.cc",
397 "test/test_dependency_factory.h",
398 ]
399 deps = [
400 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100401 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200402 "../rtc_base:thread_checker",
403 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200404}
405
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200406if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200407 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/create_video_quality_test_fixture.cc",
412 "test/create_video_quality_test_fixture.h",
413 ]
414 deps = [
415 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200416 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100417 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200418 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200419 "../video:video_quality_test",
420 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200421 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100422
Sebastian Janssoncec24332019-12-04 14:26:50 +0100423 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200424 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100425 visibility = [ "*" ]
426 testonly = true
427 sources = [
428 "test/create_network_emulation_manager.cc",
429 "test/create_network_emulation_manager.h",
430 ]
431 deps = [
432 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200433 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100434 ]
435 }
Artem Titovd57628f2019-03-22 12:34:25 +0100436
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200437 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100438 visibility = [ "*" ]
439 testonly = true
440 sources = [
441 "test/create_peerconnection_quality_test_fixture.cc",
442 "test/create_peerconnection_quality_test_fixture.h",
443 ]
444
445 deps = [
446 ":audio_quality_analyzer_api",
447 ":peer_connection_quality_test_fixture_api",
448 ":video_quality_analyzer_api",
449 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100450 ]
451 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100452}
Artem Titov503d7232019-12-04 12:37:13 +0100453
Artem Titov33f9d2b2019-12-05 15:59:00 +0100454rtc_library("create_frame_generator") {
455 visibility = [ "*" ]
456 testonly = true
457 sources = [
458 "test/create_frame_generator.cc",
459 "test/create_frame_generator.h",
460 ]
461 deps = [
462 ":frame_generator_api",
463 "../rtc_base:checks",
464 "../system_wrappers",
465 "../test:frame_generator_impl",
466 "//third_party/abseil-cpp/absl/types:optional",
467 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200468}
469
Elad Alon80810732017-10-06 13:07:32 +0200470rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000471 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200472 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800473 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200474 ]
475}
476
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200477rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200478 visibility = [ "*" ]
479 sources = [
480 "rtc_event_log_output_file.cc",
481 "rtc_event_log_output_file.h",
482 ]
483
484 deps = [
485 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200486 "../rtc_base:checks",
487 "../rtc_base:rtc_base_approved",
488 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200489 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200490 ]
491}
492
hbos74e1a4f2016-09-15 23:33:01 -0700493rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000494 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700495 cflags = []
496 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800497 "stats/rtc_stats.h",
498 "stats/rtc_stats_collector_callback.h",
499 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700500 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700501 ]
502
503 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100504 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100505 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700506 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200507 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700508 ]
509}
510
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200511rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100512 visibility = [ "*" ]
513 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200514 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100515 "audio_options.h",
516 ]
517
518 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100519 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200520 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800521 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200522 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100523 ]
524}
525
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200526rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000527 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800528 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100529 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800530 "call/transport.h",
531 ]
532}
nisseb2250e52016-12-02 04:01:14 -0800533
Sebastian Jansson6736df12018-11-21 19:18:39 +0100534rtc_source_set("bitrate_allocation") {
535 visibility = [ "*" ]
536 sources = [
537 "call/bitrate_allocation.h",
538 ]
539 deps = [
540 "units:data_rate",
541 "units:time_delta",
542 ]
543}
544
Sebastian Janssoncec24332019-12-04 14:26:50 +0100545# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200546rtc_source_set("simulated_network_api") {
547 visibility = [ "*" ]
548 sources = [
549 "test/simulated_network.h",
550 ]
551 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100552 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200553 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200554 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200555 ]
556}
557
Sebastian Janssoncec24332019-12-04 14:26:50 +0100558# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100559rtc_source_set("network_emulation_manager_api") {
560 visibility = [ "*" ]
561 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100562 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100563 "test/network_emulation_manager.h",
564 ]
565 deps = [
566 ":simulated_network_api",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100567 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100568 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100569 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200570 "units:data_rate",
571 "units:data_size",
572 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100573 ]
574}
575
Ying Wang3b790f32018-01-19 17:58:57 +0100576rtc_source_set("fec_controller_api") {
577 visibility = [ "*" ]
578 sources = [
579 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200580 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100581 ]
582
583 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100584 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100585 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100586 ]
587}
588
Ying Wang0810a7c2019-04-10 13:48:24 +0200589rtc_source_set("network_state_predictor_api") {
590 visibility = [ "*" ]
591 sources = [
592 "network_state_predictor.h",
593 ]
594}
595
kwiberg529662a2017-09-04 05:43:17 -0700596rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000597 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700598 sources = [
599 "array_view.h",
600 ]
601 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100602 "../rtc_base:checks",
603 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700604 ]
605}
606
Niels Möller9155e492017-10-23 11:22:30 +0200607rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000608 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200609 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800610 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200611 ]
612 deps = [
613 "../rtc_base:rtc_base_approved",
614 ]
615}
616
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200617rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100618 visibility = [ "*" ]
619 sources = [
620 "ice_transport_factory.cc",
621 "ice_transport_factory.h",
622 ]
623 deps = [
624 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200625 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100626 ":scoped_refptr",
627 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100628 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200629 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700630 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100631 ]
632}
633
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200634rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200635 visibility = [ "*" ]
636 sources = [
637 "test/neteq_simulator.cc",
638 "test/neteq_simulator.h",
639 ]
640}
641
Artem Titov741daaf2019-03-21 14:37:36 +0100642rtc_source_set("function_view") {
643 visibility = [ "*" ]
644 sources = [
645 "function_view.h",
646 ]
647 deps = [
648 "../rtc_base:checks",
649 ]
650}
651
kjellanderfd5b4e92016-06-13 12:08:33 -0700652if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100653 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200654 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100655 visibility = [ "*" ]
656 testonly = true
657 sources = [
658 "test/audioproc_float.cc",
659 "test/audioproc_float.h",
660 ]
661
662 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100663 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000664 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100665 "../modules/audio_processing:audioproc_f_impl",
666 ]
667 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200668
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200669 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200670 visibility = [ "*" ]
671 testonly = true
672 sources = [
673 "test/neteq_simulator_factory.cc",
674 "test/neteq_simulator_factory.h",
675 ]
676 deps = [
677 ":neteq_simulator_api",
678 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200679 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200680 "//third_party/abseil-cpp/absl/flags:flag",
681 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100682 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200683 ]
684 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100685 }
686
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200687 rtc_source_set("simulcast_test_fixture_api") {
688 visibility = [ "*" ]
689 testonly = true
690 sources = [
691 "test/simulcast_test_fixture.h",
692 ]
693 }
694
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200695 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200696 visibility = [ "*" ]
697 testonly = true
698 sources = [
699 "test/create_simulcast_test_fixture.cc",
700 "test/create_simulcast_test_fixture.h",
701 ]
702 deps = [
703 ":simulcast_test_fixture_api",
704 "../modules/video_coding:simulcast_test_fixture_impl",
705 "../rtc_base:rtc_base_approved",
706 "video_codecs:video_codecs_api",
707 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200708 }
709
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200710 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200711 visibility = [ "*" ]
712 testonly = true
713 sources = [
714 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200715 "test/videocodec_test_stats.cc",
716 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200717 ]
718 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200719 "..:webrtc_common",
720 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200721 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100722 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 "video_codecs:video_codecs_api",
724 ]
725 }
726
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200727 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200728 visibility = [ "*" ]
729 testonly = true
730 sources = [
731 "test/create_videocodec_test_fixture.cc",
732 "test/create_videocodec_test_fixture.h",
733 ]
734 deps = [
735 ":videocodec_test_fixture_api",
736 "../modules/video_coding:video_codecs_test_framework",
737 "../modules/video_coding:videocodec_test_impl",
738 "../rtc_base:rtc_base_approved",
739 "video_codecs:video_codecs_api",
740 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200741 }
742
kjellander2f6af9c2017-03-02 22:26:23 -0800743 rtc_source_set("mock_audio_mixer") {
744 testonly = true
745 sources = [
746 "test/mock_audio_mixer.h",
747 ]
748
kjellander2f6af9c2017-03-02 22:26:23 -0800749 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700750 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100751 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800752 ]
753 }
754
Elad Alon45befc52019-07-02 11:20:09 +0200755 rtc_source_set("mock_fec_controller_override") {
756 testonly = true
757 sources = [
758 "test/mock_fec_controller_override.h",
759 ]
760 deps = [
761 ":fec_controller_api",
762 "../test:test_support",
763 ]
764 }
765
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200766 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700767 testonly = true
768 sources = [
769 "test/mock_frame_encryptor.cc",
770 "test/mock_frame_encryptor.h",
771 ]
772 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200773 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700774 ":libjingle_peerconnection_api",
775 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200776 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700777 ]
778 }
779
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200780 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700781 testonly = true
782 sources = [
783 "test/mock_frame_decryptor.cc",
784 "test/mock_frame_decryptor.h",
785 ]
786 deps = [
787 ":libjingle_peerconnection_api",
788 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200789 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700790 ]
791 }
792
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200793 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700794 testonly = true
795 sources = [
796 "test/fake_frame_encryptor.cc",
797 "test/fake_frame_encryptor.h",
798 ]
799 deps = [
800 ":array_view",
801 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200802 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700803 "..:webrtc_common",
804 "../rtc_base:checks",
805 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200806 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700807 ]
808 }
809
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200810 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700811 testonly = true
812 sources = [
813 "test/fake_frame_decryptor.cc",
814 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700815 ]
816 deps = [
817 ":array_view",
818 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200819 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700820 "..:webrtc_common",
821 "../rtc_base:checks",
822 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200823 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700824 ]
825 }
826
Niels Möllere78fd802019-09-13 14:45:55 +0200827 rtc_source_set("dummy_peer_connection") {
828 visibility = [ "*" ]
829 testonly = true
830 sources = [
831 "test/dummy_peer_connection.h",
832 ]
833
834 deps = [
835 ":libjingle_peerconnection_api",
836 ":rtc_error",
837 "../rtc_base:checks",
838 "../rtc_base:refcount",
839 ]
840 }
841
Jiawei Ou651b92e2018-06-29 15:46:44 -0700842 rtc_source_set("mock_peerconnectioninterface") {
843 testonly = true
844 sources = [
845 "test/mock_peerconnectioninterface.h",
846 ]
847
848 deps = [
849 ":libjingle_peerconnection_api",
850 "../test:test_support",
851 ]
852 }
853
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100854 rtc_source_set("mock_rtp") {
855 testonly = true
856 sources = [
857 "test/mock_rtpreceiver.h",
858 "test/mock_rtpsender.h",
859 ]
860
861 deps = [
862 ":libjingle_peerconnection_api",
863 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100864 ]
865 }
866
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700867 rtc_source_set("mock_video_bitrate_allocator") {
868 testonly = true
869 sources = [
870 "test/mock_video_bitrate_allocator.h",
871 ]
872
873 deps = [
874 "../api/video:video_bitrate_allocator",
875 "../test:test_support",
876 ]
877 }
878
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800879 rtc_source_set("mock_video_bitrate_allocator_factory") {
880 testonly = true
881 sources = [
882 "test/mock_video_bitrate_allocator_factory.h",
883 ]
884
885 deps = [
886 "../api/video:video_bitrate_allocator_factory",
887 "../test:test_support",
888 ]
889 }
890
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700891 rtc_source_set("mock_video_codec_factory") {
892 testonly = true
893 sources = [
894 "test/mock_video_decoder_factory.h",
895 "test/mock_video_encoder_factory.h",
896 ]
897
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700898 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100899 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700900 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700901 ]
902 }
903
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200904 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200905 visibility = [ "*" ]
906
907 testonly = true
908 sources = [
909 "test/mock_video_decoder.cc",
910 "test/mock_video_decoder.h",
911 ]
912
913 deps = [
914 "../api/video_codecs:video_codecs_api",
915 "../test:test_support",
916 ]
917 }
918
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200919 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200920 visibility = [ "*" ]
921
Erik Språng6af1c922018-10-12 10:01:30 +0200922 testonly = true
923 sources = [
924 "test/mock_video_encoder.cc",
925 "test/mock_video_encoder.h",
926 ]
927
928 deps = [
929 "../api/video_codecs:video_codecs_api",
930 "../test:test_support",
931 ]
932 }
933
Anton Sukhanov7940da02018-10-10 10:34:49 -0700934 rtc_source_set("fake_media_transport") {
935 testonly = true
936
937 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700938 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700939 "test/fake_media_transport.h",
940 ]
941
942 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700943 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200944 "transport:datagram_transport_interface",
945 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700946 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700947 ]
948 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200949
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200950 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200951 testonly = true
952
953 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100954 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200955 "test/loopback_media_transport.h",
956 ]
957
958 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100959 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200960 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200961 "transport:datagram_transport_interface",
962 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700963 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200964 ]
965 }
966
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800967 rtc_library("time_controller") {
968 visibility = [ "*" ]
969 testonly = true
970 sources = [
971 "test/time_controller.h",
972 ]
973
974 deps = [
975 "../modules:module_api",
976 "../modules/utility:utility",
977 "../rtc_base",
978 "../rtc_base:rtc_base_tests_utils",
979 "../rtc_base:rtc_event",
980 "../rtc_base/synchronization:sequence_checker",
981 "../rtc_base/synchronization:yield_policy",
982 "../rtc_base/task_utils:to_queued_task",
983 "../system_wrappers",
984 "task_queue",
985 "task_queue:default_task_queue_factory",
986 "units:time_delta",
987 "units:timestamp",
988 "//third_party/abseil-cpp/absl/strings",
989 ]
990 }
991
992 rtc_library("create_time_controller") {
993 visibility = [ "*" ]
994 testonly = true
995 sources = [
996 "test/create_time_controller.cc",
997 "test/create_time_controller.h",
998 ]
999
1000 deps = [
1001 ":time_controller",
1002 "../test/time_controller",
1003 ]
1004 }
1005
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001006 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001007 testonly = true
1008
1009 sources = [
1010 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001011 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001012 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001013 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001014 "rtp_packet_info_unittest.cc",
1015 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001016 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001017 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001018 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001019 "test/loopback_media_transport_unittest.cc",
1020 ]
1021
Niels Möller2e47f7c2018-10-16 10:41:42 +02001022 deps = [
1023 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001024 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +01001025 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001026 ":libjingle_peerconnection_api",
1027 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001028 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001029 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001030 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001031 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001032 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001033 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001034 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001035 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001036 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001037 "../rtc_base:rtc_task_queue",
1038 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001039 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001040 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001041 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001042 "units:time_delta",
1043 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001044 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001045 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001046 ]
1047 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001048
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001049 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001050 testonly = true
1051
1052 sources = [
1053 "test/compile_all_headers.cc",
1054 ]
1055
1056 deps = [
1057 ":fake_frame_decryptor",
1058 ":fake_frame_encryptor",
1059 ":fake_media_transport",
1060 ":loopback_media_transport",
1061 ":mock_audio_mixer",
1062 ":mock_frame_decryptor",
1063 ":mock_frame_encryptor",
1064 ":mock_peerconnectioninterface",
1065 ":mock_rtp",
1066 ":mock_video_bitrate_allocator",
1067 ":mock_video_bitrate_allocator_factory",
1068 ":mock_video_codec_factory",
1069 ":mock_video_decoder",
1070 ":mock_video_encoder",
1071 ":rtc_api_unittests",
1072 "units:units_unittests",
1073 ]
1074 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001075}