blob: ca2b5cb8ae327d2afd99fce3762cc0a4d123855a [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 ]
36}
37
Danil Chapovalov5bf58062019-06-18 16:43:37 +020038if (!build_with_chromium) {
39 rtc_static_library("create_peerconnection_factory") {
40 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",
55 "../pc:peerconnection",
56 "../rtc_base",
57 "../rtc_base:rtc_base_approved",
58 "audio:audio_mixer_api",
59 "audio_codecs:audio_codecs_api",
60 "task_queue:default_task_queue_factory",
61 "video_codecs:video_codecs_api",
62 "//third_party/abseil-cpp/absl/memory",
63 ]
64 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
Niels Möllerb8389522019-03-19 14:27:03 +010067rtc_source_set("rtp_headers") {
68 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010069 sources = [
70 "rtp_headers.cc",
71 "rtp_headers.h",
72 ]
73 deps = [
74 ":array_view",
75 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020076 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020077 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010078 "//third_party/abseil-cpp/absl/types:optional",
79 ]
Niels Möllerb8389522019-03-19 14:27:03 +010080}
81
Chen Xingd2a66862019-06-03 14:53:42 +020082rtc_source_set("rtp_packet_info") {
83 visibility = [ "*" ]
84 sources = [
85 "rtp_packet_info.cc",
86 "rtp_packet_info.h",
87 "rtp_packet_infos.h",
88 ]
89 deps = [
90 ":array_view",
91 ":refcountedbase",
92 ":rtp_headers",
93 ":scoped_refptr",
94 "..:webrtc_common",
95 "../rtc_base:rtc_base_approved",
96 "//third_party/abseil-cpp/absl/types:optional",
97 ]
98}
99
ossu7bb87ee2017-01-23 04:56:25 -0800100rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000101 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700102 cflags = []
103 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800104 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200105 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -0700106 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200107 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700108 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800109 "crypto/crypto_options.cc",
110 "crypto/crypto_options.h",
111 "crypto/frame_decryptor_interface.h",
112 "crypto/frame_encryptor_interface.h",
113 "crypto_params.h",
114 "data_channel_interface.cc",
115 "data_channel_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700116 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200117 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800118 "dtls_transport_interface.h",
119 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100120 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800121 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700122 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800123 "jsep_ice_candidate.cc",
124 "jsep_ice_candidate.h",
125 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800126 "media_stream_interface.cc",
127 "media_stream_interface.h",
128 "media_stream_proxy.h",
129 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700130 "media_transport_config.cc",
131 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200132 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400133 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "media_types.cc",
135 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700136 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800137 "peer_connection_factory_proxy.h",
138 "peer_connection_interface.cc",
139 "peer_connection_interface.h",
140 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700141 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700142 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "rtc_error.cc",
144 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "rtp_parameters.cc",
146 "rtp_parameters.h",
147 "rtp_receiver_interface.cc",
148 "rtp_receiver_interface.h",
149 "rtp_sender_interface.cc",
150 "rtp_sender_interface.h",
151 "rtp_transceiver_interface.cc",
152 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100153 "sctp_transport_interface.cc",
154 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800155 "set_remote_description_observer_interface.h",
156 "stats_types.cc",
157 "stats_types.h",
158 "turn_customizer.h",
159 "uma_metrics.h",
160 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700161 ]
kjellanderc76dc952016-06-03 03:09:32 -0700162 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100163 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100164 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100165 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100166 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100167 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200168 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700169 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200170 ":rtp_packet_info",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100171 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100172 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100173 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200174 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200175 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200176 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200177 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100178 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100179 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800180 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700181 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200182 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200183 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200184 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800185 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800186 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200187 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100188
189 # Basically, don't add stuff here. You might break sensitive downstream
190 # targets like pnacl. API should not depend on anything outside of this
191 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700192 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100193 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100194 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100195 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100196 "../rtc_base:checks",
197 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700198 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200199 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700200 ]
ossu7bb87ee2017-01-23 04:56:25 -0800201}
kjellanderc76dc952016-06-03 03:09:32 -0700202
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100203rtc_source_set("scoped_refptr") {
204 visibility = [ "*" ]
205 sources = [
206 "scoped_refptr.h",
207 ]
208}
209
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200210rtc_source_set("video_quality_test_fixture_api") {
211 visibility = [ "*" ]
212 testonly = true
213 sources = [
214 "test/video_quality_test_fixture.h",
215 ]
216 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200217 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200218 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200219 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200220 ":simulated_network_api",
221 "../call:fake_network",
222 "../call:rtp_interfaces",
223 "../test:test_common",
224 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200225 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200226 "video_codecs:video_codecs_api",
227 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200228}
229
Artem Titovd57628f2019-03-22 12:34:25 +0100230rtc_source_set("video_quality_analyzer_api") {
231 visibility = [ "*" ]
232 testonly = true
233 sources = [
234 "test/video_quality_analyzer_interface.h",
235 ]
236
237 deps = [
238 ":stats_observer_interface",
239 "video:encoded_image",
240 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200241 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100242 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100243 "//third_party/abseil-cpp/absl/types:optional",
244 ]
245}
246
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200247rtc_source_set("track_id_stream_label_map") {
248 visibility = [ "*" ]
249 sources = [
250 "test/track_id_stream_label_map.h",
251 ]
252}
253
Artem Titovd57628f2019-03-22 12:34:25 +0100254rtc_source_set("audio_quality_analyzer_api") {
255 visibility = [ "*" ]
256 testonly = true
257 sources = [
258 "test/audio_quality_analyzer_interface.h",
259 ]
260
261 deps = [
262 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200263 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100264 ]
265}
266
267rtc_source_set("stats_observer_interface") {
268 visibility = [ "*" ]
269 testonly = true
270 sources = [
271 "test/stats_observer_interface.h",
272 ]
273
274 deps = [
275 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100276 ]
277}
278
279rtc_source_set("peer_connection_quality_test_fixture_api") {
280 visibility = [ "*" ]
281 testonly = true
282 sources = [
283 "test/peerconnection_quality_test_fixture.h",
284 ]
285
286 deps = [
287 ":audio_quality_analyzer_api",
288 ":callfactory_api",
289 ":fec_controller_api",
290 ":function_view",
291 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200292 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100293 ":simulated_network_api",
294 ":video_quality_analyzer_api",
295 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200296 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100297 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200298 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100299 "transport:network_control",
300 "units:time_delta",
301 "video_codecs:video_codecs_api",
302 "//third_party/abseil-cpp/absl/memory",
303 "//third_party/abseil-cpp/absl/types:optional",
304 ]
305}
306
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200307rtc_source_set("test_dependency_factory") {
308 visibility = [ "*" ]
309 testonly = true
310 sources = [
311 "test/test_dependency_factory.cc",
312 "test/test_dependency_factory.h",
313 ]
314 deps = [
315 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100316 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200317 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900318 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200319 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200320}
321
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200322if (rtc_include_tests) {
323 rtc_source_set("create_video_quality_test_fixture_api") {
324 visibility = [ "*" ]
325 testonly = true
326 sources = [
327 "test/create_video_quality_test_fixture.cc",
328 "test/create_video_quality_test_fixture.h",
329 ]
330 deps = [
331 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200332 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100333 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200334 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200335 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200336 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200337 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200338 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100339
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100340 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100341 visibility = [ "*" ]
342 testonly = true
343 sources = [
344 "test/create_network_emulation_manager.cc",
345 "test/create_network_emulation_manager.h",
346 ]
347 deps = [
348 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200349 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100350 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100351 ]
352 }
Artem Titovd57628f2019-03-22 12:34:25 +0100353
354 rtc_source_set("create_peerconnection_quality_test_fixture") {
355 visibility = [ "*" ]
356 testonly = true
357 sources = [
358 "test/create_peerconnection_quality_test_fixture.cc",
359 "test/create_peerconnection_quality_test_fixture.h",
360 ]
361
362 deps = [
363 ":audio_quality_analyzer_api",
364 ":peer_connection_quality_test_fixture_api",
365 ":video_quality_analyzer_api",
366 "../test/pc/e2e:peerconnection_quality_test",
367 "//third_party/abseil-cpp/absl/memory",
368 ]
369 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200370}
371
Elad Alon80810732017-10-06 13:07:32 +0200372rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000373 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200374 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800375 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200376 ]
377}
378
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200379rtc_source_set("rtc_event_log_output_file") {
380 visibility = [ "*" ]
381 sources = [
382 "rtc_event_log_output_file.cc",
383 "rtc_event_log_output_file.h",
384 ]
385
386 deps = [
387 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200388 "../rtc_base:checks",
389 "../rtc_base:rtc_base_approved",
390 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200391 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200392 ]
393}
394
hbos74e1a4f2016-09-15 23:33:01 -0700395rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000396 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700397 cflags = []
398 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800399 "stats/rtc_stats.h",
400 "stats/rtc_stats_collector_callback.h",
401 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700402 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700403 ]
404
405 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100406 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100407 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700408 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200409 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700410 ]
411}
412
Niels Möllera6fe2612018-01-19 11:28:54 +0100413rtc_source_set("audio_options_api") {
414 visibility = [ "*" ]
415 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200416 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100417 "audio_options.h",
418 ]
419
420 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100421 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200422 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200423 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100424 ]
425}
426
aleloia8eb7562016-11-28 07:02:13 -0800427rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000428 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800429 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100430 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800431 "call/transport.h",
432 ]
433}
nisseb2250e52016-12-02 04:01:14 -0800434
Sebastian Jansson6736df12018-11-21 19:18:39 +0100435rtc_source_set("bitrate_allocation") {
436 visibility = [ "*" ]
437 sources = [
438 "call/bitrate_allocation.h",
439 ]
440 deps = [
441 "units:data_rate",
442 "units:time_delta",
443 ]
444}
445
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200446rtc_source_set("simulated_network_api") {
447 visibility = [ "*" ]
448 sources = [
449 "test/simulated_network.h",
450 ]
451 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100452 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200453 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200454 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200455 ]
456}
457
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100458rtc_source_set("network_emulation_manager_api") {
459 visibility = [ "*" ]
460 sources = [
461 "test/network_emulation_manager.h",
462 ]
463 deps = [
464 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100465 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200466 "units:data_rate",
467 "units:data_size",
468 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100469 ]
470}
471
Ying Wang3b790f32018-01-19 17:58:57 +0100472rtc_source_set("fec_controller_api") {
473 visibility = [ "*" ]
474 sources = [
475 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200476 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100477 ]
478
479 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100480 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100481 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100482 ]
483}
484
Ying Wang0810a7c2019-04-10 13:48:24 +0200485rtc_source_set("network_state_predictor_api") {
486 visibility = [ "*" ]
487 sources = [
488 "network_state_predictor.h",
489 ]
490}
491
kwiberg529662a2017-09-04 05:43:17 -0700492rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000493 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700494 sources = [
495 "array_view.h",
496 ]
497 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100498 "../rtc_base:checks",
499 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700500 ]
501}
502
Niels Möller9155e492017-10-23 11:22:30 +0200503rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000504 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200505 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800506 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200507 ]
508 deps = [
509 "../rtc_base:rtc_base_approved",
510 ]
511}
512
Harald Alvestrand98462622019-01-30 14:57:03 +0100513rtc_source_set("ice_transport_factory") {
514 visibility = [ "*" ]
515 sources = [
516 "ice_transport_factory.cc",
517 "ice_transport_factory.h",
518 ]
519 deps = [
520 ":libjingle_peerconnection_api",
521 ":scoped_refptr",
522 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100523 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200524 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700525 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100526 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100527 ]
528}
529
Ivo Creusen55de08e2018-09-03 11:49:27 +0200530rtc_source_set("neteq_simulator_api") {
531 visibility = [ "*" ]
532 sources = [
533 "test/neteq_simulator.cc",
534 "test/neteq_simulator.h",
535 ]
536}
537
Artem Titov741daaf2019-03-21 14:37:36 +0100538rtc_source_set("function_view") {
539 visibility = [ "*" ]
540 sources = [
541 "function_view.h",
542 ]
543 deps = [
544 "../rtc_base:checks",
545 ]
546}
547
kjellanderfd5b4e92016-06-13 12:08:33 -0700548if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100549 if (rtc_enable_protobuf) {
550 rtc_source_set("audioproc_f_api") {
551 visibility = [ "*" ]
552 testonly = true
553 sources = [
554 "test/audioproc_float.cc",
555 "test/audioproc_float.h",
556 ]
557
558 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100559 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000560 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100561 "../modules/audio_processing:audioproc_f_impl",
562 ]
563 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200564
565 rtc_source_set("neteq_simulator_factory") {
566 visibility = [ "*" ]
567 testonly = true
568 sources = [
569 "test/neteq_simulator_factory.cc",
570 "test/neteq_simulator_factory.h",
571 ]
572 deps = [
573 ":neteq_simulator_api",
574 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200575 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200576 "//third_party/abseil-cpp/absl/flags:flag",
577 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200578 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100579 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200580 ]
581 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100582 }
583
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200584 rtc_source_set("simulcast_test_fixture_api") {
585 visibility = [ "*" ]
586 testonly = true
587 sources = [
588 "test/simulcast_test_fixture.h",
589 ]
590 }
591
592 rtc_source_set("create_simulcast_test_fixture_api") {
593 visibility = [ "*" ]
594 testonly = true
595 sources = [
596 "test/create_simulcast_test_fixture.cc",
597 "test/create_simulcast_test_fixture.h",
598 ]
599 deps = [
600 ":simulcast_test_fixture_api",
601 "../modules/video_coding:simulcast_test_fixture_impl",
602 "../rtc_base:rtc_base_approved",
603 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200604 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200605 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200606 }
607
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200608 rtc_source_set("videocodec_test_fixture_api") {
609 visibility = [ "*" ]
610 testonly = true
611 sources = [
612 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200613 "test/videocodec_test_stats.cc",
614 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200615 ]
616 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200617 "..:webrtc_common",
618 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200619 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100620 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200621 "video_codecs:video_codecs_api",
622 ]
623 }
624
625 rtc_source_set("create_videocodec_test_fixture_api") {
626 visibility = [ "*" ]
627 testonly = true
628 sources = [
629 "test/create_videocodec_test_fixture.cc",
630 "test/create_videocodec_test_fixture.h",
631 ]
632 deps = [
633 ":videocodec_test_fixture_api",
634 "../modules/video_coding:video_codecs_test_framework",
635 "../modules/video_coding:videocodec_test_impl",
636 "../rtc_base:rtc_base_approved",
637 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200638 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200639 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200640 }
641
kjellander2f6af9c2017-03-02 22:26:23 -0800642 rtc_source_set("mock_audio_mixer") {
643 testonly = true
644 sources = [
645 "test/mock_audio_mixer.h",
646 ]
647
kjellander2f6af9c2017-03-02 22:26:23 -0800648 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700649 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100650 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800651 ]
652 }
653
Elad Alon45befc52019-07-02 11:20:09 +0200654 rtc_source_set("mock_fec_controller_override") {
655 testonly = true
656 sources = [
657 "test/mock_fec_controller_override.h",
658 ]
659 deps = [
660 ":fec_controller_api",
661 "../test:test_support",
662 ]
663 }
664
Benjamin Wright78410ad2018-10-25 09:52:57 -0700665 rtc_source_set("mock_frame_encryptor") {
666 testonly = true
667 sources = [
668 "test/mock_frame_encryptor.cc",
669 "test/mock_frame_encryptor.h",
670 ]
671 deps = [
672 ":libjingle_peerconnection_api",
673 "../test:test_support",
674 ]
675 }
676
677 rtc_source_set("mock_frame_decryptor") {
678 testonly = true
679 sources = [
680 "test/mock_frame_decryptor.cc",
681 "test/mock_frame_decryptor.h",
682 ]
683 deps = [
684 ":libjingle_peerconnection_api",
685 "../test:test_support",
686 ]
687 }
688
689 rtc_source_set("fake_frame_encryptor") {
690 testonly = true
691 sources = [
692 "test/fake_frame_encryptor.cc",
693 "test/fake_frame_encryptor.h",
694 ]
695 deps = [
696 ":array_view",
697 ":libjingle_peerconnection_api",
698 "..:webrtc_common",
699 "../rtc_base:checks",
700 "../rtc_base:rtc_base_approved",
701 ]
702 }
703
704 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700705 testonly = true
706 sources = [
707 "test/fake_frame_decryptor.cc",
708 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700709 ]
710 deps = [
711 ":array_view",
712 ":libjingle_peerconnection_api",
713 "..:webrtc_common",
714 "../rtc_base:checks",
715 "../rtc_base:rtc_base_approved",
716 ]
717 }
718
Jiawei Ou651b92e2018-06-29 15:46:44 -0700719 rtc_source_set("mock_peerconnectioninterface") {
720 testonly = true
721 sources = [
722 "test/mock_peerconnectioninterface.h",
723 ]
724
725 deps = [
726 ":libjingle_peerconnection_api",
727 "../test:test_support",
728 ]
729 }
730
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100731 rtc_source_set("mock_rtp") {
732 testonly = true
733 sources = [
734 "test/mock_rtpreceiver.h",
735 "test/mock_rtpsender.h",
736 ]
737
738 deps = [
739 ":libjingle_peerconnection_api",
740 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100741 ]
742 }
743
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700744 rtc_source_set("mock_video_bitrate_allocator") {
745 testonly = true
746 sources = [
747 "test/mock_video_bitrate_allocator.h",
748 ]
749
750 deps = [
751 "../api/video:video_bitrate_allocator",
752 "../test:test_support",
753 ]
754 }
755
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800756 rtc_source_set("mock_video_bitrate_allocator_factory") {
757 testonly = true
758 sources = [
759 "test/mock_video_bitrate_allocator_factory.h",
760 ]
761
762 deps = [
763 "../api/video:video_bitrate_allocator_factory",
764 "../test:test_support",
765 ]
766 }
767
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700768 rtc_source_set("mock_video_codec_factory") {
769 testonly = true
770 sources = [
771 "test/mock_video_decoder_factory.h",
772 "test/mock_video_encoder_factory.h",
773 ]
774
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700775 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100776 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700777 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700778 ]
779 }
780
Erik Språngc84cd952018-10-15 11:55:13 +0200781 rtc_source_set("mock_video_decoder") {
782 visibility = [ "*" ]
783
784 testonly = true
785 sources = [
786 "test/mock_video_decoder.cc",
787 "test/mock_video_decoder.h",
788 ]
789
790 deps = [
791 "../api/video_codecs:video_codecs_api",
792 "../test:test_support",
793 ]
794 }
795
Erik Språng6af1c922018-10-12 10:01:30 +0200796 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200797 visibility = [ "*" ]
798
Erik Språng6af1c922018-10-12 10:01:30 +0200799 testonly = true
800 sources = [
801 "test/mock_video_encoder.cc",
802 "test/mock_video_encoder.h",
803 ]
804
805 deps = [
806 "../api/video_codecs:video_codecs_api",
807 "../test:test_support",
808 ]
809 }
810
Anton Sukhanov7940da02018-10-10 10:34:49 -0700811 rtc_source_set("fake_media_transport") {
812 testonly = true
813
814 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700815 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700816 "test/fake_media_transport.h",
817 ]
818
819 deps = [
820 ":libjingle_peerconnection_api",
821 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700822 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100823 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700824 ]
825 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200826
827 rtc_source_set("loopback_media_transport") {
828 testonly = true
829
830 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100831 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200832 "test/loopback_media_transport.h",
833 ]
834
835 deps = [
836 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100837 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200838 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700839 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100840 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200841 ]
842 }
843
844 rtc_source_set("rtc_api_unittests") {
845 testonly = true
846
847 sources = [
848 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100849 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800850 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200851 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200852 "rtp_packet_info_unittest.cc",
853 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800854 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200855 "test/loopback_media_transport_unittest.cc",
856 ]
857
Niels Möller2e47f7c2018-10-16 10:41:42 +0200858 deps = [
859 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100860 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200861 ":libjingle_peerconnection_api",
862 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200863 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200864 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200865 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100866 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200867 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200868 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200869 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100870 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200871 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200872 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200873 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200874 ]
875 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100876
877 rtc_source_set("compile_all_headers") {
878 testonly = true
879
880 sources = [
881 "test/compile_all_headers.cc",
882 ]
883
884 deps = [
885 ":fake_frame_decryptor",
886 ":fake_frame_encryptor",
887 ":fake_media_transport",
888 ":loopback_media_transport",
889 ":mock_audio_mixer",
890 ":mock_frame_decryptor",
891 ":mock_frame_encryptor",
892 ":mock_peerconnectioninterface",
893 ":mock_rtp",
894 ":mock_video_bitrate_allocator",
895 ":mock_video_bitrate_allocator_factory",
896 ":mock_video_codec_factory",
897 ":mock_video_decoder",
898 ":mock_video_encoder",
899 ":rtc_api_unittests",
900 "units:units_unittests",
901 ]
902 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700903}