blob: b48247ce0fbb428c84594d6359ff28bb6e32b731 [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 = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010026 sources = [ "call/audio_sink.h" ]
kjellandera69d9732016-08-31 07:33:05 -070027}
28
Niels Möller8366e172018-02-14 12:20:13 +010029rtc_source_set("callfactory_api") {
30 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010031 sources = [ "call/call_factory_interface.h" ]
32 deps = [ "../rtc_base/system:rtc_export" ]
Niels Möller8366e172018-02-14 12:20:13 +010033}
34
Danil Chapovalov5bf58062019-06-18 16:43:37 +020035if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020036 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020037 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020038 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020039 sources = [
40 "create_peerconnection_factory.cc",
41 "create_peerconnection_factory.h",
42 ]
43 deps = [
44 ":callfactory_api",
45 ":libjingle_peerconnection_api",
46 ":scoped_refptr",
47 "../api/rtc_event_log:rtc_event_log_factory",
48 "../media:rtc_audio_video",
49 "../media:rtc_media_base",
50 "../modules/audio_device:audio_device_api",
51 "../modules/audio_processing:api",
52 "../pc:peerconnection",
53 "../rtc_base",
54 "../rtc_base:rtc_base_approved",
55 "audio:audio_mixer_api",
56 "audio_codecs:audio_codecs_api",
57 "task_queue:default_task_queue_factory",
58 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020059 ]
60 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010061}
62
Mirko Bonadei86d053c2019-10-17 21:32:04 +020063rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 14:27:03 +010064 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010065 sources = [
66 "rtp_headers.cc",
67 "rtp_headers.h",
68 ]
69 deps = [
70 ":array_view",
71 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020072 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020073 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010074 "//third_party/abseil-cpp/absl/types:optional",
75 ]
Niels Möllerb8389522019-03-19 14:27:03 +010076}
77
Mirko Bonadei86d053c2019-10-17 21:32:04 +020078rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020079 visibility = [ "*" ]
80 sources = [
81 "rtp_packet_info.cc",
82 "rtp_packet_info.h",
83 "rtp_packet_infos.h",
84 ]
85 deps = [
86 ":array_view",
87 ":refcountedbase",
88 ":rtp_headers",
89 ":scoped_refptr",
90 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020091 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020092 "../rtc_base:rtc_base_approved",
Johannes Kron0809e7e2020-01-21 11:54:21 +010093 "../rtc_base/system:rtc_export",
Chen Xingd2a66862019-06-03 14:53:42 +020094 "//third_party/abseil-cpp/absl/types:optional",
95 ]
96}
97
Mirko Bonadei86d053c2019-10-17 21:32:04 +020098rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +020099 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200100 sources = [
101 "media_stream_interface.cc",
102 "media_stream_interface.h",
103 "notifier.h",
104 ]
105 deps = [
106 ":audio_options_api",
107 ":rtp_parameters",
108 ":scoped_refptr",
109 "../modules/audio_processing:audio_processing_statistics",
110 "../rtc_base:checks",
111 "../rtc_base:refcount",
112 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100113 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200114 "video:video_frame",
115 "//third_party/abseil-cpp/absl/types:optional",
116 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200117}
118
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200119rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000120 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700121 cflags = []
122 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700123 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200124 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "crypto_params.h",
126 "data_channel_interface.cc",
127 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200128 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "dtls_transport_interface.h",
130 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100131 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800132 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700133 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "jsep_ice_candidate.cc",
135 "jsep_ice_candidate.h",
136 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800137 "media_stream_proxy.h",
138 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "peer_connection_factory_proxy.h",
140 "peer_connection_interface.cc",
141 "peer_connection_interface.h",
142 "peer_connection_proxy.h",
Guido Urdanetaccab06f2020-01-15 11:30:29 +0000143 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700144 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "rtp_receiver_interface.cc",
146 "rtp_receiver_interface.h",
147 "rtp_sender_interface.cc",
148 "rtp_sender_interface.h",
149 "rtp_transceiver_interface.cc",
150 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100151 "sctp_transport_interface.cc",
152 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800153 "set_remote_description_observer_interface.h",
154 "stats_types.cc",
155 "stats_types.h",
156 "turn_customizer.h",
157 "uma_metrics.h",
158 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700159 ]
kjellanderc76dc952016-06-03 03:09:32 -0700160 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100161 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100162 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100163 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100164 ":fec_controller_api",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100165 ":frame_transformer_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100166 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200167 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200168 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200169 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200170 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700171 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200172 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200173 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100174 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100175 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100176 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200177 "crypto:frame_decryptor_interface",
178 "crypto:frame_encryptor_interface",
179 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100180 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200181 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200182 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200183 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200184 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700185 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200186 "transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +0100187 "transport:webrtc_key_value_config",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100188 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200189 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100190 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200191 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800192 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700193 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200194 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200195 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200196 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800197 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700198 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800199 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200200 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100201
202 # Basically, don't add stuff here. You might break sensitive downstream
203 # targets like pnacl. API should not depend on anything outside of this
204 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700205 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200206 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100207 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100208 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100209 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100210 "../rtc_base:checks",
211 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700212 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200213 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700214 ]
ossu7bb87ee2017-01-23 04:56:25 -0800215}
kjellanderc76dc952016-06-03 03:09:32 -0700216
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100217rtc_source_set("frame_transformer_interface") {
218 visibility = [ "*" ]
219 sources = [ "frame_transformer_interface.h" ]
220 deps = [
221 ":scoped_refptr",
222 "../rtc_base:refcount",
223 "video:encoded_frame",
224 ]
225}
226
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200227rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200228 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200229 sources = [
230 "rtc_error.cc",
231 "rtc_error.h",
232 ]
233 deps = [
234 "../rtc_base:checks",
235 "../rtc_base:logging",
236 "../rtc_base:macromagic",
237 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100238 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200239 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200240}
241
Patrik Höglund662e31f2019-09-05 14:35:04 +0200242rtc_source_set("packet_socket_factory") {
243 visibility = [ "*" ]
244 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200245 "async_resolver_factory.h",
246 "packet_socket_factory.h",
247 ]
248 deps = [
249 "../rtc_base:rtc_base",
250 "../rtc_base/system:rtc_export",
251 ]
252}
253
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100254rtc_source_set("scoped_refptr") {
255 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100256 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100257}
258
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200259rtc_source_set("video_quality_test_fixture_api") {
260 visibility = [ "*" ]
261 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100262 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200263 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200264 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200265 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200266 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200267 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200268 ":simulated_network_api",
269 "../call:fake_network",
270 "../call:rtp_interfaces",
271 "../test:test_common",
272 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200273 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200274 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200275 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200276 "video_codecs:video_codecs_api",
277 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200278}
279
Artem Titovd57628f2019-03-22 12:34:25 +0100280rtc_source_set("video_quality_analyzer_api") {
281 visibility = [ "*" ]
282 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100283 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100284
285 deps = [
286 ":stats_observer_interface",
287 "video:encoded_image",
288 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200289 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100290 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100291 "//third_party/abseil-cpp/absl/types:optional",
292 ]
293}
294
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200295rtc_source_set("track_id_stream_label_map") {
296 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100297 sources = [ "test/track_id_stream_label_map.h" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200298}
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
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100320 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100321
322 deps = [
323 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200324 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100325 ]
326}
327
328rtc_source_set("stats_observer_interface") {
329 visibility = [ "*" ]
330 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100331 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100332
333 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200334 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100335 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200336 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100337 ]
338}
339
340rtc_source_set("peer_connection_quality_test_fixture_api") {
341 visibility = [ "*" ]
342 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100343 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100344
345 deps = [
346 ":audio_quality_analyzer_api",
347 ":callfactory_api",
348 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100349 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100350 ":function_view",
351 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200352 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200353 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100354 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200355 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100356 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200357 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100358 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200359 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200360 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100361 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200362 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100363 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100364 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100365 "video_codecs:video_codecs_api",
366 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100367 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100368 "//third_party/abseil-cpp/absl/types:optional",
369 ]
370}
371
Artem Titov503d7232019-12-04 12:37:13 +0100372rtc_source_set("frame_generator_api") {
373 visibility = [ "*" ]
374 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100375 sources = [ "test/frame_generator_interface.h" ]
Artem Titov503d7232019-12-04 12:37:13 +0100376
377 deps = [
378 ":scoped_refptr",
379 "video:video_frame",
380 "//third_party/abseil-cpp/absl/types:optional",
381 ]
382}
383
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200384rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200385 visibility = [ "*" ]
386 testonly = true
387 sources = [
388 "test/test_dependency_factory.cc",
389 "test/test_dependency_factory.h",
390 ]
391 deps = [
392 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100393 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200394 "../rtc_base:thread_checker",
395 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200396}
397
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200398if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200399 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200400 visibility = [ "*" ]
401 testonly = true
402 sources = [
403 "test/create_video_quality_test_fixture.cc",
404 "test/create_video_quality_test_fixture.h",
405 ]
406 deps = [
407 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200408 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100409 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200410 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200411 "../video:video_quality_test",
412 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200413 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100414
Sebastian Janssoncec24332019-12-04 14:26:50 +0100415 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200416 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100417 visibility = [ "*" ]
418 testonly = true
419 sources = [
420 "test/create_network_emulation_manager.cc",
421 "test/create_network_emulation_manager.h",
422 ]
423 deps = [
424 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200425 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100426 ]
427 }
Artem Titovd57628f2019-03-22 12:34:25 +0100428
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200429 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100430 visibility = [ "*" ]
431 testonly = true
432 sources = [
433 "test/create_peerconnection_quality_test_fixture.cc",
434 "test/create_peerconnection_quality_test_fixture.h",
435 ]
436
437 deps = [
438 ":audio_quality_analyzer_api",
439 ":peer_connection_quality_test_fixture_api",
440 ":video_quality_analyzer_api",
441 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100442 ]
443 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100444}
Artem Titov503d7232019-12-04 12:37:13 +0100445
Artem Titov33f9d2b2019-12-05 15:59:00 +0100446rtc_library("create_frame_generator") {
447 visibility = [ "*" ]
448 testonly = true
449 sources = [
450 "test/create_frame_generator.cc",
451 "test/create_frame_generator.h",
452 ]
453 deps = [
454 ":frame_generator_api",
455 "../rtc_base:checks",
456 "../system_wrappers",
457 "../test:frame_generator_impl",
458 "//third_party/abseil-cpp/absl/types:optional",
459 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200460}
461
Elad Alon80810732017-10-06 13:07:32 +0200462rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000463 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100464 sources = [ "rtc_event_log_output.h" ]
Elad Alon80810732017-10-06 13:07:32 +0200465}
466
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200467rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200468 visibility = [ "*" ]
469 sources = [
470 "rtc_event_log_output_file.cc",
471 "rtc_event_log_output_file.h",
472 ]
473
474 deps = [
475 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200476 "../rtc_base:checks",
477 "../rtc_base:rtc_base_approved",
478 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200479 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200480 ]
481}
482
hbos74e1a4f2016-09-15 23:33:01 -0700483rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000484 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700485 cflags = []
486 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800487 "stats/rtc_stats.h",
488 "stats/rtc_stats_collector_callback.h",
489 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700490 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700491 ]
492
493 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100494 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100495 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700496 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200497 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700498 ]
499}
500
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200501rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100502 visibility = [ "*" ]
503 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200504 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100505 "audio_options.h",
506 ]
507
508 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100509 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200510 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800511 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200512 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100513 ]
514}
515
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200516rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000517 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800518 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100519 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800520 "call/transport.h",
521 ]
522}
nisseb2250e52016-12-02 04:01:14 -0800523
Sebastian Jansson6736df12018-11-21 19:18:39 +0100524rtc_source_set("bitrate_allocation") {
525 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100526 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100527 deps = [
528 "units:data_rate",
529 "units:time_delta",
530 ]
531}
532
Sebastian Janssoncec24332019-12-04 14:26:50 +0100533# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200534rtc_source_set("simulated_network_api") {
535 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100536 sources = [ "test/simulated_network.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200537 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100538 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200539 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200540 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200541 ]
542}
543
Sebastian Janssoncec24332019-12-04 14:26:50 +0100544# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100545rtc_source_set("network_emulation_manager_api") {
546 visibility = [ "*" ]
547 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100548 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100549 "test/network_emulation_manager.h",
550 ]
551 deps = [
552 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100553 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100554 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100555 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100556 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200557 "units:data_rate",
558 "units:data_size",
559 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100560 ]
561}
562
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100563rtc_source_set("time_controller") {
564 visibility = [ "*" ]
565 sources = [
566 "test/time_controller.cc",
567 "test/time_controller.h",
568 ]
569
570 deps = [
571 "../modules/utility",
572 "../rtc_base",
573 "../rtc_base/synchronization:yield_policy",
574 "../system_wrappers",
575 "task_queue",
576 "units:time_delta",
577 "units:timestamp",
578 ]
579}
580
Ying Wang3b790f32018-01-19 17:58:57 +0100581rtc_source_set("fec_controller_api") {
582 visibility = [ "*" ]
583 sources = [
584 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200585 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100586 ]
587
588 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100589 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100590 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100591 ]
592}
593
Ying Wang0810a7c2019-04-10 13:48:24 +0200594rtc_source_set("network_state_predictor_api") {
595 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100596 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200597}
598
kwiberg529662a2017-09-04 05:43:17 -0700599rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000600 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100601 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700602 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100603 "../rtc_base:checks",
604 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700605 ]
606}
607
Niels Möller9155e492017-10-23 11:22:30 +0200608rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000609 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100610 sources = [ "ref_counted_base.h" ]
611 deps = [ "../rtc_base:rtc_base_approved" ]
Niels Möller9155e492017-10-23 11:22:30 +0200612}
613
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200614rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100615 visibility = [ "*" ]
616 sources = [
617 "ice_transport_factory.cc",
618 "ice_transport_factory.h",
619 ]
620 deps = [
621 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200622 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100623 ":scoped_refptr",
624 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100625 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200626 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700627 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100628 ]
629}
630
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200631rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200632 visibility = [ "*" ]
633 sources = [
634 "test/neteq_simulator.cc",
635 "test/neteq_simulator.h",
636 ]
637}
638
Artem Titov741daaf2019-03-21 14:37:36 +0100639rtc_source_set("function_view") {
640 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100641 sources = [ "function_view.h" ]
642 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100643}
644
kjellanderfd5b4e92016-06-13 12:08:33 -0700645if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100646 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200647 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100648 visibility = [ "*" ]
649 testonly = true
650 sources = [
651 "test/audioproc_float.cc",
652 "test/audioproc_float.h",
653 ]
654
655 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100656 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000657 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100658 "../modules/audio_processing:audioproc_f_impl",
659 ]
660 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200661
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200662 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200663 visibility = [ "*" ]
664 testonly = true
665 sources = [
666 "test/neteq_simulator_factory.cc",
667 "test/neteq_simulator_factory.h",
668 ]
669 deps = [
670 ":neteq_simulator_api",
671 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200672 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100673 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200674 "//third_party/abseil-cpp/absl/flags:flag",
675 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100676 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200677 ]
678 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100679 }
680
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200681 rtc_source_set("simulcast_test_fixture_api") {
682 visibility = [ "*" ]
683 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100684 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200685 }
686
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200687 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200688 visibility = [ "*" ]
689 testonly = true
690 sources = [
691 "test/create_simulcast_test_fixture.cc",
692 "test/create_simulcast_test_fixture.h",
693 ]
694 deps = [
695 ":simulcast_test_fixture_api",
696 "../modules/video_coding:simulcast_test_fixture_impl",
697 "../rtc_base:rtc_base_approved",
698 "video_codecs:video_codecs_api",
699 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200700 }
701
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200702 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200703 visibility = [ "*" ]
704 testonly = true
705 sources = [
706 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200707 "test/videocodec_test_stats.cc",
708 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200709 ]
710 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200711 "..:webrtc_common",
712 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200713 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100714 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200715 "video_codecs:video_codecs_api",
716 ]
717 }
718
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200719 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200720 visibility = [ "*" ]
721 testonly = true
722 sources = [
723 "test/create_videocodec_test_fixture.cc",
724 "test/create_videocodec_test_fixture.h",
725 ]
726 deps = [
727 ":videocodec_test_fixture_api",
728 "../modules/video_coding:video_codecs_test_framework",
729 "../modules/video_coding:videocodec_test_impl",
730 "../rtc_base:rtc_base_approved",
731 "video_codecs:video_codecs_api",
732 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200733 }
734
kjellander2f6af9c2017-03-02 22:26:23 -0800735 rtc_source_set("mock_audio_mixer") {
736 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100737 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800738
kjellander2f6af9c2017-03-02 22:26:23 -0800739 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700740 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100741 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800742 ]
743 }
744
Elad Alon45befc52019-07-02 11:20:09 +0200745 rtc_source_set("mock_fec_controller_override") {
746 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100747 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +0200748 deps = [
749 ":fec_controller_api",
750 "../test:test_support",
751 ]
752 }
753
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200754 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700755 testonly = true
756 sources = [
757 "test/mock_frame_encryptor.cc",
758 "test/mock_frame_encryptor.h",
759 ]
760 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200761 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700762 ":libjingle_peerconnection_api",
763 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200764 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700765 ]
766 }
767
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200768 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700769 testonly = true
770 sources = [
771 "test/mock_frame_decryptor.cc",
772 "test/mock_frame_decryptor.h",
773 ]
774 deps = [
775 ":libjingle_peerconnection_api",
776 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200777 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700778 ]
779 }
780
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200781 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700782 testonly = true
783 sources = [
784 "test/fake_frame_encryptor.cc",
785 "test/fake_frame_encryptor.h",
786 ]
787 deps = [
788 ":array_view",
789 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200790 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700791 "..:webrtc_common",
792 "../rtc_base:checks",
793 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200794 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700795 ]
796 }
797
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200798 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700799 testonly = true
800 sources = [
801 "test/fake_frame_decryptor.cc",
802 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700803 ]
804 deps = [
805 ":array_view",
806 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200807 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700808 "..:webrtc_common",
809 "../rtc_base:checks",
810 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200811 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700812 ]
813 }
814
Niels Möllere78fd802019-09-13 14:45:55 +0200815 rtc_source_set("dummy_peer_connection") {
816 visibility = [ "*" ]
817 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100818 sources = [ "test/dummy_peer_connection.h" ]
Niels Möllere78fd802019-09-13 14:45:55 +0200819
820 deps = [
821 ":libjingle_peerconnection_api",
822 ":rtc_error",
823 "../rtc_base:checks",
824 "../rtc_base:refcount",
825 ]
826 }
827
Jiawei Ou651b92e2018-06-29 15:46:44 -0700828 rtc_source_set("mock_peerconnectioninterface") {
829 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100830 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -0700831
832 deps = [
833 ":libjingle_peerconnection_api",
834 "../test:test_support",
835 ]
836 }
837
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100838 rtc_source_set("mock_rtp") {
839 testonly = true
840 sources = [
841 "test/mock_rtpreceiver.h",
842 "test/mock_rtpsender.h",
843 ]
844
845 deps = [
846 ":libjingle_peerconnection_api",
847 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100848 ]
849 }
850
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700851 rtc_source_set("mock_video_bitrate_allocator") {
852 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100853 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700854
855 deps = [
856 "../api/video:video_bitrate_allocator",
857 "../test:test_support",
858 ]
859 }
860
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800861 rtc_source_set("mock_video_bitrate_allocator_factory") {
862 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100863 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800864
865 deps = [
866 "../api/video:video_bitrate_allocator_factory",
867 "../test:test_support",
868 ]
869 }
870
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700871 rtc_source_set("mock_video_codec_factory") {
872 testonly = true
873 sources = [
874 "test/mock_video_decoder_factory.h",
875 "test/mock_video_encoder_factory.h",
876 ]
877
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700878 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100879 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700880 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700881 ]
882 }
883
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200884 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200885 visibility = [ "*" ]
886
887 testonly = true
888 sources = [
889 "test/mock_video_decoder.cc",
890 "test/mock_video_decoder.h",
891 ]
892
893 deps = [
894 "../api/video_codecs:video_codecs_api",
895 "../test:test_support",
896 ]
897 }
898
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200899 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200900 visibility = [ "*" ]
901
Erik Språng6af1c922018-10-12 10:01:30 +0200902 testonly = true
903 sources = [
904 "test/mock_video_encoder.cc",
905 "test/mock_video_encoder.h",
906 ]
907
908 deps = [
909 "../api/video_codecs:video_codecs_api",
910 "../test:test_support",
911 ]
912 }
913
Anton Sukhanov7940da02018-10-10 10:34:49 -0700914 rtc_source_set("fake_media_transport") {
915 testonly = true
916
917 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700918 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700919 "test/fake_media_transport.h",
920 ]
921
922 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700923 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200924 "transport:datagram_transport_interface",
925 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700926 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700927 ]
928 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200929
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200930 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200931 testonly = true
932
933 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100934 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200935 "test/loopback_media_transport.h",
936 ]
937
938 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100939 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200940 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200941 "transport:datagram_transport_interface",
942 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700943 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200944 ]
945 }
946
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800947 rtc_library("create_time_controller") {
948 visibility = [ "*" ]
949 testonly = true
950 sources = [
951 "test/create_time_controller.cc",
952 "test/create_time_controller.h",
953 ]
954
955 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100956 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800957 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +0100958 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100959 "../call:call_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800960 "../test/time_controller",
961 ]
962 }
963
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200964 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200965 testonly = true
966
967 sources = [
968 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100969 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800970 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200971 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200972 "rtp_packet_info_unittest.cc",
973 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800974 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100975 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800976 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200977 "test/loopback_media_transport_unittest.cc",
978 ]
979
Niels Möller2e47f7c2018-10-16 10:41:42 +0200980 deps = [
981 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800982 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +0100983 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200984 ":libjingle_peerconnection_api",
985 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200986 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200987 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200988 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200989 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100990 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800991 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200992 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100993 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200994 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800995 "../rtc_base:rtc_task_queue",
996 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200997 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200998 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100999 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001000 "units:time_delta",
1001 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001002 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001003 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001004 ]
1005 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001006
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001007 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001008 testonly = true
1009
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001010 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001011
1012 deps = [
1013 ":fake_frame_decryptor",
1014 ":fake_frame_encryptor",
1015 ":fake_media_transport",
1016 ":loopback_media_transport",
1017 ":mock_audio_mixer",
1018 ":mock_frame_decryptor",
1019 ":mock_frame_encryptor",
1020 ":mock_peerconnectioninterface",
1021 ":mock_rtp",
1022 ":mock_video_bitrate_allocator",
1023 ":mock_video_bitrate_allocator_factory",
1024 ":mock_video_codec_factory",
1025 ":mock_video_decoder",
1026 ":mock_video_encoder",
1027 ":rtc_api_unittests",
1028 "units:units_unittests",
1029 ]
1030 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001031}