blob: 8bb4f24a1668cf9670d48d216c0039dee50cca9d [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
Mirko Bonadei35214fc2019-09-23 14:54:28 +020036 deps = [
37 "../rtc_base/system:rtc_export",
38 ]
Niels Möller8366e172018-02-14 12:20:13 +010039}
40
Danil Chapovalov5bf58062019-06-18 16:43:37 +020041if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020042 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020043 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020044 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020045 sources = [
46 "create_peerconnection_factory.cc",
47 "create_peerconnection_factory.h",
48 ]
49 deps = [
50 ":callfactory_api",
51 ":libjingle_peerconnection_api",
52 ":scoped_refptr",
53 "../api/rtc_event_log:rtc_event_log_factory",
54 "../media:rtc_audio_video",
55 "../media:rtc_media_base",
56 "../modules/audio_device:audio_device_api",
57 "../modules/audio_processing:api",
58 "../pc:peerconnection",
59 "../rtc_base",
60 "../rtc_base:rtc_base_approved",
61 "audio:audio_mixer_api",
62 "audio_codecs:audio_codecs_api",
63 "task_queue:default_task_queue_factory",
64 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020065 ]
66 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010067}
68
Mirko Bonadei86d053c2019-10-17 21:32:04 +020069rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 14:27:03 +010070 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010071 sources = [
72 "rtp_headers.cc",
73 "rtp_headers.h",
74 ]
75 deps = [
76 ":array_view",
77 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020078 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020079 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010080 "//third_party/abseil-cpp/absl/types:optional",
81 ]
Niels Möllerb8389522019-03-19 14:27:03 +010082}
83
Mirko Bonadei86d053c2019-10-17 21:32:04 +020084rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020085 visibility = [ "*" ]
86 sources = [
87 "rtp_packet_info.cc",
88 "rtp_packet_info.h",
89 "rtp_packet_infos.h",
90 ]
91 deps = [
92 ":array_view",
93 ":refcountedbase",
94 ":rtp_headers",
95 ":scoped_refptr",
96 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020097 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020098 "../rtc_base:rtc_base_approved",
99 "//third_party/abseil-cpp/absl/types:optional",
100 ]
101}
102
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200103rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200104 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200105 sources = [
106 "media_stream_interface.cc",
107 "media_stream_interface.h",
108 "notifier.h",
109 ]
110 deps = [
111 ":audio_options_api",
112 ":rtp_parameters",
113 ":scoped_refptr",
114 "../modules/audio_processing:audio_processing_statistics",
115 "../rtc_base:checks",
116 "../rtc_base:refcount",
117 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100118 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200119 "video:video_frame",
120 "//third_party/abseil-cpp/absl/types:optional",
121 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200122}
123
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200124rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000125 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700126 cflags = []
127 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700128 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200129 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800130 "crypto_params.h",
131 "data_channel_interface.cc",
132 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200133 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "dtls_transport_interface.h",
135 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100136 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800137 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700138 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "jsep_ice_candidate.cc",
140 "jsep_ice_candidate.h",
141 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800142 "media_stream_proxy.h",
143 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800144 "peer_connection_factory_proxy.h",
145 "peer_connection_interface.cc",
146 "peer_connection_interface.h",
147 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700148 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700149 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800150 "rtp_receiver_interface.cc",
151 "rtp_receiver_interface.h",
152 "rtp_sender_interface.cc",
153 "rtp_sender_interface.h",
154 "rtp_transceiver_interface.cc",
155 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100156 "sctp_transport_interface.cc",
157 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800158 "set_remote_description_observer_interface.h",
159 "stats_types.cc",
160 "stats_types.h",
161 "turn_customizer.h",
162 "uma_metrics.h",
163 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700164 ]
kjellanderc76dc952016-06-03 03:09:32 -0700165 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100166 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100167 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100168 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100169 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100170 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200171 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200172 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200173 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200174 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700175 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200176 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200177 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100178 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100179 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100180 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200181 "crypto:frame_decryptor_interface",
182 "crypto:frame_encryptor_interface",
183 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100184 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200185 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200186 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200187 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200188 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700189 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200190 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100191 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200192 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100193 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200194 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800195 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700196 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200197 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200198 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200199 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800200 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700201 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800202 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200203 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100204
205 # Basically, don't add stuff here. You might break sensitive downstream
206 # targets like pnacl. API should not depend on anything outside of this
207 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700208 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200209 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100210 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100211 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100212 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100213 "../rtc_base:checks",
214 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700215 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200216 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700217 ]
ossu7bb87ee2017-01-23 04:56:25 -0800218}
kjellanderc76dc952016-06-03 03:09:32 -0700219
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200220rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200221 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200222 sources = [
223 "rtc_error.cc",
224 "rtc_error.h",
225 ]
226 deps = [
227 "../rtc_base:checks",
228 "../rtc_base:logging",
229 "../rtc_base:macromagic",
230 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200231 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200232}
233
Patrik Höglund662e31f2019-09-05 14:35:04 +0200234rtc_source_set("packet_socket_factory") {
235 visibility = [ "*" ]
236 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200237 "async_resolver_factory.h",
238 "packet_socket_factory.h",
239 ]
240 deps = [
241 "../rtc_base:rtc_base",
242 "../rtc_base/system:rtc_export",
243 ]
244}
245
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100246rtc_source_set("scoped_refptr") {
247 visibility = [ "*" ]
248 sources = [
249 "scoped_refptr.h",
250 ]
251}
252
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200253rtc_source_set("video_quality_test_fixture_api") {
254 visibility = [ "*" ]
255 testonly = true
256 sources = [
257 "test/video_quality_test_fixture.h",
258 ]
259 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200260 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200261 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200262 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200263 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200264 ":simulated_network_api",
265 "../call:fake_network",
266 "../call:rtp_interfaces",
267 "../test:test_common",
268 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200269 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200270 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200271 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200272 "video_codecs:video_codecs_api",
273 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200274}
275
Artem Titovd57628f2019-03-22 12:34:25 +0100276rtc_source_set("video_quality_analyzer_api") {
277 visibility = [ "*" ]
278 testonly = true
279 sources = [
280 "test/video_quality_analyzer_interface.h",
281 ]
282
283 deps = [
284 ":stats_observer_interface",
285 "video:encoded_image",
286 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200287 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100288 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100289 "//third_party/abseil-cpp/absl/types:optional",
290 ]
291}
292
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200293rtc_source_set("track_id_stream_label_map") {
294 visibility = [ "*" ]
295 sources = [
296 "test/track_id_stream_label_map.h",
297 ]
298}
299
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200300rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200301 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200302 sources = [
303 "media_types.cc",
304 "media_types.h",
305 "rtp_parameters.cc",
306 "rtp_parameters.h",
307 ]
308 deps = [
309 ":array_view",
310 "../rtc_base:checks",
311 "../rtc_base:stringutils",
312 "../rtc_base/system:rtc_export",
313 "//third_party/abseil-cpp/absl/types:optional",
314 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200315}
316
Artem Titovd57628f2019-03-22 12:34:25 +0100317rtc_source_set("audio_quality_analyzer_api") {
318 visibility = [ "*" ]
319 testonly = true
320 sources = [
321 "test/audio_quality_analyzer_interface.h",
322 ]
323
324 deps = [
325 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200326 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100327 ]
328}
329
330rtc_source_set("stats_observer_interface") {
331 visibility = [ "*" ]
332 testonly = true
333 sources = [
334 "test/stats_observer_interface.h",
335 ]
336
337 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200338 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100339 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200340 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100341 ]
342}
343
344rtc_source_set("peer_connection_quality_test_fixture_api") {
345 visibility = [ "*" ]
346 testonly = true
347 sources = [
348 "test/peerconnection_quality_test_fixture.h",
349 ]
350
351 deps = [
352 ":audio_quality_analyzer_api",
353 ":callfactory_api",
354 ":fec_controller_api",
355 ":function_view",
356 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200357 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200358 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100359 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200360 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100361 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200362 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100363 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200364 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200365 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100366 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200367 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100368 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100369 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100370 "video_codecs:video_codecs_api",
371 "//third_party/abseil-cpp/absl/memory",
372 "//third_party/abseil-cpp/absl/types:optional",
373 ]
374}
375
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200376rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200377 visibility = [ "*" ]
378 testonly = true
379 sources = [
380 "test/test_dependency_factory.cc",
381 "test/test_dependency_factory.h",
382 ]
383 deps = [
384 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100385 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200386 "../rtc_base:thread_checker",
387 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200388}
389
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200390if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200391 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200392 visibility = [ "*" ]
393 testonly = true
394 sources = [
395 "test/create_video_quality_test_fixture.cc",
396 "test/create_video_quality_test_fixture.h",
397 ]
398 deps = [
399 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200400 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100401 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200402 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200403 "../video:video_quality_test",
404 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200405 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100406
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200407 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/create_network_emulation_manager.cc",
412 "test/create_network_emulation_manager.h",
413 ]
414 deps = [
415 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200416 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100417 ]
418 }
Artem Titovd57628f2019-03-22 12:34:25 +0100419
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200420 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100421 visibility = [ "*" ]
422 testonly = true
423 sources = [
424 "test/create_peerconnection_quality_test_fixture.cc",
425 "test/create_peerconnection_quality_test_fixture.h",
426 ]
427
428 deps = [
429 ":audio_quality_analyzer_api",
430 ":peer_connection_quality_test_fixture_api",
431 ":video_quality_analyzer_api",
432 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100433 ]
434 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200435}
436
Elad Alon80810732017-10-06 13:07:32 +0200437rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000438 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200439 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800440 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200441 ]
442}
443
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200444rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200445 visibility = [ "*" ]
446 sources = [
447 "rtc_event_log_output_file.cc",
448 "rtc_event_log_output_file.h",
449 ]
450
451 deps = [
452 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200453 "../rtc_base:checks",
454 "../rtc_base:rtc_base_approved",
455 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200456 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200457 ]
458}
459
hbos74e1a4f2016-09-15 23:33:01 -0700460rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000461 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700462 cflags = []
463 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800464 "stats/rtc_stats.h",
465 "stats/rtc_stats_collector_callback.h",
466 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700467 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700468 ]
469
470 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100471 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100472 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700473 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200474 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700475 ]
476}
477
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200478rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100479 visibility = [ "*" ]
480 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200481 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100482 "audio_options.h",
483 ]
484
485 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100486 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200487 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200488 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100489 ]
490}
491
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200492rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000493 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800494 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100495 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800496 "call/transport.h",
497 ]
498}
nisseb2250e52016-12-02 04:01:14 -0800499
Sebastian Jansson6736df12018-11-21 19:18:39 +0100500rtc_source_set("bitrate_allocation") {
501 visibility = [ "*" ]
502 sources = [
503 "call/bitrate_allocation.h",
504 ]
505 deps = [
506 "units:data_rate",
507 "units:time_delta",
508 ]
509}
510
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200511rtc_source_set("simulated_network_api") {
512 visibility = [ "*" ]
513 sources = [
514 "test/simulated_network.h",
515 ]
516 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100517 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200518 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200519 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200520 ]
521}
522
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100523rtc_source_set("network_emulation_manager_api") {
524 visibility = [ "*" ]
525 sources = [
526 "test/network_emulation_manager.h",
527 ]
528 deps = [
529 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100530 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200531 "units:data_rate",
532 "units:data_size",
533 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100534 ]
535}
536
Ying Wang3b790f32018-01-19 17:58:57 +0100537rtc_source_set("fec_controller_api") {
538 visibility = [ "*" ]
539 sources = [
540 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200541 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100542 ]
543
544 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100545 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100546 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100547 ]
548}
549
Ying Wang0810a7c2019-04-10 13:48:24 +0200550rtc_source_set("network_state_predictor_api") {
551 visibility = [ "*" ]
552 sources = [
553 "network_state_predictor.h",
554 ]
555}
556
kwiberg529662a2017-09-04 05:43:17 -0700557rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000558 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700559 sources = [
560 "array_view.h",
561 ]
562 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100563 "../rtc_base:checks",
564 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700565 ]
566}
567
Niels Möller9155e492017-10-23 11:22:30 +0200568rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000569 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200570 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800571 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200572 ]
573 deps = [
574 "../rtc_base:rtc_base_approved",
575 ]
576}
577
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200578rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100579 visibility = [ "*" ]
580 sources = [
581 "ice_transport_factory.cc",
582 "ice_transport_factory.h",
583 ]
584 deps = [
585 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200586 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100587 ":scoped_refptr",
588 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100589 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200590 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700591 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100592 ]
593}
594
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200595rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200596 visibility = [ "*" ]
597 sources = [
598 "test/neteq_simulator.cc",
599 "test/neteq_simulator.h",
600 ]
601}
602
Ivo Creusen3ce44a32019-10-31 14:38:11 +0100603rtc_source_set("neteq_factory_with_codecs") {
604 visibility = [ "*" ]
605 testonly = true
606 sources = [
607 "test/neteq_factory_with_codecs.cc",
608 "test/neteq_factory_with_codecs.h",
609 ]
610
611 deps = [
612 ":scoped_refptr",
613 "../modules/audio_coding:neteq",
614 "../system_wrappers:system_wrappers",
615 "audio_codecs:audio_codecs_api",
616 "audio_codecs:builtin_audio_decoder_factory",
617 "neteq:default_neteq_controller_factory",
618 "neteq:neteq_api",
619 "neteq:neteq_controller_api",
620 ]
621}
622
Artem Titov741daaf2019-03-21 14:37:36 +0100623rtc_source_set("function_view") {
624 visibility = [ "*" ]
625 sources = [
626 "function_view.h",
627 ]
628 deps = [
629 "../rtc_base:checks",
630 ]
631}
632
kjellanderfd5b4e92016-06-13 12:08:33 -0700633if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100634 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200635 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100636 visibility = [ "*" ]
637 testonly = true
638 sources = [
639 "test/audioproc_float.cc",
640 "test/audioproc_float.h",
641 ]
642
643 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100644 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000645 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100646 "../modules/audio_processing:audioproc_f_impl",
647 ]
648 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200649
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200650 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200651 visibility = [ "*" ]
652 testonly = true
653 sources = [
654 "test/neteq_simulator_factory.cc",
655 "test/neteq_simulator_factory.h",
656 ]
657 deps = [
658 ":neteq_simulator_api",
659 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200660 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200661 "//third_party/abseil-cpp/absl/flags:flag",
662 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100663 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200664 ]
665 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100666 }
667
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200668 rtc_source_set("simulcast_test_fixture_api") {
669 visibility = [ "*" ]
670 testonly = true
671 sources = [
672 "test/simulcast_test_fixture.h",
673 ]
674 }
675
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200676 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200677 visibility = [ "*" ]
678 testonly = true
679 sources = [
680 "test/create_simulcast_test_fixture.cc",
681 "test/create_simulcast_test_fixture.h",
682 ]
683 deps = [
684 ":simulcast_test_fixture_api",
685 "../modules/video_coding:simulcast_test_fixture_impl",
686 "../rtc_base:rtc_base_approved",
687 "video_codecs:video_codecs_api",
688 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200689 }
690
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200691 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200692 visibility = [ "*" ]
693 testonly = true
694 sources = [
695 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200696 "test/videocodec_test_stats.cc",
697 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200698 ]
699 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200700 "..:webrtc_common",
701 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200702 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100703 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200704 "video_codecs:video_codecs_api",
705 ]
706 }
707
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200708 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200709 visibility = [ "*" ]
710 testonly = true
711 sources = [
712 "test/create_videocodec_test_fixture.cc",
713 "test/create_videocodec_test_fixture.h",
714 ]
715 deps = [
716 ":videocodec_test_fixture_api",
717 "../modules/video_coding:video_codecs_test_framework",
718 "../modules/video_coding:videocodec_test_impl",
719 "../rtc_base:rtc_base_approved",
720 "video_codecs:video_codecs_api",
721 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200722 }
723
kjellander2f6af9c2017-03-02 22:26:23 -0800724 rtc_source_set("mock_audio_mixer") {
725 testonly = true
726 sources = [
727 "test/mock_audio_mixer.h",
728 ]
729
kjellander2f6af9c2017-03-02 22:26:23 -0800730 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700731 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100732 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800733 ]
734 }
735
Elad Alon45befc52019-07-02 11:20:09 +0200736 rtc_source_set("mock_fec_controller_override") {
737 testonly = true
738 sources = [
739 "test/mock_fec_controller_override.h",
740 ]
741 deps = [
742 ":fec_controller_api",
743 "../test:test_support",
744 ]
745 }
746
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200747 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700748 testonly = true
749 sources = [
750 "test/mock_frame_encryptor.cc",
751 "test/mock_frame_encryptor.h",
752 ]
753 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200754 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700755 ":libjingle_peerconnection_api",
756 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200757 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700758 ]
759 }
760
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200761 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700762 testonly = true
763 sources = [
764 "test/mock_frame_decryptor.cc",
765 "test/mock_frame_decryptor.h",
766 ]
767 deps = [
768 ":libjingle_peerconnection_api",
769 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200770 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700771 ]
772 }
773
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200774 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700775 testonly = true
776 sources = [
777 "test/fake_frame_encryptor.cc",
778 "test/fake_frame_encryptor.h",
779 ]
780 deps = [
781 ":array_view",
782 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200783 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700784 "..:webrtc_common",
785 "../rtc_base:checks",
786 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200787 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700788 ]
789 }
790
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200791 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700792 testonly = true
793 sources = [
794 "test/fake_frame_decryptor.cc",
795 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700796 ]
797 deps = [
798 ":array_view",
799 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200800 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700801 "..:webrtc_common",
802 "../rtc_base:checks",
803 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200804 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700805 ]
806 }
807
Niels Möllere78fd802019-09-13 14:45:55 +0200808 rtc_source_set("dummy_peer_connection") {
809 visibility = [ "*" ]
810 testonly = true
811 sources = [
812 "test/dummy_peer_connection.h",
813 ]
814
815 deps = [
816 ":libjingle_peerconnection_api",
817 ":rtc_error",
818 "../rtc_base:checks",
819 "../rtc_base:refcount",
820 ]
821 }
822
Jiawei Ou651b92e2018-06-29 15:46:44 -0700823 rtc_source_set("mock_peerconnectioninterface") {
824 testonly = true
825 sources = [
826 "test/mock_peerconnectioninterface.h",
827 ]
828
829 deps = [
830 ":libjingle_peerconnection_api",
831 "../test:test_support",
832 ]
833 }
834
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100835 rtc_source_set("mock_rtp") {
836 testonly = true
837 sources = [
838 "test/mock_rtpreceiver.h",
839 "test/mock_rtpsender.h",
840 ]
841
842 deps = [
843 ":libjingle_peerconnection_api",
844 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100845 ]
846 }
847
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700848 rtc_source_set("mock_video_bitrate_allocator") {
849 testonly = true
850 sources = [
851 "test/mock_video_bitrate_allocator.h",
852 ]
853
854 deps = [
855 "../api/video:video_bitrate_allocator",
856 "../test:test_support",
857 ]
858 }
859
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800860 rtc_source_set("mock_video_bitrate_allocator_factory") {
861 testonly = true
862 sources = [
863 "test/mock_video_bitrate_allocator_factory.h",
864 ]
865
866 deps = [
867 "../api/video:video_bitrate_allocator_factory",
868 "../test:test_support",
869 ]
870 }
871
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700872 rtc_source_set("mock_video_codec_factory") {
873 testonly = true
874 sources = [
875 "test/mock_video_decoder_factory.h",
876 "test/mock_video_encoder_factory.h",
877 ]
878
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700879 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100880 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700881 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700882 ]
883 }
884
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200885 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200886 visibility = [ "*" ]
887
888 testonly = true
889 sources = [
890 "test/mock_video_decoder.cc",
891 "test/mock_video_decoder.h",
892 ]
893
894 deps = [
895 "../api/video_codecs:video_codecs_api",
896 "../test:test_support",
897 ]
898 }
899
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200900 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200901 visibility = [ "*" ]
902
Erik Språng6af1c922018-10-12 10:01:30 +0200903 testonly = true
904 sources = [
905 "test/mock_video_encoder.cc",
906 "test/mock_video_encoder.h",
907 ]
908
909 deps = [
910 "../api/video_codecs:video_codecs_api",
911 "../test:test_support",
912 ]
913 }
914
Anton Sukhanov7940da02018-10-10 10:34:49 -0700915 rtc_source_set("fake_media_transport") {
916 testonly = true
917
918 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700919 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700920 "test/fake_media_transport.h",
921 ]
922
923 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700924 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200925 "transport:datagram_transport_interface",
926 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700927 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700928 ]
929 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200930
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200931 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200932 testonly = true
933
934 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100935 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200936 "test/loopback_media_transport.h",
937 ]
938
939 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100940 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200941 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200942 "transport:datagram_transport_interface",
943 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700944 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200945 ]
946 }
947
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200948 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200949 testonly = true
950
951 sources = [
952 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100953 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800954 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200955 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200956 "rtp_packet_info_unittest.cc",
957 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800958 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100959 "scoped_refptr_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200960 "test/loopback_media_transport_unittest.cc",
961 ]
962
Niels Möller2e47f7c2018-10-16 10:41:42 +0200963 deps = [
964 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100965 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200966 ":libjingle_peerconnection_api",
967 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200968 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200969 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200970 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200971 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100972 ":scoped_refptr",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200973 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100974 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200975 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200976 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200977 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100978 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200979 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200980 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200981 ]
982 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100983
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200984 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100985 testonly = true
986
987 sources = [
988 "test/compile_all_headers.cc",
989 ]
990
991 deps = [
992 ":fake_frame_decryptor",
993 ":fake_frame_encryptor",
994 ":fake_media_transport",
995 ":loopback_media_transport",
996 ":mock_audio_mixer",
997 ":mock_frame_decryptor",
998 ":mock_frame_encryptor",
999 ":mock_peerconnectioninterface",
1000 ":mock_rtp",
1001 ":mock_video_bitrate_allocator",
1002 ":mock_video_bitrate_allocator_factory",
1003 ":mock_video_codec_factory",
1004 ":mock_video_decoder",
1005 ":mock_video_encoder",
1006 ":rtc_api_unittests",
1007 "units:units_unittests",
1008 ]
1009 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001010}