blob: 01d79ea9a834827525728ef0c2e2a35e646431ae [file] [log] [blame]
hjonaa32c3e2015-12-14 03:58:111# 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 14:58:229import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 12:55:0010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 10:09:3214
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:5316 visibility = [ "*" ]
Dan Minor9c686132018-01-15 15:20:0017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 10:09:3222}
23
ehmaldonado38a21322016-09-02 11:10:3424rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:5325 visibility = [ "*" ]
kjellandera69d9732016-08-31 14:33:0526 sources = [
kjellandera69d9732016-08-31 14:33:0527 "call/audio_sink.h",
kjellandera69d9732016-08-31 14:33:0528 ]
kjellandera69d9732016-08-31 14:33:0529}
30
Niels Möller8366e172018-02-14 11:20:1331rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 17:11:0034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 11:20:1335 ]
36}
37
Danil Chapovalov5bf58062019-06-18 14:43:3738if (!build_with_chromium) {
39 rtc_static_library("create_peerconnection_factory") {
40 visibility = [ "*" ]
41 sources = [
42 "create_peerconnection_factory.cc",
43 "create_peerconnection_factory.h",
44 ]
45 deps = [
46 ":callfactory_api",
47 ":libjingle_peerconnection_api",
48 ":scoped_refptr",
49 "../api/rtc_event_log:rtc_event_log_factory",
50 "../media:rtc_audio_video",
51 "../media:rtc_media_base",
52 "../modules/audio_device:audio_device_api",
53 "../modules/audio_processing:api",
54 "../pc:peerconnection",
55 "../rtc_base",
56 "../rtc_base:rtc_base_approved",
57 "audio:audio_mixer_api",
58 "audio_codecs:audio_codecs_api",
59 "task_queue:default_task_queue_factory",
60 "video_codecs:video_codecs_api",
61 "//third_party/abseil-cpp/absl/memory",
62 ]
63 }
Mirko Bonadei3cf8f3e2018-11-19 08:17:5164}
65
Niels Möllerb8389522019-03-19 13:27:0366rtc_source_set("rtp_headers") {
67 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 07:40:2368 sources = [
69 "rtp_headers.cc",
70 "rtp_headers.h",
71 ]
72 deps = [
73 ":array_view",
74 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 11:35:5175 "units:timestamp",
Chen Xing5d24b162019-06-10 10:59:3876 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 07:40:2377 "//third_party/abseil-cpp/absl/types:optional",
78 ]
Niels Möllerb8389522019-03-19 13:27:0379}
80
Chen Xingd2a66862019-06-03 12:53:4281rtc_source_set("rtp_packet_info") {
82 visibility = [ "*" ]
83 sources = [
84 "rtp_packet_info.cc",
85 "rtp_packet_info.h",
86 "rtp_packet_infos.h",
87 ]
88 deps = [
89 ":array_view",
90 ":refcountedbase",
91 ":rtp_headers",
92 ":scoped_refptr",
93 "..:webrtc_common",
94 "../rtc_base:rtc_base_approved",
95 "//third_party/abseil-cpp/absl/types:optional",
96 ]
97}
98
ossu7bb87ee2017-01-23 12:56:2599rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53100 visibility = [ "*" ]
kjellanderc76dc952016-06-03 10:09:32101 cflags = []
102 sources = [
Steve Anton10542f22019-01-11 17:11:00103 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 14:58:01104 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 18:27:17105 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 12:53:33106 "candidate.h",
Anton Sukhanovc136b062019-05-14 21:53:42107 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 17:11:00108 "crypto/crypto_options.cc",
109 "crypto/crypto_options.h",
110 "crypto/frame_decryptor_interface.h",
111 "crypto/frame_encryptor_interface.h",
112 "crypto_params.h",
113 "data_channel_interface.cc",
114 "data_channel_interface.h",
Anton Sukhanovc136b062019-05-14 21:53:42115 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 15:20:42116 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 17:11:00117 "dtls_transport_interface.h",
118 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 13:57:03119 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 20:50:26120 "jsep.cc",
kjellanderc76dc952016-06-03 10:09:32121 "jsep.h",
Steve Anton10542f22019-01-11 17:11:00122 "jsep_ice_candidate.cc",
123 "jsep_ice_candidate.h",
124 "jsep_session_description.h",
Steve Anton10542f22019-01-11 17:11:00125 "media_stream_interface.cc",
126 "media_stream_interface.h",
127 "media_stream_proxy.h",
128 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 18:12:57129 "media_transport_config.cc",
130 "media_transport_config.h",
Niels Möller3a742392018-10-08 09:13:58131 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 17:41:46132 "media_transport_interface.h",
Steve Anton10542f22019-01-11 17:11:00133 "media_types.cc",
134 "media_types.h",
kjellanderc76dc952016-06-03 10:09:32135 "notifier.h",
Steve Anton10542f22019-01-11 17:11:00136 "peer_connection_factory_proxy.h",
137 "peer_connection_interface.cc",
138 "peer_connection_interface.h",
139 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 23:27:34140 "proxy.cc",
kjellanderc76dc952016-06-03 10:09:32141 "proxy.h",
Steve Anton10542f22019-01-11 17:11:00142 "rtc_error.cc",
143 "rtc_error.h",
Steve Anton10542f22019-01-11 17:11:00144 "rtp_parameters.cc",
145 "rtp_parameters.h",
146 "rtp_receiver_interface.cc",
147 "rtp_receiver_interface.h",
148 "rtp_sender_interface.cc",
149 "rtp_sender_interface.h",
150 "rtp_transceiver_interface.cc",
151 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 06:51:00152 "sctp_transport_interface.cc",
153 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 17:11:00154 "set_remote_description_observer_interface.h",
155 "stats_types.cc",
156 "stats_types.h",
157 "turn_customizer.h",
158 "uma_metrics.h",
159 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 10:09:32160 ]
kjellanderc76dc952016-06-03 10:09:32161 deps = [
Patrik Höglund3e113432017-12-15 13:40:10162 ":array_view",
Niels Möllera6fe2612018-01-19 10:28:54163 ":audio_options_api",
Niels Möller8366e172018-02-14 11:20:13164 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 11:50:27165 ":fec_controller_api",
Niels Möller8366e172018-02-14 11:20:13166 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 11:48:24167 ":network_state_predictor_api",
hbos74e1a4f2016-09-16 06:33:01168 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 12:53:42169 ":rtp_packet_info",
Mirko Bonadeid9708072019-01-25 19:26:48170 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 12:43:49171 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58172 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 11:39:25173 "rtc_event_log",
Danil Chapovalov9435c6102019-04-01 08:33:16174 "task_queue",
Niels Möller0c4f7be2018-05-07 12:01:37175 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 16:05:10176 "transport:network_control",
Niels Möllerec3b9ff2019-02-07 23:28:39177 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 13:04:11178 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 14:50:38179 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 16:15:37180 "units:timestamp",
Niels Möller3a742392018-10-08 09:13:58181 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 09:15:30182 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38183 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-29 01:27:58184 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 18:15:23185 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 11:32:56186 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 09:19:58187
188 # Basically, don't add stuff here. You might break sensitive downstream
189 # targets like pnacl. API should not depend on anything outside of this
190 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 12:17:08191 "..:webrtc_common",
Niels Möller6daa2782018-01-23 09:37:42192 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 13:32:41193 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 12:35:10194 "../rtc_base",
Patrik Höglund3e113432017-12-15 13:40:10195 "../rtc_base:checks",
196 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 17:40:47197 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 15:15:12198 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 10:09:32199 ]
ossu7bb87ee2017-01-23 12:56:25200}
kjellanderc76dc952016-06-03 10:09:32201
Mirko Bonadei85340ce2018-11-19 14:51:39202rtc_source_set("scoped_refptr") {
203 visibility = [ "*" ]
204 sources = [
205 "scoped_refptr.h",
206 ]
207}
208
Patrik Höglundb6b29e02018-06-21 14:58:01209rtc_source_set("video_quality_test_fixture_api") {
210 visibility = [ "*" ]
211 testonly = true
212 sources = [
213 "test/video_quality_test_fixture.h",
214 ]
215 deps = [
Patrik Höglundd8f3c172018-09-26 12:39:17216 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 14:58:01217 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 11:48:24218 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 14:58:01219 ":simulated_network_api",
220 "../call:fake_network",
221 "../call:rtp_interfaces",
222 "../test:test_common",
223 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 12:23:51224 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 14:58:01225 "video_codecs:video_codecs_api",
226 ]
Patrik Höglundb6b29e02018-06-21 14:58:01227}
228
Artem Titovd57628f2019-03-22 11:34:25229rtc_source_set("video_quality_analyzer_api") {
230 visibility = [ "*" ]
231 testonly = true
232 sources = [
233 "test/video_quality_analyzer_interface.h",
234 ]
235
236 deps = [
237 ":stats_observer_interface",
238 "video:encoded_image",
239 "video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38240 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 11:34:25241 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 11:34:25242 "//third_party/abseil-cpp/absl/types:optional",
243 ]
244}
245
Mirko Bonadeif948eb62019-04-05 13:13:23246rtc_source_set("track_id_stream_label_map") {
247 visibility = [ "*" ]
248 sources = [
249 "test/track_id_stream_label_map.h",
250 ]
251}
252
Artem Titovd57628f2019-03-22 11:34:25253rtc_source_set("audio_quality_analyzer_api") {
254 visibility = [ "*" ]
255 testonly = true
256 sources = [
257 "test/audio_quality_analyzer_interface.h",
258 ]
259
260 deps = [
261 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 13:13:23262 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 11:34:25263 ]
264}
265
266rtc_source_set("stats_observer_interface") {
267 visibility = [ "*" ]
268 testonly = true
269 sources = [
270 "test/stats_observer_interface.h",
271 ]
272
273 deps = [
274 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 11:34:25275 ]
276}
277
278rtc_source_set("peer_connection_quality_test_fixture_api") {
279 visibility = [ "*" ]
280 testonly = true
281 sources = [
282 "test/peerconnection_quality_test_fixture.h",
283 ]
284
285 deps = [
286 ":audio_quality_analyzer_api",
287 ":callfactory_api",
288 ":fec_controller_api",
289 ":function_view",
290 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 11:48:24291 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 11:34:25292 ":simulated_network_api",
293 ":video_quality_analyzer_api",
294 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 09:56:44295 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 11:34:25296 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 10:58:03297 "task_queue",
Artem Titovd57628f2019-03-22 11:34:25298 "transport:network_control",
299 "units:time_delta",
300 "video_codecs:video_codecs_api",
301 "//third_party/abseil-cpp/absl/memory",
302 "//third_party/abseil-cpp/absl/types:optional",
303 ]
304}
305
Patrik Höglundd8f3c172018-09-26 12:39:17306rtc_source_set("test_dependency_factory") {
307 visibility = [ "*" ]
308 testonly = true
309 sources = [
310 "test/test_dependency_factory.cc",
311 "test/test_dependency_factory.h",
312 ]
313 deps = [
314 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 15:47:49315 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 12:39:17316 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 04:52:10317 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 12:39:17318 ]
Patrik Höglundd8f3c172018-09-26 12:39:17319}
320
Patrik Höglundb6b29e02018-06-21 14:58:01321if (rtc_include_tests) {
322 rtc_source_set("create_video_quality_test_fixture_api") {
323 visibility = [ "*" ]
324 testonly = true
325 sources = [
326 "test/create_video_quality_test_fixture.cc",
327 "test/create_video_quality_test_fixture.h",
328 ]
329 deps = [
330 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 11:48:24331 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 19:26:48332 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 14:58:01333 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 14:58:01334 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 09:40:33335 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 14:58:01336 ]
Patrik Höglundb6b29e02018-06-21 14:58:01337 }
Artem Titov7bf8c7f2019-03-15 14:00:37338
Artem Titov8ea8dcb2019-03-26 12:38:02339 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 14:00:37340 visibility = [ "*" ]
341 testonly = true
342 sources = [
343 "test/create_network_emulation_manager.cc",
344 "test/create_network_emulation_manager.h",
345 ]
346 deps = [
347 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 08:48:17348 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 11:18:05349 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 14:00:37350 ]
351 }
Artem Titovd57628f2019-03-22 11:34:25352
353 rtc_source_set("create_peerconnection_quality_test_fixture") {
354 visibility = [ "*" ]
355 testonly = true
356 sources = [
357 "test/create_peerconnection_quality_test_fixture.cc",
358 "test/create_peerconnection_quality_test_fixture.h",
359 ]
360
361 deps = [
362 ":audio_quality_analyzer_api",
363 ":peer_connection_quality_test_fixture_api",
364 ":video_quality_analyzer_api",
365 "../test/pc/e2e:peerconnection_quality_test",
366 "//third_party/abseil-cpp/absl/memory",
367 ]
368 }
Patrik Höglundb6b29e02018-06-21 14:58:01369}
370
Elad Alon80810732017-10-06 11:07:32371rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53372 visibility = [ "*" ]
Elad Alon80810732017-10-06 11:07:32373 sources = [
Steve Anton10542f22019-01-11 17:11:00374 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 11:07:32375 ]
376}
377
Niels Möllerd8b9ed72019-05-08 11:53:51378rtc_source_set("rtc_event_log_output_file") {
379 visibility = [ "*" ]
380 sources = [
381 "rtc_event_log_output_file.cc",
382 "rtc_event_log_output_file.h",
383 ]
384
385 deps = [
386 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 11:53:51387 "../rtc_base:checks",
388 "../rtc_base:rtc_base_approved",
389 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 11:39:25390 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 11:53:51391 ]
392}
393
hbos74e1a4f2016-09-16 06:33:01394rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53395 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01396 cflags = []
397 sources = [
Steve Anton10542f22019-01-11 17:11:00398 "stats/rtc_stats.h",
399 "stats/rtc_stats_collector_callback.h",
400 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-16 06:33:01401 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-16 06:33:01402 ]
403
404 deps = [
Mirko Bonadeid9708072019-01-25 19:26:48405 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 15:05:42406 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47407 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 15:15:12408 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-16 06:33:01409 ]
410}
411
Niels Möllera6fe2612018-01-19 10:28:54412rtc_source_set("audio_options_api") {
413 visibility = [ "*" ]
414 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52415 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54416 "audio_options.h",
417 ]
418
419 deps = [
Yves Gerey3e707812018-11-28 15:47:49420 ":array_view",
Danil Chapovalov21652332018-08-31 08:29:07421 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 11:32:56422 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 10:28:54423 ]
424}
425
aleloia8eb7562016-11-28 15:02:13426rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53427 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13428 sources = [
Dino Radaković1807d572018-02-22 13:18:06429 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13430 "call/transport.h",
431 ]
432}
nisseb2250e52016-12-02 12:01:14433
Sebastian Jansson6736df12018-11-21 18:18:39434rtc_source_set("bitrate_allocation") {
435 visibility = [ "*" ]
436 sources = [
437 "call/bitrate_allocation.h",
438 ]
439 deps = [
440 "units:data_rate",
441 "units:time_delta",
442 ]
443}
444
Patrik Höglundb6b29e02018-06-21 14:58:01445rtc_source_set("simulated_network_api") {
446 visibility = [ "*" ]
447 sources = [
448 "test/simulated_network.h",
449 ]
450 deps = [
Artem Titov94b57c02019-03-21 12:35:10451 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 14:58:01452 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 08:58:54453 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 14:58:01454 ]
455}
456
Artem Titov7bf8c7f2019-03-15 14:00:37457rtc_source_set("network_emulation_manager_api") {
458 visibility = [ "*" ]
459 sources = [
460 "test/network_emulation_manager.h",
461 ]
462 deps = [
463 ":simulated_network_api",
Artem Titov94b57c02019-03-21 12:35:10464 "../rtc_base",
Artem Titov806299e2019-04-12 10:17:19465 "units:data_rate",
466 "units:data_size",
467 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 14:00:37468 ]
469}
470
Ying Wang3b790f32018-01-19 16:58:57471rtc_source_set("fec_controller_api") {
472 visibility = [ "*" ]
473 sources = [
474 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 13:19:43475 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 16:58:57476 ]
477
478 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27479 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 14:43:58480 "video:video_frame_type",
Ying Wang3b790f32018-01-19 16:58:57481 ]
482}
483
Ying Wang0810a7c2019-04-10 11:48:24484rtc_source_set("network_state_predictor_api") {
485 visibility = [ "*" ]
486 sources = [
487 "network_state_predictor.h",
488 ]
489}
490
kwiberg529662a2017-09-04 12:43:17491rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53492 visibility = [ "*" ]
kwiberg529662a2017-09-04 12:43:17493 sources = [
494 "array_view.h",
495 ]
496 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42497 "../rtc_base:checks",
498 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17499 ]
500}
501
Niels Möller9155e492017-10-23 09:22:30502rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53503 visibility = [ "*" ]
Niels Möller9155e492017-10-23 09:22:30504 sources = [
Steve Anton10542f22019-01-11 17:11:00505 "ref_counted_base.h",
Niels Möller9155e492017-10-23 09:22:30506 ]
507 deps = [
508 "../rtc_base:rtc_base_approved",
509 ]
510}
511
Harald Alvestrand98462622019-01-30 13:57:03512rtc_source_set("ice_transport_factory") {
513 visibility = [ "*" ]
514 sources = [
515 "ice_transport_factory.cc",
516 "ice_transport_factory.h",
517 ]
518 deps = [
519 ":libjingle_peerconnection_api",
520 ":scoped_refptr",
521 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 12:35:10522 "../rtc_base",
Mirko Bonadei66e76792019-04-02 09:33:59523 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 21:07:33524 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 11:18:05525 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 13:57:03526 ]
527}
528
Ivo Creusen55de08e2018-09-03 09:49:27529rtc_source_set("neteq_simulator_api") {
530 visibility = [ "*" ]
531 sources = [
532 "test/neteq_simulator.cc",
533 "test/neteq_simulator.h",
534 ]
535}
536
Artem Titov741daaf2019-03-21 13:37:36537rtc_source_set("function_view") {
538 visibility = [ "*" ]
539 sources = [
540 "function_view.h",
541 ]
542 deps = [
543 "../rtc_base:checks",
544 ]
545}
546
kjellanderfd5b4e92016-06-13 19:08:33547if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 11:22:52548 if (rtc_enable_protobuf) {
549 rtc_source_set("audioproc_f_api") {
550 visibility = [ "*" ]
551 testonly = true
552 sources = [
553 "test/audioproc_float.cc",
554 "test/audioproc_float.h",
555 ]
556
557 deps = [
Artem Titov94b57c02019-03-21 12:35:10558 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54559 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 11:22:52560 "../modules/audio_processing:audioproc_f_impl",
561 ]
562 }
Ivo Creusen55de08e2018-09-03 09:49:27563
564 rtc_source_set("neteq_simulator_factory") {
565 visibility = [ "*" ]
566 testonly = true
567 sources = [
568 "test/neteq_simulator_factory.cc",
569 "test/neteq_simulator_factory.h",
570 ]
571 deps = [
572 ":neteq_simulator_api",
573 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 08:30:58574 "../rtc_base:checks",
575 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 09:49:27576 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 09:52:18577 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 09:49:27578 ]
579 }
Ivo Creusen2cb41052018-03-15 11:22:52580 }
581
Rasmus Brandt0cedc052018-05-31 10:53:00582 rtc_source_set("simulcast_test_fixture_api") {
583 visibility = [ "*" ]
584 testonly = true
585 sources = [
586 "test/simulcast_test_fixture.h",
587 ]
588 }
589
590 rtc_source_set("create_simulcast_test_fixture_api") {
591 visibility = [ "*" ]
592 testonly = true
593 sources = [
594 "test/create_simulcast_test_fixture.cc",
595 "test/create_simulcast_test_fixture.h",
596 ]
597 deps = [
598 ":simulcast_test_fixture_api",
599 "../modules/video_coding:simulcast_test_fixture_impl",
600 "../rtc_base:rtc_base_approved",
601 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33602 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 10:53:00603 ]
Rasmus Brandt0cedc052018-05-31 10:53:00604 }
605
Kári Tristan Helgason9d96e922018-05-04 09:56:55606 rtc_source_set("videocodec_test_fixture_api") {
607 visibility = [ "*" ]
608 testonly = true
609 sources = [
610 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 11:34:14611 "test/videocodec_test_stats.cc",
612 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:55613 ]
614 deps = [
Kári Tristan Helgason169005d2018-05-22 11:34:14615 "..:webrtc_common",
616 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 11:41:30617 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 14:43:58618 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 09:56:55619 "video_codecs:video_codecs_api",
620 ]
621 }
622
623 rtc_source_set("create_videocodec_test_fixture_api") {
624 visibility = [ "*" ]
625 testonly = true
626 sources = [
627 "test/create_videocodec_test_fixture.cc",
628 "test/create_videocodec_test_fixture.h",
629 ]
630 deps = [
631 ":videocodec_test_fixture_api",
632 "../modules/video_coding:video_codecs_test_framework",
633 "../modules/video_coding:videocodec_test_impl",
634 "../rtc_base:rtc_base_approved",
635 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33636 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 09:56:55637 ]
Kári Tristan Helgason9d96e922018-05-04 09:56:55638 }
639
kjellander2f6af9c2017-03-03 06:26:23640 rtc_source_set("mock_audio_mixer") {
641 testonly = true
642 sources = [
643 "test/mock_audio_mixer.h",
644 ]
645
kjellander2f6af9c2017-03-03 06:26:23646 deps = [
jianjun.zhuc0247402017-07-11 13:20:45647 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:49648 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:23649 ]
650 }
651
Elad Alon45befc52019-07-02 09:20:09652 rtc_source_set("mock_fec_controller_override") {
653 testonly = true
654 sources = [
655 "test/mock_fec_controller_override.h",
656 ]
657 deps = [
658 ":fec_controller_api",
659 "../test:test_support",
660 ]
661 }
662
Benjamin Wright78410ad2018-10-25 16:52:57663 rtc_source_set("mock_frame_encryptor") {
664 testonly = true
665 sources = [
666 "test/mock_frame_encryptor.cc",
667 "test/mock_frame_encryptor.h",
668 ]
669 deps = [
670 ":libjingle_peerconnection_api",
671 "../test:test_support",
672 ]
673 }
674
675 rtc_source_set("mock_frame_decryptor") {
676 testonly = true
677 sources = [
678 "test/mock_frame_decryptor.cc",
679 "test/mock_frame_decryptor.h",
680 ]
681 deps = [
682 ":libjingle_peerconnection_api",
683 "../test:test_support",
684 ]
685 }
686
687 rtc_source_set("fake_frame_encryptor") {
688 testonly = true
689 sources = [
690 "test/fake_frame_encryptor.cc",
691 "test/fake_frame_encryptor.h",
692 ]
693 deps = [
694 ":array_view",
695 ":libjingle_peerconnection_api",
696 "..:webrtc_common",
697 "../rtc_base:checks",
698 "../rtc_base:rtc_base_approved",
699 ]
700 }
701
702 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 21:22:34703 testonly = true
704 sources = [
705 "test/fake_frame_decryptor.cc",
706 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 21:22:34707 ]
708 deps = [
709 ":array_view",
710 ":libjingle_peerconnection_api",
711 "..:webrtc_common",
712 "../rtc_base:checks",
713 "../rtc_base:rtc_base_approved",
714 ]
715 }
716
Jiawei Ou651b92e2018-06-29 22:46:44717 rtc_source_set("mock_peerconnectioninterface") {
718 testonly = true
719 sources = [
720 "test/mock_peerconnectioninterface.h",
721 ]
722
723 deps = [
724 ":libjingle_peerconnection_api",
725 "../test:test_support",
726 ]
727 }
728
Patrik Höglund4b9e6ba2017-12-19 09:32:11729 rtc_source_set("mock_rtp") {
730 testonly = true
731 sources = [
732 "test/mock_rtpreceiver.h",
733 "test/mock_rtpsender.h",
734 ]
735
736 deps = [
737 ":libjingle_peerconnection_api",
738 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:11739 ]
740 }
741
Jiawei Ou4206a0a2018-07-20 22:49:43742 rtc_source_set("mock_video_bitrate_allocator") {
743 testonly = true
744 sources = [
745 "test/mock_video_bitrate_allocator.h",
746 ]
747
748 deps = [
749 "../api/video:video_bitrate_allocator",
750 "../test:test_support",
751 ]
752 }
753
Jiawei Ouc2ebe212018-11-08 18:02:56754 rtc_source_set("mock_video_bitrate_allocator_factory") {
755 testonly = true
756 sources = [
757 "test/mock_video_bitrate_allocator_factory.h",
758 ]
759
760 deps = [
761 "../api/video:video_bitrate_allocator_factory",
762 "../test:test_support",
763 ]
764 }
765
Emircan Uysalerdbcac7f2017-10-31 06:10:12766 rtc_source_set("mock_video_codec_factory") {
767 testonly = true
768 sources = [
769 "test/mock_video_decoder_factory.h",
770 "test/mock_video_encoder_factory.h",
771 ]
772
Emircan Uysalerdbcac7f2017-10-31 06:10:12773 deps = [
Mirko Bonadei34814c72018-01-11 09:13:56774 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:12775 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-31 06:10:12776 ]
777 }
778
Erik Språngc84cd952018-10-15 09:55:13779 rtc_source_set("mock_video_decoder") {
780 visibility = [ "*" ]
781
782 testonly = true
783 sources = [
784 "test/mock_video_decoder.cc",
785 "test/mock_video_decoder.h",
786 ]
787
788 deps = [
789 "../api/video_codecs:video_codecs_api",
790 "../test:test_support",
791 ]
792 }
793
Erik Språng6af1c922018-10-12 08:01:30794 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 09:55:13795 visibility = [ "*" ]
796
Erik Språng6af1c922018-10-12 08:01:30797 testonly = true
798 sources = [
799 "test/mock_video_encoder.cc",
800 "test/mock_video_encoder.h",
801 ]
802
803 deps = [
804 "../api/video_codecs:video_codecs_api",
805 "../test:test_support",
806 ]
807 }
808
Anton Sukhanov7940da02018-10-10 17:34:49809 rtc_source_set("fake_media_transport") {
810 testonly = true
811
812 sources = [
Bjorn A Mellemc85ebbe2019-06-07 17:28:06813 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 17:34:49814 "test/fake_media_transport.h",
815 ]
816
817 deps = [
818 ":libjingle_peerconnection_api",
819 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 20:53:07820 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 15:47:49821 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 17:34:49822 ]
823 }
Niels Möller2e47f7c2018-10-16 08:41:42824
825 rtc_source_set("loopback_media_transport") {
826 testonly = true
827
828 sources = [
Niels Möllere0446cb2018-11-30 08:35:52829 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 08:41:42830 "test/loopback_media_transport.h",
831 ]
832
833 deps = [
834 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 12:35:10835 "../rtc_base",
Niels Möller2e47f7c2018-10-16 08:41:42836 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 20:53:07837 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 08:35:52838 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 08:41:42839 ]
840 }
841
842 rtc_source_set("rtc_api_unittests") {
843 testonly = true
844
845 sources = [
846 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 13:37:36847 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 17:11:00848 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 11:53:51849 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 12:53:42850 "rtp_packet_info_unittest.cc",
851 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 17:11:00852 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 08:41:42853 "test/loopback_media_transport_unittest.cc",
854 ]
855
Niels Möller2e47f7c2018-10-16 08:41:42856 deps = [
857 ":array_view",
Artem Titov741daaf2019-03-21 13:37:36858 ":function_view",
Niels Möller2e47f7c2018-10-16 08:41:42859 ":libjingle_peerconnection_api",
860 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 11:53:51861 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 12:53:42862 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 08:41:42863 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 12:15:08864 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 08:41:42865 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 11:53:51866 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 08:41:42867 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 09:18:08868 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 08:41:42869 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 14:59:28870 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 11:53:51871 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 08:41:42872 ]
873 }
Harald Alvestrand3cc45d42019-03-14 04:42:04874
875 rtc_source_set("compile_all_headers") {
876 testonly = true
877
878 sources = [
879 "test/compile_all_headers.cc",
880 ]
881
882 deps = [
883 ":fake_frame_decryptor",
884 ":fake_frame_encryptor",
885 ":fake_media_transport",
886 ":loopback_media_transport",
887 ":mock_audio_mixer",
888 ":mock_frame_decryptor",
889 ":mock_frame_encryptor",
890 ":mock_peerconnectioninterface",
891 ":mock_rtp",
892 ":mock_video_bitrate_allocator",
893 ":mock_video_bitrate_allocator_factory",
894 ":mock_video_codec_factory",
895 ":mock_video_decoder",
896 ":mock_video_encoder",
897 ":rtc_api_unittests",
898 "units:units_unittests",
899 ]
900 }
kjellanderfd5b4e92016-06-13 19:08:33901}