blob: 1316e76e19b0ceb6e151a2185501dd5814320e95 [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",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200169 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700170 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200171 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200172 ":rtp_parameters",
Markus Handell0357b3e2020-03-16 13:40:51 +0100173 ":rtp_transceiver_direction",
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
Markus Handell0357b3e2020-03-16 13:40:51 +0100300rtc_source_set("rtp_transceiver_direction") {
301 visibility = [ "*" ]
302 sources = [ "rtp_transceiver_direction.h" ]
303}
304
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200305rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200306 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200307 sources = [
308 "media_types.cc",
309 "media_types.h",
310 "rtp_parameters.cc",
311 "rtp_parameters.h",
312 ]
313 deps = [
314 ":array_view",
Markus Handell0357b3e2020-03-16 13:40:51 +0100315 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200316 "../rtc_base:checks",
317 "../rtc_base:stringutils",
318 "../rtc_base/system:rtc_export",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100319 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200320 "//third_party/abseil-cpp/absl/types:optional",
321 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200322}
323
Taylor Brandstettere3a294c2020-03-23 23:16:58 +0000324if (is_android) {
325 java_cpp_enum("rtp_parameters_enums") {
326 sources = [ "rtp_parameters.h" ]
327 }
328}
329
Artem Titovd57628f2019-03-22 12:34:25 +0100330rtc_source_set("audio_quality_analyzer_api") {
331 visibility = [ "*" ]
332 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100333 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100334
335 deps = [
336 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200337 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100338 ]
339}
340
341rtc_source_set("stats_observer_interface") {
342 visibility = [ "*" ]
343 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100344 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100345
346 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200347 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100348 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200349 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100350 ]
351}
352
353rtc_source_set("peer_connection_quality_test_fixture_api") {
354 visibility = [ "*" ]
355 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100356 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100357
358 deps = [
359 ":audio_quality_analyzer_api",
360 ":callfactory_api",
361 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100362 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100363 ":function_view",
364 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200365 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200366 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100367 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200368 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100369 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200370 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100371 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200372 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200373 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100374 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200375 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100376 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100377 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100378 "video_codecs:video_codecs_api",
379 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100380 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100381 "//third_party/abseil-cpp/absl/types:optional",
382 ]
383}
384
Artem Titov503d7232019-12-04 12:37:13 +0100385rtc_source_set("frame_generator_api") {
386 visibility = [ "*" ]
387 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100388 sources = [ "test/frame_generator_interface.h" ]
Artem Titov503d7232019-12-04 12:37:13 +0100389
390 deps = [
391 ":scoped_refptr",
392 "video:video_frame",
393 "//third_party/abseil-cpp/absl/types:optional",
394 ]
395}
396
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200397rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200398 visibility = [ "*" ]
399 testonly = true
400 sources = [
401 "test/test_dependency_factory.cc",
402 "test/test_dependency_factory.h",
403 ]
404 deps = [
405 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100406 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200407 "../rtc_base:thread_checker",
408 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200409}
410
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200411if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200412 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200413 visibility = [ "*" ]
414 testonly = true
415 sources = [
416 "test/create_video_quality_test_fixture.cc",
417 "test/create_video_quality_test_fixture.h",
418 ]
419 deps = [
420 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200421 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100422 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200423 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200424 "../video:video_quality_test",
425 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200426 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100427
Sebastian Janssoncec24332019-12-04 14:26:50 +0100428 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200429 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100430 visibility = [ "*" ]
431 testonly = true
432 sources = [
433 "test/create_network_emulation_manager.cc",
434 "test/create_network_emulation_manager.h",
435 ]
436 deps = [
437 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200438 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100439 ]
440 }
Artem Titovd57628f2019-03-22 12:34:25 +0100441
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200442 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100443 visibility = [ "*" ]
444 testonly = true
445 sources = [
446 "test/create_peerconnection_quality_test_fixture.cc",
447 "test/create_peerconnection_quality_test_fixture.h",
448 ]
449
450 deps = [
451 ":audio_quality_analyzer_api",
452 ":peer_connection_quality_test_fixture_api",
453 ":video_quality_analyzer_api",
454 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100455 ]
456 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100457}
Artem Titov503d7232019-12-04 12:37:13 +0100458
Artem Titov33f9d2b2019-12-05 15:59:00 +0100459rtc_library("create_frame_generator") {
460 visibility = [ "*" ]
461 testonly = true
462 sources = [
463 "test/create_frame_generator.cc",
464 "test/create_frame_generator.h",
465 ]
466 deps = [
467 ":frame_generator_api",
468 "../rtc_base:checks",
469 "../system_wrappers",
470 "../test:frame_generator_impl",
471 "//third_party/abseil-cpp/absl/types:optional",
472 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200473}
474
Andrey Logvindad6a942020-05-04 17:27:09 +0000475rtc_library("create_peer_connection_quality_test_frame_generator") {
476 visibility = [ "*" ]
477 testonly = true
478 sources = [
479 "test/create_peer_connection_quality_test_frame_generator.cc",
480 "test/create_peer_connection_quality_test_frame_generator.h",
481 ]
482 deps = [
483 ":create_frame_generator",
484 ":frame_generator_api",
485 ":peer_connection_quality_test_fixture_api",
Andrey Logvin1e83d342020-05-07 07:19:15 +0000486 "../rtc_base:checks",
Andrey Logvindad6a942020-05-04 17:27:09 +0000487 "../test:fileutils",
488 "//third_party/abseil-cpp/absl/types:optional",
489 ]
490}
491
Elad Alon80810732017-10-06 13:07:32 +0200492rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000493 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100494 sources = [ "rtc_event_log_output.h" ]
Elad Alon80810732017-10-06 13:07:32 +0200495}
496
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200497rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200498 visibility = [ "*" ]
499 sources = [
500 "rtc_event_log_output_file.cc",
501 "rtc_event_log_output_file.h",
502 ]
503
504 deps = [
505 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200506 "../rtc_base:checks",
507 "../rtc_base:rtc_base_approved",
508 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200509 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200510 ]
511}
512
hbos74e1a4f2016-09-15 23:33:01 -0700513rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000514 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700515 cflags = []
516 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800517 "stats/rtc_stats.h",
518 "stats/rtc_stats_collector_callback.h",
519 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700520 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700521 ]
522
523 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100524 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100525 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700526 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200527 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700528 ]
529}
530
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200531rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100532 visibility = [ "*" ]
533 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200534 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100535 "audio_options.h",
536 ]
537
538 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100539 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200540 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800541 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200542 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100543 ]
544}
545
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200546rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000547 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800548 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100549 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800550 "call/transport.h",
551 ]
552}
nisseb2250e52016-12-02 04:01:14 -0800553
Sebastian Jansson6736df12018-11-21 19:18:39 +0100554rtc_source_set("bitrate_allocation") {
555 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100556 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100557 deps = [
558 "units:data_rate",
559 "units:time_delta",
560 ]
561}
562
Sebastian Janssoncec24332019-12-04 14:26:50 +0100563# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200564rtc_source_set("simulated_network_api") {
565 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100566 sources = [ "test/simulated_network.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200567 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100568 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200569 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200570 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200571 ]
572}
573
Sebastian Janssoncec24332019-12-04 14:26:50 +0100574# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100575rtc_source_set("network_emulation_manager_api") {
576 visibility = [ "*" ]
577 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100578 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100579 "test/network_emulation_manager.h",
580 ]
581 deps = [
582 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100583 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100584 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100585 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100586 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200587 "units:data_rate",
588 "units:data_size",
589 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100590 ]
591}
592
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100593rtc_source_set("time_controller") {
594 visibility = [ "*" ]
595 sources = [
596 "test/time_controller.cc",
597 "test/time_controller.h",
598 ]
599
600 deps = [
601 "../modules/utility",
602 "../rtc_base",
603 "../rtc_base/synchronization:yield_policy",
604 "../system_wrappers",
605 "task_queue",
606 "units:time_delta",
607 "units:timestamp",
608 ]
609}
610
Ying Wang3b790f32018-01-19 17:58:57 +0100611rtc_source_set("fec_controller_api") {
612 visibility = [ "*" ]
613 sources = [
614 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200615 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100616 ]
617
618 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100619 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100620 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100621 ]
622}
623
Ying Wang0810a7c2019-04-10 13:48:24 +0200624rtc_source_set("network_state_predictor_api") {
625 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100626 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200627}
628
kwiberg529662a2017-09-04 05:43:17 -0700629rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000630 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100631 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700632 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100633 "../rtc_base:checks",
634 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700635 ]
636}
637
Niels Möller9155e492017-10-23 11:22:30 +0200638rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000639 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100640 sources = [ "ref_counted_base.h" ]
641 deps = [ "../rtc_base:rtc_base_approved" ]
Niels Möller9155e492017-10-23 11:22:30 +0200642}
643
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200644rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100645 visibility = [ "*" ]
646 sources = [
647 "ice_transport_factory.cc",
648 "ice_transport_factory.h",
649 ]
650 deps = [
651 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200652 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100653 ":scoped_refptr",
654 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100655 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200656 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700657 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100658 ]
659}
660
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200661rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200662 visibility = [ "*" ]
663 sources = [
664 "test/neteq_simulator.cc",
665 "test/neteq_simulator.h",
666 ]
667}
668
Artem Titov741daaf2019-03-21 14:37:36 +0100669rtc_source_set("function_view") {
670 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100671 sources = [ "function_view.h" ]
672 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100673}
674
kjellanderfd5b4e92016-06-13 12:08:33 -0700675if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100676 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200677 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100678 visibility = [ "*" ]
679 testonly = true
680 sources = [
681 "test/audioproc_float.cc",
682 "test/audioproc_float.h",
683 ]
684
685 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100686 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000687 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100688 "../modules/audio_processing:audioproc_f_impl",
689 ]
690 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200691
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200692 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200693 visibility = [ "*" ]
694 testonly = true
695 sources = [
696 "test/neteq_simulator_factory.cc",
697 "test/neteq_simulator_factory.h",
698 ]
699 deps = [
700 ":neteq_simulator_api",
701 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200702 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100703 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200704 "//third_party/abseil-cpp/absl/flags:flag",
705 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100706 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen26d52e12020-03-24 15:59:26 +0100707 "//third_party/abseil-cpp/absl/types:optional",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200708 ]
709 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100710 }
711
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200712 rtc_source_set("simulcast_test_fixture_api") {
713 visibility = [ "*" ]
714 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100715 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200716 }
717
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200718 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200719 visibility = [ "*" ]
720 testonly = true
721 sources = [
722 "test/create_simulcast_test_fixture.cc",
723 "test/create_simulcast_test_fixture.h",
724 ]
725 deps = [
726 ":simulcast_test_fixture_api",
727 "../modules/video_coding:simulcast_test_fixture_impl",
728 "../rtc_base:rtc_base_approved",
729 "video_codecs:video_codecs_api",
730 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200731 }
732
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200733 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200734 visibility = [ "*" ]
735 testonly = true
736 sources = [
737 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200738 "test/videocodec_test_stats.cc",
739 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200740 ]
741 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200742 "..:webrtc_common",
743 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200744 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100745 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200746 "video_codecs:video_codecs_api",
747 ]
748 }
749
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200750 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200751 visibility = [ "*" ]
752 testonly = true
753 sources = [
754 "test/create_videocodec_test_fixture.cc",
755 "test/create_videocodec_test_fixture.h",
756 ]
757 deps = [
758 ":videocodec_test_fixture_api",
759 "../modules/video_coding:video_codecs_test_framework",
760 "../modules/video_coding:videocodec_test_impl",
761 "../rtc_base:rtc_base_approved",
762 "video_codecs:video_codecs_api",
763 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200764 }
765
kjellander2f6af9c2017-03-02 22:26:23 -0800766 rtc_source_set("mock_audio_mixer") {
767 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100768 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800769
kjellander2f6af9c2017-03-02 22:26:23 -0800770 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700771 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100772 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800773 ]
774 }
775
Elad Alon45befc52019-07-02 11:20:09 +0200776 rtc_source_set("mock_fec_controller_override") {
777 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100778 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +0200779 deps = [
780 ":fec_controller_api",
781 "../test:test_support",
782 ]
783 }
784
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200785 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700786 testonly = true
787 sources = [
788 "test/mock_frame_encryptor.cc",
789 "test/mock_frame_encryptor.h",
790 ]
791 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200792 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700793 ":libjingle_peerconnection_api",
794 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200795 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700796 ]
797 }
798
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200799 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700800 testonly = true
801 sources = [
802 "test/mock_frame_decryptor.cc",
803 "test/mock_frame_decryptor.h",
804 ]
805 deps = [
806 ":libjingle_peerconnection_api",
807 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200808 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700809 ]
810 }
811
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200812 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700813 testonly = true
814 sources = [
815 "test/fake_frame_encryptor.cc",
816 "test/fake_frame_encryptor.h",
817 ]
818 deps = [
819 ":array_view",
820 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200821 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700822 "..:webrtc_common",
823 "../rtc_base:checks",
824 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200825 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700826 ]
827 }
828
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200829 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700830 testonly = true
831 sources = [
832 "test/fake_frame_decryptor.cc",
833 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700834 ]
835 deps = [
836 ":array_view",
837 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200838 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700839 "..:webrtc_common",
840 "../rtc_base:checks",
841 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200842 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700843 ]
844 }
845
Niels Möllere78fd802019-09-13 14:45:55 +0200846 rtc_source_set("dummy_peer_connection") {
847 visibility = [ "*" ]
848 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100849 sources = [ "test/dummy_peer_connection.h" ]
Niels Möllere78fd802019-09-13 14:45:55 +0200850
851 deps = [
852 ":libjingle_peerconnection_api",
853 ":rtc_error",
854 "../rtc_base:checks",
855 "../rtc_base:refcount",
856 ]
857 }
858
Jiawei Ou651b92e2018-06-29 15:46:44 -0700859 rtc_source_set("mock_peerconnectioninterface") {
860 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100861 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -0700862
863 deps = [
864 ":libjingle_peerconnection_api",
865 "../test:test_support",
866 ]
867 }
868
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100869 rtc_source_set("mock_rtp") {
870 testonly = true
871 sources = [
872 "test/mock_rtpreceiver.h",
873 "test/mock_rtpsender.h",
874 ]
875
876 deps = [
877 ":libjingle_peerconnection_api",
878 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100879 ]
880 }
881
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700882 rtc_source_set("mock_video_bitrate_allocator") {
883 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100884 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700885
886 deps = [
887 "../api/video:video_bitrate_allocator",
888 "../test:test_support",
889 ]
890 }
891
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800892 rtc_source_set("mock_video_bitrate_allocator_factory") {
893 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100894 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800895
896 deps = [
897 "../api/video:video_bitrate_allocator_factory",
898 "../test:test_support",
899 ]
900 }
901
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700902 rtc_source_set("mock_video_codec_factory") {
903 testonly = true
904 sources = [
905 "test/mock_video_decoder_factory.h",
906 "test/mock_video_encoder_factory.h",
907 ]
908
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700909 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100910 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700911 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700912 ]
913 }
914
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200915 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200916 visibility = [ "*" ]
917
918 testonly = true
919 sources = [
920 "test/mock_video_decoder.cc",
921 "test/mock_video_decoder.h",
922 ]
923
924 deps = [
925 "../api/video_codecs:video_codecs_api",
926 "../test:test_support",
927 ]
928 }
929
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200930 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200931 visibility = [ "*" ]
932
Erik Språng6af1c922018-10-12 10:01:30 +0200933 testonly = true
934 sources = [
935 "test/mock_video_encoder.cc",
936 "test/mock_video_encoder.h",
937 ]
938
939 deps = [
940 "../api/video_codecs:video_codecs_api",
941 "../test:test_support",
942 ]
943 }
944
Anton Sukhanov7940da02018-10-10 10:34:49 -0700945 rtc_source_set("fake_media_transport") {
946 testonly = true
947
948 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700949 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700950 "test/fake_media_transport.h",
951 ]
952
953 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700954 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200955 "transport:datagram_transport_interface",
956 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700957 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700958 ]
959 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200960
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200961 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200962 testonly = true
963
964 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100965 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200966 "test/loopback_media_transport.h",
967 ]
968
969 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100970 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200971 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200972 "transport:datagram_transport_interface",
973 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700974 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200975 ]
976 }
977
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800978 rtc_library("create_time_controller") {
979 visibility = [ "*" ]
980 testonly = true
981 sources = [
982 "test/create_time_controller.cc",
983 "test/create_time_controller.h",
984 ]
985
986 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100987 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800988 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +0100989 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100990 "../call:call_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800991 "../test/time_controller",
992 ]
993 }
994
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200995 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200996 testonly = true
997
998 sources = [
999 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +01001000 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001001 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001002 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +02001003 "rtp_packet_info_unittest.cc",
1004 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001005 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001006 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001007 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001008 "test/loopback_media_transport_unittest.cc",
1009 ]
1010
Niels Möller2e47f7c2018-10-16 10:41:42 +02001011 deps = [
1012 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001013 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +01001014 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001015 ":libjingle_peerconnection_api",
1016 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +02001017 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001018 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +02001019 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001020 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +01001021 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001022 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001023 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001024 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001025 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001026 "../rtc_base:rtc_task_queue",
1027 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001028 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001029 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001030 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001031 "units:time_delta",
1032 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001033 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001034 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001035 ]
1036 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001037
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001038 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001039 testonly = true
1040
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001041 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001042
1043 deps = [
Harald Alvestrand61f74d92020-03-02 11:20:00 +01001044 ":dummy_peer_connection",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001045 ":fake_frame_decryptor",
1046 ":fake_frame_encryptor",
1047 ":fake_media_transport",
1048 ":loopback_media_transport",
1049 ":mock_audio_mixer",
1050 ":mock_frame_decryptor",
1051 ":mock_frame_encryptor",
1052 ":mock_peerconnectioninterface",
1053 ":mock_rtp",
1054 ":mock_video_bitrate_allocator",
1055 ":mock_video_bitrate_allocator_factory",
1056 ":mock_video_codec_factory",
1057 ":mock_video_decoder",
1058 ":mock_video_encoder",
1059 ":rtc_api_unittests",
1060 "units:units_unittests",
1061 ]
1062 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001063}