blob: d5c8229a5aaff36363c2be2d50b4e15855d3eddc [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",
91 "../rtc_base:rtc_base_approved",
Johannes Kron0809e7e2020-01-21 11:54:21 +010092 "../rtc_base/system:rtc_export",
Chen Xingd2a66862019-06-03 14:53:42 +020093 "//third_party/abseil-cpp/absl/types:optional",
94 ]
95}
96
Mirko Bonadei86d053c2019-10-17 21:32:04 +020097rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +020098 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +020099 sources = [
100 "media_stream_interface.cc",
101 "media_stream_interface.h",
102 "notifier.h",
103 ]
104 deps = [
105 ":audio_options_api",
106 ":rtp_parameters",
107 ":scoped_refptr",
108 "../modules/audio_processing:audio_processing_statistics",
109 "../rtc_base:checks",
110 "../rtc_base:refcount",
111 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100112 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200113 "video:video_frame",
114 "//third_party/abseil-cpp/absl/types:optional",
115 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200116}
117
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200118rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000119 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700120 cflags = []
121 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700122 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200123 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800124 "crypto_params.h",
125 "data_channel_interface.cc",
126 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200127 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800128 "dtls_transport_interface.h",
129 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100130 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800131 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700132 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800133 "jsep_ice_candidate.cc",
134 "jsep_ice_candidate.h",
135 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800136 "media_stream_proxy.h",
137 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800138 "peer_connection_factory_proxy.h",
139 "peer_connection_interface.cc",
140 "peer_connection_interface.h",
141 "peer_connection_proxy.h",
Guido Urdanetaccab06f2020-01-15 11:30:29 +0000142 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700143 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800144 "rtp_receiver_interface.cc",
145 "rtp_receiver_interface.h",
146 "rtp_sender_interface.cc",
147 "rtp_sender_interface.h",
148 "rtp_transceiver_interface.cc",
149 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100150 "sctp_transport_interface.cc",
151 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800152 "set_remote_description_observer_interface.h",
153 "stats_types.cc",
154 "stats_types.h",
155 "turn_customizer.h",
156 "uma_metrics.h",
157 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700158 ]
kjellanderc76dc952016-06-03 03:09:32 -0700159 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100160 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100161 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100162 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100163 ":fec_controller_api",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100164 ":frame_transformer_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100165 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200166 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200167 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200168 ":packet_socket_factory",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200169 ":priority",
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",
Markus Handell0357b3e2020-03-16 13:40:51 +0100174 ":rtp_transceiver_direction",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100175 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100176 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100177 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200178 "crypto:frame_decryptor_interface",
179 "crypto:frame_encryptor_interface",
180 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100181 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200182 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200183 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200184 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200185 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700186 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200187 "transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +0100188 "transport:webrtc_key_value_config",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100189 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200190 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100191 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200192 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800193 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700194 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200195 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200196 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200197 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800198 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700199 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800200 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200201 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100202
203 # Basically, don't add stuff here. You might break sensitive downstream
204 # targets like pnacl. API should not depend on anything outside of this
205 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700206 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200207 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100208 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100209 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100210 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100211 "../rtc_base:checks",
212 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700213 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200214 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700215 ]
ossu7bb87ee2017-01-23 04:56:25 -0800216}
kjellanderc76dc952016-06-03 03:09:32 -0700217
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100218rtc_source_set("frame_transformer_interface") {
219 visibility = [ "*" ]
220 sources = [ "frame_transformer_interface.h" ]
221 deps = [
222 ":scoped_refptr",
223 "../rtc_base:refcount",
224 "video:encoded_frame",
Marina Cioceacdc89b42020-05-14 20:01:02 +0200225 "video:video_frame_metadata",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100226 ]
227}
228
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200229rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200230 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200231 sources = [
232 "rtc_error.cc",
233 "rtc_error.h",
234 ]
235 deps = [
236 "../rtc_base:checks",
237 "../rtc_base:logging",
238 "../rtc_base:macromagic",
239 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100240 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200241 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200242}
243
Patrik Höglund662e31f2019-09-05 14:35:04 +0200244rtc_source_set("packet_socket_factory") {
245 visibility = [ "*" ]
246 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200247 "async_resolver_factory.h",
248 "packet_socket_factory.h",
249 ]
250 deps = [
251 "../rtc_base:rtc_base",
252 "../rtc_base/system:rtc_export",
253 ]
254}
255
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100256rtc_source_set("scoped_refptr") {
257 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100258 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100259}
260
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200261rtc_source_set("video_quality_test_fixture_api") {
262 visibility = [ "*" ]
263 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100264 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200265 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200266 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200267 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200268 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200269 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200270 ":simulated_network_api",
271 "../call:fake_network",
272 "../call:rtp_interfaces",
273 "../test:test_common",
274 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200275 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200276 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200277 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200278 "video_codecs:video_codecs_api",
279 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200280}
281
Artem Titovd57628f2019-03-22 12:34:25 +0100282rtc_source_set("video_quality_analyzer_api") {
283 visibility = [ "*" ]
284 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100285 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100286
287 deps = [
288 ":stats_observer_interface",
289 "video:encoded_image",
290 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200291 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100292 "video_codecs:video_codecs_api",
Artem Titov8a0284e2020-05-29 15:49:44 +0200293 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100294 "//third_party/abseil-cpp/absl/types:optional",
295 ]
296}
297
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200298rtc_source_set("track_id_stream_label_map") {
299 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100300 sources = [ "test/track_id_stream_label_map.h" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200301}
302
Markus Handell0357b3e2020-03-16 13:40:51 +0100303rtc_source_set("rtp_transceiver_direction") {
304 visibility = [ "*" ]
305 sources = [ "rtp_transceiver_direction.h" ]
306}
307
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200308rtc_source_set("priority") {
309 sources = [ "priority.h" ]
310}
311
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200312rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200313 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200314 sources = [
315 "media_types.cc",
316 "media_types.h",
317 "rtp_parameters.cc",
318 "rtp_parameters.h",
319 ]
320 deps = [
321 ":array_view",
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200322 ":priority",
Markus Handell0357b3e2020-03-16 13:40:51 +0100323 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200324 "../rtc_base:checks",
325 "../rtc_base:stringutils",
326 "../rtc_base/system:rtc_export",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100327 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200328 "//third_party/abseil-cpp/absl/types:optional",
329 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200330}
331
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000332if (is_android) {
Harald Alvestrandfd5ae7f2020-05-16 08:37:49 +0200333 java_cpp_enum("priority_enums") {
334 sources = [ "priority.h" ]
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000335 }
336}
337
Artem Titovd57628f2019-03-22 12:34:25 +0100338rtc_source_set("audio_quality_analyzer_api") {
339 visibility = [ "*" ]
340 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100341 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100342
343 deps = [
344 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200345 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100346 ]
347}
348
349rtc_source_set("stats_observer_interface") {
350 visibility = [ "*" ]
351 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100352 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100353
354 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200355 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100356 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200357 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100358 ]
359}
360
361rtc_source_set("peer_connection_quality_test_fixture_api") {
362 visibility = [ "*" ]
363 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100364 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100365
366 deps = [
367 ":audio_quality_analyzer_api",
368 ":callfactory_api",
369 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100370 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100371 ":function_view",
372 ":libjingle_peerconnection_api",
Andrey Logvin435fb9a2020-05-08 08:02:49 +0000373 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200374 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200375 ":packet_socket_factory",
Artem Titovf9ed56b2020-05-11 21:17:25 +0200376 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100377 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200378 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100379 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200380 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100381 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200382 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200383 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100384 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200385 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100386 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100387 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100388 "video_codecs:video_codecs_api",
389 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100390 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100391 "//third_party/abseil-cpp/absl/types:optional",
392 ]
393}
394
Artem Titov503d7232019-12-04 12:37:13 +0100395rtc_source_set("frame_generator_api") {
396 visibility = [ "*" ]
397 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100398 sources = [ "test/frame_generator_interface.h" ]
Artem Titov503d7232019-12-04 12:37:13 +0100399
400 deps = [
401 ":scoped_refptr",
402 "video:video_frame",
403 "//third_party/abseil-cpp/absl/types:optional",
404 ]
405}
406
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200407rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/test_dependency_factory.cc",
412 "test/test_dependency_factory.h",
413 ]
414 deps = [
415 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100416 "../rtc_base:checks",
Tommi9b7232a2020-05-15 10:09:27 +0200417 "../rtc_base:platform_thread_types",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200418 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200419}
420
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200421if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200422 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200423 visibility = [ "*" ]
424 testonly = true
425 sources = [
426 "test/create_video_quality_test_fixture.cc",
427 "test/create_video_quality_test_fixture.h",
428 ]
429 deps = [
430 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200431 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100432 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200433 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200434 "../video:video_quality_test",
435 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200436 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100437
Sebastian Janssoncec24332019-12-04 14:26:50 +0100438 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200439 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100440 visibility = [ "*" ]
441 testonly = true
442 sources = [
443 "test/create_network_emulation_manager.cc",
444 "test/create_network_emulation_manager.h",
445 ]
446 deps = [
447 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200448 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100449 ]
450 }
Artem Titovd57628f2019-03-22 12:34:25 +0100451
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200452 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100453 visibility = [ "*" ]
454 testonly = true
455 sources = [
456 "test/create_peerconnection_quality_test_fixture.cc",
457 "test/create_peerconnection_quality_test_fixture.h",
458 ]
459
460 deps = [
461 ":audio_quality_analyzer_api",
462 ":peer_connection_quality_test_fixture_api",
463 ":video_quality_analyzer_api",
464 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100465 ]
466 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100467}
Artem Titov503d7232019-12-04 12:37:13 +0100468
Artem Titov33f9d2b2019-12-05 15:59:00 +0100469rtc_library("create_frame_generator") {
470 visibility = [ "*" ]
471 testonly = true
472 sources = [
473 "test/create_frame_generator.cc",
474 "test/create_frame_generator.h",
475 ]
476 deps = [
477 ":frame_generator_api",
478 "../rtc_base:checks",
479 "../system_wrappers",
480 "../test:frame_generator_impl",
481 "//third_party/abseil-cpp/absl/types:optional",
482 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200483}
484
Andrey Logvindad6a942020-05-04 17:27:09 +0000485rtc_library("create_peer_connection_quality_test_frame_generator") {
486 visibility = [ "*" ]
487 testonly = true
488 sources = [
489 "test/create_peer_connection_quality_test_frame_generator.cc",
490 "test/create_peer_connection_quality_test_frame_generator.h",
491 ]
492 deps = [
493 ":create_frame_generator",
494 ":frame_generator_api",
495 ":peer_connection_quality_test_fixture_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000496 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000497 "../test:fileutils",
498 "//third_party/abseil-cpp/absl/types:optional",
499 ]
500}
501
Elad Alon80810732017-10-06 13:07:32 +0200502rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000503 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100504 sources = [ "rtc_event_log_output.h" ]
Elad Alon80810732017-10-06 13:07:32 +0200505}
506
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200507rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200508 visibility = [ "*" ]
509 sources = [
510 "rtc_event_log_output_file.cc",
511 "rtc_event_log_output_file.h",
512 ]
513
514 deps = [
515 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200516 "../rtc_base:checks",
517 "../rtc_base:rtc_base_approved",
518 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200519 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200520 ]
521}
522
hbos74e1a4f2016-09-15 23:33:01 -0700523rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000524 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700525 cflags = []
526 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800527 "stats/rtc_stats.h",
528 "stats/rtc_stats_collector_callback.h",
529 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700530 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700531 ]
532
533 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100534 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100535 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700536 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200537 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700538 ]
539}
540
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200541rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100542 visibility = [ "*" ]
543 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200544 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100545 "audio_options.h",
546 ]
547
548 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100549 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200550 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800551 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200552 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100553 ]
554}
555
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200556rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000557 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800558 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100559 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800560 "call/transport.h",
561 ]
562}
nisseb2250e52016-12-02 04:01:14 -0800563
Sebastian Jansson6736df12018-11-21 19:18:39 +0100564rtc_source_set("bitrate_allocation") {
565 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100566 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100567 deps = [
568 "units:data_rate",
569 "units:time_delta",
570 ]
571}
572
Sebastian Janssoncec24332019-12-04 14:26:50 +0100573# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200574rtc_source_set("simulated_network_api") {
575 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100576 sources = [ "test/simulated_network.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200577 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100578 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200579 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200580 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200581 ]
582}
583
Sebastian Janssoncec24332019-12-04 14:26:50 +0100584# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100585rtc_source_set("network_emulation_manager_api") {
586 visibility = [ "*" ]
587 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100588 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100589 "test/network_emulation_manager.h",
590 ]
591 deps = [
592 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100593 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100594 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100595 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100596 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200597 "units:data_rate",
598 "units:data_size",
599 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100600 ]
601}
602
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100603rtc_source_set("time_controller") {
604 visibility = [ "*" ]
605 sources = [
606 "test/time_controller.cc",
607 "test/time_controller.h",
608 ]
609
610 deps = [
611 "../modules/utility",
612 "../rtc_base",
613 "../rtc_base/synchronization:yield_policy",
614 "../system_wrappers",
615 "task_queue",
616 "units:time_delta",
617 "units:timestamp",
618 ]
619}
620
Ying Wang3b790f32018-01-19 17:58:57 +0100621rtc_source_set("fec_controller_api") {
622 visibility = [ "*" ]
623 sources = [
624 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200625 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100626 ]
627
628 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100629 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100630 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100631 ]
632}
633
Ying Wang0810a7c2019-04-10 13:48:24 +0200634rtc_source_set("network_state_predictor_api") {
635 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100636 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200637}
638
kwiberg529662a2017-09-04 05:43:17 -0700639rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000640 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100641 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700642 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100643 "../rtc_base:checks",
644 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700645 ]
646}
647
Niels Möller9155e492017-10-23 11:22:30 +0200648rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000649 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100650 sources = [ "ref_counted_base.h" ]
651 deps = [ "../rtc_base:rtc_base_approved" ]
Niels Möller9155e492017-10-23 11:22:30 +0200652}
653
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200654rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100655 visibility = [ "*" ]
656 sources = [
657 "ice_transport_factory.cc",
658 "ice_transport_factory.h",
659 ]
660 deps = [
661 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200662 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100663 ":scoped_refptr",
664 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100665 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200666 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700667 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100668 ]
669}
670
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200671rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200672 visibility = [ "*" ]
673 sources = [
674 "test/neteq_simulator.cc",
675 "test/neteq_simulator.h",
676 ]
677}
678
Artem Titov741daaf2019-03-21 14:37:36 +0100679rtc_source_set("function_view") {
680 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100681 sources = [ "function_view.h" ]
682 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100683}
684
kjellanderfd5b4e92016-06-13 12:08:33 -0700685if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100686 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200687 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100688 visibility = [ "*" ]
689 testonly = true
690 sources = [
691 "test/audioproc_float.cc",
692 "test/audioproc_float.h",
693 ]
694
695 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100696 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000697 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100698 "../modules/audio_processing:audioproc_f_impl",
699 ]
700 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200701
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200702 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200703 visibility = [ "*" ]
704 testonly = true
705 sources = [
706 "test/neteq_simulator_factory.cc",
707 "test/neteq_simulator_factory.h",
708 ]
709 deps = [
710 ":neteq_simulator_api",
711 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200712 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100713 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200714 "//third_party/abseil-cpp/absl/flags:flag",
715 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100716 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100717 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200718 ]
719 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100720 }
721
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200722 rtc_source_set("simulcast_test_fixture_api") {
723 visibility = [ "*" ]
724 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100725 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200726 }
727
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200728 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200729 visibility = [ "*" ]
730 testonly = true
731 sources = [
732 "test/create_simulcast_test_fixture.cc",
733 "test/create_simulcast_test_fixture.h",
734 ]
735 deps = [
736 ":simulcast_test_fixture_api",
737 "../modules/video_coding:simulcast_test_fixture_impl",
738 "../rtc_base:rtc_base_approved",
739 "video_codecs:video_codecs_api",
740 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200741 }
742
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200743 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200744 visibility = [ "*" ]
745 testonly = true
746 sources = [
747 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200748 "test/videocodec_test_stats.cc",
749 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200750 ]
751 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200752 "..:webrtc_common",
753 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200754 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100755 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200756 "video_codecs:video_codecs_api",
757 ]
758 }
759
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200760 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200761 visibility = [ "*" ]
762 testonly = true
763 sources = [
764 "test/create_videocodec_test_fixture.cc",
765 "test/create_videocodec_test_fixture.h",
766 ]
767 deps = [
768 ":videocodec_test_fixture_api",
769 "../modules/video_coding:video_codecs_test_framework",
770 "../modules/video_coding:videocodec_test_impl",
771 "../rtc_base:rtc_base_approved",
772 "video_codecs:video_codecs_api",
773 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200774 }
775
kjellander2f6af9c2017-03-02 22:26:23 -0800776 rtc_source_set("mock_audio_mixer") {
777 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100778 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800779
kjellander2f6af9c2017-03-02 22:26:23 -0800780 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700781 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100782 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800783 ]
784 }
785
Elad Alon45befc52019-07-02 11:20:09 +0200786 rtc_source_set("mock_fec_controller_override") {
787 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100788 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +0200789 deps = [
790 ":fec_controller_api",
791 "../test:test_support",
792 ]
793 }
794
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200795 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700796 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +0200797 sources = [ "test/mock_frame_encryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -0700798 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200799 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700800 ":libjingle_peerconnection_api",
801 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200802 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700803 ]
804 }
805
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200806 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700807 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +0200808 sources = [ "test/mock_frame_decryptor.h" ]
Benjamin Wright78410ad2018-10-25 09:52:57 -0700809 deps = [
810 ":libjingle_peerconnection_api",
811 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200812 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700813 ]
814 }
815
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200816 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700817 testonly = true
818 sources = [
819 "test/fake_frame_encryptor.cc",
820 "test/fake_frame_encryptor.h",
821 ]
822 deps = [
823 ":array_view",
824 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200825 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700826 "..:webrtc_common",
827 "../rtc_base:checks",
828 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200829 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700830 ]
831 }
832
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200833 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700834 testonly = true
835 sources = [
836 "test/fake_frame_decryptor.cc",
837 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700838 ]
839 deps = [
840 ":array_view",
841 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200842 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700843 "..:webrtc_common",
844 "../rtc_base:checks",
845 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200846 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700847 ]
848 }
849
Niels Möllere78fd802019-09-13 14:45:55 +0200850 rtc_source_set("dummy_peer_connection") {
851 visibility = [ "*" ]
852 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100853 sources = [ "test/dummy_peer_connection.h" ]
Niels Möllere78fd802019-09-13 14:45:55 +0200854
855 deps = [
856 ":libjingle_peerconnection_api",
857 ":rtc_error",
858 "../rtc_base:checks",
859 "../rtc_base:refcount",
860 ]
861 }
862
Jiawei Ou651b92e2018-06-29 15:46:44 -0700863 rtc_source_set("mock_peerconnectioninterface") {
864 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100865 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -0700866
867 deps = [
868 ":libjingle_peerconnection_api",
869 "../test:test_support",
870 ]
871 }
872
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100873 rtc_source_set("mock_rtp") {
874 testonly = true
875 sources = [
876 "test/mock_rtpreceiver.h",
877 "test/mock_rtpsender.h",
878 ]
879
880 deps = [
881 ":libjingle_peerconnection_api",
882 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100883 ]
884 }
885
Marina Cioceabb13f382020-05-15 08:24:17 +0200886 rtc_source_set("mock_transformable_video_frame") {
887 testonly = true
888 sources = [ "test/mock_transformable_video_frame.h" ]
889
890 deps = [
891 ":frame_transformer_interface",
892 "../test:test_support",
893 ]
894 }
895
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700896 rtc_source_set("mock_video_bitrate_allocator") {
897 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100898 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700899
900 deps = [
901 "../api/video:video_bitrate_allocator",
902 "../test:test_support",
903 ]
904 }
905
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800906 rtc_source_set("mock_video_bitrate_allocator_factory") {
907 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100908 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800909
910 deps = [
911 "../api/video:video_bitrate_allocator_factory",
912 "../test:test_support",
913 ]
914 }
915
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700916 rtc_source_set("mock_video_codec_factory") {
917 testonly = true
918 sources = [
919 "test/mock_video_decoder_factory.h",
920 "test/mock_video_encoder_factory.h",
921 ]
922
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700923 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100924 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700925 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700926 ]
927 }
928
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200929 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200930 visibility = [ "*" ]
931
932 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +0200933 sources = [ "test/mock_video_decoder.h" ]
Erik Språngc84cd952018-10-15 11:55:13 +0200934
935 deps = [
936 "../api/video_codecs:video_codecs_api",
937 "../test:test_support",
938 ]
939 }
940
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200941 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200942 visibility = [ "*" ]
943
Erik Språng6af1c922018-10-12 10:01:30 +0200944 testonly = true
Danil Chapovalovfc115192020-05-08 15:03:03 +0200945 sources = [ "test/mock_video_encoder.h" ]
Erik Språng6af1c922018-10-12 10:01:30 +0200946
947 deps = [
948 "../api/video_codecs:video_codecs_api",
949 "../test:test_support",
950 ]
951 }
952
Anton Sukhanov7940da02018-10-10 10:34:49 -0700953 rtc_source_set("fake_media_transport") {
954 testonly = true
955
956 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700957 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700958 "test/fake_media_transport.h",
959 ]
960
961 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700962 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200963 "transport:datagram_transport_interface",
964 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700965 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700966 ]
967 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200968
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200969 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200970 testonly = true
971
972 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100973 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200974 "test/loopback_media_transport.h",
975 ]
976
977 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100978 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200979 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200980 "transport:datagram_transport_interface",
981 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700982 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200983 ]
984 }
985
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800986 rtc_library("create_time_controller") {
987 visibility = [ "*" ]
988 testonly = true
989 sources = [
990 "test/create_time_controller.cc",
991 "test/create_time_controller.h",
992 ]
993
994 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100995 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800996 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +0100997 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100998 "../call:call_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800999 "../test/time_controller",
1000 ]
1001 }
1002
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001003 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +02001004 testonly = true
1005
1006 sources = [
1007 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001008 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001009 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001010 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001011 "rtp_packet_info_unittest.cc",
1012 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001013 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001014 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001015 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001016 "test/loopback_media_transport_unittest.cc",
1017 ]
1018
Niels Möller2e47f7c2018-10-16 10:41:42 +02001019 deps = [
1020 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001021 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +01001022 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001023 ":libjingle_peerconnection_api",
1024 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001025 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001026 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001027 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001028 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001029 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001030 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001031 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001032 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001033 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001034 "../rtc_base:rtc_task_queue",
1035 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001036 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001037 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001038 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001039 "units:time_delta",
1040 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001041 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001042 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001043 ]
1044 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001045
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001046 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001047 testonly = true
1048
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001049 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001050
1051 deps = [
Harald Alvestrand61f74d92020-03-02 11:20:00 +01001052 ":dummy_peer_connection",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001053 ":fake_frame_decryptor",
1054 ":fake_frame_encryptor",
1055 ":fake_media_transport",
1056 ":loopback_media_transport",
1057 ":mock_audio_mixer",
1058 ":mock_frame_decryptor",
1059 ":mock_frame_encryptor",
1060 ":mock_peerconnectioninterface",
1061 ":mock_rtp",
Marina Cioceabb13f382020-05-15 08:24:17 +02001062 ":mock_transformable_video_frame",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001063 ":mock_video_bitrate_allocator",
1064 ":mock_video_bitrate_allocator_factory",
1065 ":mock_video_codec_factory",
1066 ":mock_video_decoder",
1067 ":mock_video_encoder",
1068 ":rtc_api_unittests",
1069 "units:units_unittests",
1070 ]
1071 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001072}