blob: f2a940eae65356c2b21b57cf71fda4c183d1a15d [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",
Johannes Kron0809e7e2020-01-21 11:54:21 +010099 "../rtc_base/system:rtc_export",
Chen Xingd2a66862019-06-03 14:53:42 +0200100 "//third_party/abseil-cpp/absl/types:optional",
101 ]
102}
103
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200104rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200105 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200106 sources = [
107 "media_stream_interface.cc",
108 "media_stream_interface.h",
109 "notifier.h",
110 ]
111 deps = [
112 ":audio_options_api",
113 ":rtp_parameters",
114 ":scoped_refptr",
115 "../modules/audio_processing:audio_processing_statistics",
116 "../rtc_base:checks",
117 "../rtc_base:refcount",
118 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100119 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200120 "video:video_frame",
121 "//third_party/abseil-cpp/absl/types:optional",
122 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200123}
124
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200125rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000126 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700127 cflags = []
128 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700129 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200130 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800131 "crypto_params.h",
132 "data_channel_interface.cc",
133 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200134 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800135 "dtls_transport_interface.h",
136 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100137 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800138 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700139 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800140 "jsep_ice_candidate.cc",
141 "jsep_ice_candidate.h",
142 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "media_stream_proxy.h",
144 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "peer_connection_factory_proxy.h",
146 "peer_connection_interface.cc",
147 "peer_connection_interface.h",
148 "peer_connection_proxy.h",
Guido Urdanetaccab06f2020-01-15 11:30:29 +0000149 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700150 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800151 "rtp_receiver_interface.cc",
152 "rtp_receiver_interface.h",
153 "rtp_sender_interface.cc",
154 "rtp_sender_interface.h",
155 "rtp_transceiver_interface.cc",
156 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100157 "sctp_transport_interface.cc",
158 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800159 "set_remote_description_observer_interface.h",
160 "stats_types.cc",
161 "stats_types.h",
162 "turn_customizer.h",
163 "uma_metrics.h",
164 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700165 ]
kjellanderc76dc952016-06-03 03:09:32 -0700166 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100167 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100168 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100169 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100170 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100171 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200172 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200173 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200174 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200175 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700176 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200177 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200178 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100179 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100180 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100181 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200182 "crypto:frame_decryptor_interface",
183 "crypto:frame_encryptor_interface",
184 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100185 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200186 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200187 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200188 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200189 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700190 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200191 "transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +0100192 "transport:webrtc_key_value_config",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100193 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200194 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100195 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200196 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800197 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700198 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200199 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200200 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200201 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800202 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700203 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800204 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200205 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100206
207 # Basically, don't add stuff here. You might break sensitive downstream
208 # targets like pnacl. API should not depend on anything outside of this
209 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700210 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200211 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100212 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100213 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100214 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100215 "../rtc_base:checks",
216 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700217 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200218 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700219 ]
ossu7bb87ee2017-01-23 04:56:25 -0800220}
kjellanderc76dc952016-06-03 03:09:32 -0700221
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200222rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200223 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200224 sources = [
225 "rtc_error.cc",
226 "rtc_error.h",
227 ]
228 deps = [
229 "../rtc_base:checks",
230 "../rtc_base:logging",
231 "../rtc_base:macromagic",
232 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100233 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200234 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200235}
236
Patrik Höglund662e31f2019-09-05 14:35:04 +0200237rtc_source_set("packet_socket_factory") {
238 visibility = [ "*" ]
239 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200240 "async_resolver_factory.h",
241 "packet_socket_factory.h",
242 ]
243 deps = [
244 "../rtc_base:rtc_base",
245 "../rtc_base/system:rtc_export",
246 ]
247}
248
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100249rtc_source_set("scoped_refptr") {
250 visibility = [ "*" ]
251 sources = [
252 "scoped_refptr.h",
253 ]
254}
255
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200256rtc_source_set("video_quality_test_fixture_api") {
257 visibility = [ "*" ]
258 testonly = true
259 sources = [
260 "test/video_quality_test_fixture.h",
261 ]
262 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200263 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200264 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200265 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200266 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200267 ":simulated_network_api",
268 "../call:fake_network",
269 "../call:rtp_interfaces",
270 "../test:test_common",
271 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200272 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200273 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200274 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200275 "video_codecs:video_codecs_api",
276 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200277}
278
Artem Titovd57628f2019-03-22 12:34:25 +0100279rtc_source_set("video_quality_analyzer_api") {
280 visibility = [ "*" ]
281 testonly = true
282 sources = [
283 "test/video_quality_analyzer_interface.h",
284 ]
285
286 deps = [
287 ":stats_observer_interface",
288 "video:encoded_image",
289 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200290 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100291 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100292 "//third_party/abseil-cpp/absl/types:optional",
293 ]
294}
295
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200296rtc_source_set("track_id_stream_label_map") {
297 visibility = [ "*" ]
298 sources = [
299 "test/track_id_stream_label_map.h",
300 ]
301}
302
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200303rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200304 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200305 sources = [
306 "media_types.cc",
307 "media_types.h",
308 "rtp_parameters.cc",
309 "rtp_parameters.h",
310 ]
311 deps = [
312 ":array_view",
313 "../rtc_base:checks",
314 "../rtc_base:stringutils",
315 "../rtc_base/system:rtc_export",
316 "//third_party/abseil-cpp/absl/types:optional",
317 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200318}
319
Artem Titovd57628f2019-03-22 12:34:25 +0100320rtc_source_set("audio_quality_analyzer_api") {
321 visibility = [ "*" ]
322 testonly = true
323 sources = [
324 "test/audio_quality_analyzer_interface.h",
325 ]
326
327 deps = [
328 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200329 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100330 ]
331}
332
333rtc_source_set("stats_observer_interface") {
334 visibility = [ "*" ]
335 testonly = true
336 sources = [
337 "test/stats_observer_interface.h",
338 ]
339
340 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200341 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100342 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200343 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100344 ]
345}
346
347rtc_source_set("peer_connection_quality_test_fixture_api") {
348 visibility = [ "*" ]
349 testonly = true
350 sources = [
351 "test/peerconnection_quality_test_fixture.h",
352 ]
353
354 deps = [
355 ":audio_quality_analyzer_api",
356 ":callfactory_api",
357 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100358 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100359 ":function_view",
360 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200361 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200362 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100363 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200364 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100365 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200366 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100367 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200368 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200369 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100370 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200371 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100372 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100373 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100374 "video_codecs:video_codecs_api",
375 "//third_party/abseil-cpp/absl/memory",
376 "//third_party/abseil-cpp/absl/types:optional",
377 ]
378}
379
Artem Titov503d7232019-12-04 12:37:13 +0100380rtc_source_set("frame_generator_api") {
381 visibility = [ "*" ]
382 testonly = true
383 sources = [
384 "test/frame_generator_interface.h",
385 ]
386
387 deps = [
388 ":scoped_refptr",
389 "video:video_frame",
390 "//third_party/abseil-cpp/absl/types:optional",
391 ]
392}
393
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200394rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200395 visibility = [ "*" ]
396 testonly = true
397 sources = [
398 "test/test_dependency_factory.cc",
399 "test/test_dependency_factory.h",
400 ]
401 deps = [
402 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100403 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200404 "../rtc_base:thread_checker",
405 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200406}
407
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200408if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200409 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200410 visibility = [ "*" ]
411 testonly = true
412 sources = [
413 "test/create_video_quality_test_fixture.cc",
414 "test/create_video_quality_test_fixture.h",
415 ]
416 deps = [
417 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200418 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100419 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200420 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200421 "../video:video_quality_test",
422 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200423 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100424
Sebastian Janssoncec24332019-12-04 14:26:50 +0100425 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200426 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100427 visibility = [ "*" ]
428 testonly = true
429 sources = [
430 "test/create_network_emulation_manager.cc",
431 "test/create_network_emulation_manager.h",
432 ]
433 deps = [
434 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200435 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100436 ]
437 }
Artem Titovd57628f2019-03-22 12:34:25 +0100438
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200439 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100440 visibility = [ "*" ]
441 testonly = true
442 sources = [
443 "test/create_peerconnection_quality_test_fixture.cc",
444 "test/create_peerconnection_quality_test_fixture.h",
445 ]
446
447 deps = [
448 ":audio_quality_analyzer_api",
449 ":peer_connection_quality_test_fixture_api",
450 ":video_quality_analyzer_api",
451 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100452 ]
453 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100454}
Artem Titov503d7232019-12-04 12:37:13 +0100455
Artem Titov33f9d2b2019-12-05 15:59:00 +0100456rtc_library("create_frame_generator") {
457 visibility = [ "*" ]
458 testonly = true
459 sources = [
460 "test/create_frame_generator.cc",
461 "test/create_frame_generator.h",
462 ]
463 deps = [
464 ":frame_generator_api",
465 "../rtc_base:checks",
466 "../system_wrappers",
467 "../test:frame_generator_impl",
468 "//third_party/abseil-cpp/absl/types:optional",
469 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200470}
471
Elad Alon80810732017-10-06 13:07:32 +0200472rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000473 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200474 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800475 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200476 ]
477}
478
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200479rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200480 visibility = [ "*" ]
481 sources = [
482 "rtc_event_log_output_file.cc",
483 "rtc_event_log_output_file.h",
484 ]
485
486 deps = [
487 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200488 "../rtc_base:checks",
489 "../rtc_base:rtc_base_approved",
490 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200491 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200492 ]
493}
494
hbos74e1a4f2016-09-15 23:33:01 -0700495rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000496 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700497 cflags = []
498 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800499 "stats/rtc_stats.h",
500 "stats/rtc_stats_collector_callback.h",
501 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700502 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700503 ]
504
505 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100506 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100507 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700508 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200509 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700510 ]
511}
512
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200513rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100514 visibility = [ "*" ]
515 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200516 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100517 "audio_options.h",
518 ]
519
520 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100521 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200522 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800523 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200524 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100525 ]
526}
527
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200528rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000529 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800530 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100531 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800532 "call/transport.h",
533 ]
534}
nisseb2250e52016-12-02 04:01:14 -0800535
Sebastian Jansson6736df12018-11-21 19:18:39 +0100536rtc_source_set("bitrate_allocation") {
537 visibility = [ "*" ]
538 sources = [
539 "call/bitrate_allocation.h",
540 ]
541 deps = [
542 "units:data_rate",
543 "units:time_delta",
544 ]
545}
546
Sebastian Janssoncec24332019-12-04 14:26:50 +0100547# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200548rtc_source_set("simulated_network_api") {
549 visibility = [ "*" ]
550 sources = [
551 "test/simulated_network.h",
552 ]
553 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100554 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200555 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200556 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200557 ]
558}
559
Sebastian Janssoncec24332019-12-04 14:26:50 +0100560# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100561rtc_source_set("network_emulation_manager_api") {
562 visibility = [ "*" ]
563 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100564 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100565 "test/network_emulation_manager.h",
566 ]
567 deps = [
568 ":simulated_network_api",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100569 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100570 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100571 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200572 "units:data_rate",
573 "units:data_size",
574 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100575 ]
576}
577
Ying Wang3b790f32018-01-19 17:58:57 +0100578rtc_source_set("fec_controller_api") {
579 visibility = [ "*" ]
580 sources = [
581 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200582 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100583 ]
584
585 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100586 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100587 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100588 ]
589}
590
Ying Wang0810a7c2019-04-10 13:48:24 +0200591rtc_source_set("network_state_predictor_api") {
592 visibility = [ "*" ]
593 sources = [
594 "network_state_predictor.h",
595 ]
596}
597
kwiberg529662a2017-09-04 05:43:17 -0700598rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000599 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700600 sources = [
601 "array_view.h",
602 ]
603 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100604 "../rtc_base:checks",
605 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700606 ]
607}
608
Niels Möller9155e492017-10-23 11:22:30 +0200609rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000610 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200611 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800612 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200613 ]
614 deps = [
615 "../rtc_base:rtc_base_approved",
616 ]
617}
618
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200619rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100620 visibility = [ "*" ]
621 sources = [
622 "ice_transport_factory.cc",
623 "ice_transport_factory.h",
624 ]
625 deps = [
626 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200627 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100628 ":scoped_refptr",
629 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100630 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200631 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700632 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100633 ]
634}
635
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200636rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200637 visibility = [ "*" ]
638 sources = [
639 "test/neteq_simulator.cc",
640 "test/neteq_simulator.h",
641 ]
642}
643
Artem Titov741daaf2019-03-21 14:37:36 +0100644rtc_source_set("function_view") {
645 visibility = [ "*" ]
646 sources = [
647 "function_view.h",
648 ]
649 deps = [
650 "../rtc_base:checks",
651 ]
652}
653
kjellanderfd5b4e92016-06-13 12:08:33 -0700654if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100655 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200656 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100657 visibility = [ "*" ]
658 testonly = true
659 sources = [
660 "test/audioproc_float.cc",
661 "test/audioproc_float.h",
662 ]
663
664 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100665 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000666 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100667 "../modules/audio_processing:audioproc_f_impl",
668 ]
669 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200670
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200671 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200672 visibility = [ "*" ]
673 testonly = true
674 sources = [
675 "test/neteq_simulator_factory.cc",
676 "test/neteq_simulator_factory.h",
677 ]
678 deps = [
679 ":neteq_simulator_api",
680 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200681 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100682 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200683 "//third_party/abseil-cpp/absl/flags:flag",
684 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100685 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200686 ]
687 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100688 }
689
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200690 rtc_source_set("simulcast_test_fixture_api") {
691 visibility = [ "*" ]
692 testonly = true
693 sources = [
694 "test/simulcast_test_fixture.h",
695 ]
696 }
697
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200698 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200699 visibility = [ "*" ]
700 testonly = true
701 sources = [
702 "test/create_simulcast_test_fixture.cc",
703 "test/create_simulcast_test_fixture.h",
704 ]
705 deps = [
706 ":simulcast_test_fixture_api",
707 "../modules/video_coding:simulcast_test_fixture_impl",
708 "../rtc_base:rtc_base_approved",
709 "video_codecs:video_codecs_api",
710 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200711 }
712
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200713 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200714 visibility = [ "*" ]
715 testonly = true
716 sources = [
717 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200718 "test/videocodec_test_stats.cc",
719 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200720 ]
721 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200722 "..:webrtc_common",
723 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200724 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100725 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200726 "video_codecs:video_codecs_api",
727 ]
728 }
729
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200730 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200731 visibility = [ "*" ]
732 testonly = true
733 sources = [
734 "test/create_videocodec_test_fixture.cc",
735 "test/create_videocodec_test_fixture.h",
736 ]
737 deps = [
738 ":videocodec_test_fixture_api",
739 "../modules/video_coding:video_codecs_test_framework",
740 "../modules/video_coding:videocodec_test_impl",
741 "../rtc_base:rtc_base_approved",
742 "video_codecs:video_codecs_api",
743 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200744 }
745
kjellander2f6af9c2017-03-02 22:26:23 -0800746 rtc_source_set("mock_audio_mixer") {
747 testonly = true
748 sources = [
749 "test/mock_audio_mixer.h",
750 ]
751
kjellander2f6af9c2017-03-02 22:26:23 -0800752 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700753 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100754 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800755 ]
756 }
757
Elad Alon45befc52019-07-02 11:20:09 +0200758 rtc_source_set("mock_fec_controller_override") {
759 testonly = true
760 sources = [
761 "test/mock_fec_controller_override.h",
762 ]
763 deps = [
764 ":fec_controller_api",
765 "../test:test_support",
766 ]
767 }
768
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200769 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700770 testonly = true
771 sources = [
772 "test/mock_frame_encryptor.cc",
773 "test/mock_frame_encryptor.h",
774 ]
775 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200776 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700777 ":libjingle_peerconnection_api",
778 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200779 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700780 ]
781 }
782
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200783 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700784 testonly = true
785 sources = [
786 "test/mock_frame_decryptor.cc",
787 "test/mock_frame_decryptor.h",
788 ]
789 deps = [
790 ":libjingle_peerconnection_api",
791 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200792 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700793 ]
794 }
795
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200796 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700797 testonly = true
798 sources = [
799 "test/fake_frame_encryptor.cc",
800 "test/fake_frame_encryptor.h",
801 ]
802 deps = [
803 ":array_view",
804 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200805 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700806 "..:webrtc_common",
807 "../rtc_base:checks",
808 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200809 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700810 ]
811 }
812
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200813 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700814 testonly = true
815 sources = [
816 "test/fake_frame_decryptor.cc",
817 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700818 ]
819 deps = [
820 ":array_view",
821 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200822 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700823 "..:webrtc_common",
824 "../rtc_base:checks",
825 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200826 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700827 ]
828 }
829
Niels Möllere78fd802019-09-13 14:45:55 +0200830 rtc_source_set("dummy_peer_connection") {
831 visibility = [ "*" ]
832 testonly = true
833 sources = [
834 "test/dummy_peer_connection.h",
835 ]
836
837 deps = [
838 ":libjingle_peerconnection_api",
839 ":rtc_error",
840 "../rtc_base:checks",
841 "../rtc_base:refcount",
842 ]
843 }
844
Jiawei Ou651b92e2018-06-29 15:46:44 -0700845 rtc_source_set("mock_peerconnectioninterface") {
846 testonly = true
847 sources = [
848 "test/mock_peerconnectioninterface.h",
849 ]
850
851 deps = [
852 ":libjingle_peerconnection_api",
853 "../test:test_support",
854 ]
855 }
856
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100857 rtc_source_set("mock_rtp") {
858 testonly = true
859 sources = [
860 "test/mock_rtpreceiver.h",
861 "test/mock_rtpsender.h",
862 ]
863
864 deps = [
865 ":libjingle_peerconnection_api",
866 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100867 ]
868 }
869
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700870 rtc_source_set("mock_video_bitrate_allocator") {
871 testonly = true
872 sources = [
873 "test/mock_video_bitrate_allocator.h",
874 ]
875
876 deps = [
877 "../api/video:video_bitrate_allocator",
878 "../test:test_support",
879 ]
880 }
881
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800882 rtc_source_set("mock_video_bitrate_allocator_factory") {
883 testonly = true
884 sources = [
885 "test/mock_video_bitrate_allocator_factory.h",
886 ]
887
888 deps = [
889 "../api/video:video_bitrate_allocator_factory",
890 "../test:test_support",
891 ]
892 }
893
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700894 rtc_source_set("mock_video_codec_factory") {
895 testonly = true
896 sources = [
897 "test/mock_video_decoder_factory.h",
898 "test/mock_video_encoder_factory.h",
899 ]
900
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700901 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100902 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700903 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700904 ]
905 }
906
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200907 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200908 visibility = [ "*" ]
909
910 testonly = true
911 sources = [
912 "test/mock_video_decoder.cc",
913 "test/mock_video_decoder.h",
914 ]
915
916 deps = [
917 "../api/video_codecs:video_codecs_api",
918 "../test:test_support",
919 ]
920 }
921
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200922 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200923 visibility = [ "*" ]
924
Erik Språng6af1c922018-10-12 10:01:30 +0200925 testonly = true
926 sources = [
927 "test/mock_video_encoder.cc",
928 "test/mock_video_encoder.h",
929 ]
930
931 deps = [
932 "../api/video_codecs:video_codecs_api",
933 "../test:test_support",
934 ]
935 }
936
Anton Sukhanov7940da02018-10-10 10:34:49 -0700937 rtc_source_set("fake_media_transport") {
938 testonly = true
939
940 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700941 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700942 "test/fake_media_transport.h",
943 ]
944
945 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700946 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200947 "transport:datagram_transport_interface",
948 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700949 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700950 ]
951 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200952
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200953 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200954 testonly = true
955
956 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100957 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200958 "test/loopback_media_transport.h",
959 ]
960
961 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100962 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200963 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200964 "transport:datagram_transport_interface",
965 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700966 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200967 ]
968 }
969
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800970 rtc_library("time_controller") {
971 visibility = [ "*" ]
972 testonly = true
973 sources = [
974 "test/time_controller.h",
975 ]
976
977 deps = [
978 "../modules:module_api",
979 "../modules/utility:utility",
980 "../rtc_base",
981 "../rtc_base:rtc_base_tests_utils",
982 "../rtc_base:rtc_event",
983 "../rtc_base/synchronization:sequence_checker",
984 "../rtc_base/synchronization:yield_policy",
985 "../rtc_base/task_utils:to_queued_task",
986 "../system_wrappers",
987 "task_queue",
988 "task_queue:default_task_queue_factory",
989 "units:time_delta",
990 "units:timestamp",
991 "//third_party/abseil-cpp/absl/strings",
992 ]
993 }
994
995 rtc_library("create_time_controller") {
996 visibility = [ "*" ]
997 testonly = true
998 sources = [
999 "test/create_time_controller.cc",
1000 "test/create_time_controller.h",
1001 ]
1002
1003 deps = [
1004 ":time_controller",
1005 "../test/time_controller",
1006 ]
1007 }
1008
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001009 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001010 testonly = true
1011
1012 sources = [
1013 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001014 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001015 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001016 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001017 "rtp_packet_info_unittest.cc",
1018 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001019 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001020 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001021 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001022 "test/loopback_media_transport_unittest.cc",
1023 ]
1024
Niels Möller2e47f7c2018-10-16 10:41:42 +02001025 deps = [
1026 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001027 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +01001028 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001029 ":libjingle_peerconnection_api",
1030 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001031 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001032 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001033 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001034 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001035 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001036 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001037 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001038 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001039 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001040 "../rtc_base:rtc_task_queue",
1041 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001042 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001043 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001044 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001045 "units:time_delta",
1046 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001047 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001048 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001049 ]
1050 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001051
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001052 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001053 testonly = true
1054
1055 sources = [
1056 "test/compile_all_headers.cc",
1057 ]
1058
1059 deps = [
1060 ":fake_frame_decryptor",
1061 ":fake_frame_encryptor",
1062 ":fake_media_transport",
1063 ":loopback_media_transport",
1064 ":mock_audio_mixer",
1065 ":mock_frame_decryptor",
1066 ":mock_frame_encryptor",
1067 ":mock_peerconnectioninterface",
1068 ":mock_rtp",
1069 ":mock_video_bitrate_allocator",
1070 ":mock_video_bitrate_allocator_factory",
1071 ":mock_video_codec_factory",
1072 ":mock_video_decoder",
1073 ":mock_video_encoder",
1074 ":rtc_api_unittests",
1075 "units:units_unittests",
1076 ]
1077 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001078}