blob: 6e53178d42fb811868f1327b13b11940006aba62 [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010026 sources = [ "call/audio_sink.h" ]
kjellandera69d9732016-08-31 07:33:05 -070027}
28
Niels Möller8366e172018-02-14 12:20:13 +010029rtc_source_set("callfactory_api") {
30 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010031 sources = [ "call/call_factory_interface.h" ]
32 deps = [ "../rtc_base/system:rtc_export" ]
Niels Möller8366e172018-02-14 12:20:13 +010033}
34
Danil Chapovalov5bf58062019-06-18 16:43:37 +020035if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020036 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020037 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020038 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020039 sources = [
40 "create_peerconnection_factory.cc",
41 "create_peerconnection_factory.h",
42 ]
43 deps = [
44 ":callfactory_api",
45 ":libjingle_peerconnection_api",
46 ":scoped_refptr",
47 "../api/rtc_event_log:rtc_event_log_factory",
48 "../media:rtc_audio_video",
49 "../media:rtc_media_base",
50 "../modules/audio_device:audio_device_api",
51 "../modules/audio_processing:api",
52 "../pc:peerconnection",
53 "../rtc_base",
54 "../rtc_base:rtc_base_approved",
55 "audio:audio_mixer_api",
56 "audio_codecs:audio_codecs_api",
57 "task_queue:default_task_queue_factory",
58 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020059 ]
60 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010061}
62
Mirko Bonadei86d053c2019-10-17 21:32:04 +020063rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 14:27:03 +010064 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010065 sources = [
66 "rtp_headers.cc",
67 "rtp_headers.h",
68 ]
69 deps = [
70 ":array_view",
71 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020072 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020073 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010074 "//third_party/abseil-cpp/absl/types:optional",
75 ]
Niels Möllerb8389522019-03-19 14:27:03 +010076}
77
Mirko Bonadei86d053c2019-10-17 21:32:04 +020078rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020079 visibility = [ "*" ]
80 sources = [
81 "rtp_packet_info.cc",
82 "rtp_packet_info.h",
83 "rtp_packet_infos.h",
84 ]
85 deps = [
86 ":array_view",
87 ":refcountedbase",
88 ":rtp_headers",
89 ":scoped_refptr",
90 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020091 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020092 "../rtc_base:rtc_base_approved",
Johannes Kron0809e7e2020-01-21 11:54:21 +010093 "../rtc_base/system:rtc_export",
Chen Xingd2a66862019-06-03 14:53:42 +020094 "//third_party/abseil-cpp/absl/types:optional",
95 ]
96}
97
Mirko Bonadei86d053c2019-10-17 21:32:04 +020098rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +020099 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200100 sources = [
101 "media_stream_interface.cc",
102 "media_stream_interface.h",
103 "notifier.h",
104 ]
105 deps = [
106 ":audio_options_api",
107 ":rtp_parameters",
108 ":scoped_refptr",
109 "../modules/audio_processing:audio_processing_statistics",
110 "../rtc_base:checks",
111 "../rtc_base:refcount",
112 "../rtc_base/system:rtc_export",
Markus Handell9982efa2019-11-21 11:56:50 +0100113 "video:recordable_encoded_frame",
Niels Möllere942b142019-09-17 14:30:41 +0200114 "video:video_frame",
115 "//third_party/abseil-cpp/absl/types:optional",
116 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200117}
118
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200119rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000120 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700121 cflags = []
122 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700123 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200124 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "crypto_params.h",
126 "data_channel_interface.cc",
127 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200128 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "dtls_transport_interface.h",
130 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100131 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800132 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700133 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "jsep_ice_candidate.cc",
135 "jsep_ice_candidate.h",
136 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800137 "media_stream_proxy.h",
138 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "peer_connection_factory_proxy.h",
140 "peer_connection_interface.cc",
141 "peer_connection_interface.h",
142 "peer_connection_proxy.h",
Guido Urdanetaccab06f2020-01-15 11:30:29 +0000143 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700144 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "rtp_receiver_interface.cc",
146 "rtp_receiver_interface.h",
147 "rtp_sender_interface.cc",
148 "rtp_sender_interface.h",
149 "rtp_transceiver_interface.cc",
150 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100151 "sctp_transport_interface.cc",
152 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800153 "set_remote_description_observer_interface.h",
154 "stats_types.cc",
155 "stats_types.h",
156 "turn_customizer.h",
157 "uma_metrics.h",
158 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700159 ]
kjellanderc76dc952016-06-03 03:09:32 -0700160 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100161 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100162 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100163 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100164 ":fec_controller_api",
Marina Cioceae3e07bf2020-02-27 16:28:51 +0100165 ":frame_transformer_interface",
Niels Möller8366e172018-02-14 12:20:13 +0100166 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200167 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200168 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200169 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200170 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700171 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200172 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200173 ":rtp_parameters",
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",
225 ]
226}
227
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200228rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200229 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200230 sources = [
231 "rtc_error.cc",
232 "rtc_error.h",
233 ]
234 deps = [
235 "../rtc_base:checks",
236 "../rtc_base:logging",
237 "../rtc_base:macromagic",
238 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100239 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200240 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200241}
242
Patrik Höglund662e31f2019-09-05 14:35:04 +0200243rtc_source_set("packet_socket_factory") {
244 visibility = [ "*" ]
245 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200246 "async_resolver_factory.h",
247 "packet_socket_factory.h",
248 ]
249 deps = [
250 "../rtc_base:rtc_base",
251 "../rtc_base/system:rtc_export",
252 ]
253}
254
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100255rtc_source_set("scoped_refptr") {
256 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100257 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100258}
259
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200260rtc_source_set("video_quality_test_fixture_api") {
261 visibility = [ "*" ]
262 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100263 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200264 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200265 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200266 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200267 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200268 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200269 ":simulated_network_api",
270 "../call:fake_network",
271 "../call:rtp_interfaces",
272 "../test:test_common",
273 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200274 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200275 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200276 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200277 "video_codecs:video_codecs_api",
278 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200279}
280
Artem Titovd57628f2019-03-22 12:34:25 +0100281rtc_source_set("video_quality_analyzer_api") {
282 visibility = [ "*" ]
283 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100284 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100285
286 deps = [
287 ":stats_observer_interface",
288 "video:encoded_image",
289 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200290 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100291 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100292 "//third_party/abseil-cpp/absl/types:optional",
293 ]
294}
295
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200296rtc_source_set("track_id_stream_label_map") {
297 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100298 sources = [ "test/track_id_stream_label_map.h" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200299}
300
Markus Handell0357b3e2020-03-16 13:40:51 +0100301rtc_source_set("rtp_transceiver_direction") {
302 visibility = [ "*" ]
303 sources = [ "rtp_transceiver_direction.h" ]
304}
305
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200306rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200307 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200308 sources = [
309 "media_types.cc",
310 "media_types.h",
311 "rtp_parameters.cc",
312 "rtp_parameters.h",
313 ]
314 deps = [
315 ":array_view",
Markus Handell0357b3e2020-03-16 13:40:51 +0100316 ":rtp_transceiver_direction",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200317 "../rtc_base:checks",
318 "../rtc_base:stringutils",
319 "../rtc_base/system:rtc_export",
Markus Handelldfeb0df2020-03-16 22:20:47 +0100320 "//third_party/abseil-cpp/absl/strings",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200321 "//third_party/abseil-cpp/absl/types:optional",
322 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200323}
324
Artem Titovd57628f2019-03-22 12:34:25 +0100325rtc_source_set("audio_quality_analyzer_api") {
326 visibility = [ "*" ]
327 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100328 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100329
330 deps = [
331 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200332 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100333 ]
334}
335
336rtc_source_set("stats_observer_interface") {
337 visibility = [ "*" ]
338 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100339 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100340
341 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200342 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100343 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200344 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100345 ]
346}
347
348rtc_source_set("peer_connection_quality_test_fixture_api") {
349 visibility = [ "*" ]
350 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100351 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100352
353 deps = [
354 ":audio_quality_analyzer_api",
355 ":callfactory_api",
356 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100357 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100358 ":function_view",
359 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200360 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200361 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100362 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200363 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100364 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200365 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100366 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200367 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200368 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100369 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200370 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100371 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100372 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100373 "video_codecs:video_codecs_api",
374 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100375 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100376 "//third_party/abseil-cpp/absl/types:optional",
377 ]
378}
379
Artem Titov503d7232019-12-04 12:37:13 +0100380rtc_source_set("frame_generator_api") {
381 visibility = [ "*" ]
382 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100383 sources = [ "test/frame_generator_interface.h" ]
Artem Titov503d7232019-12-04 12:37:13 +0100384
385 deps = [
386 ":scoped_refptr",
387 "video:video_frame",
388 "//third_party/abseil-cpp/absl/types:optional",
389 ]
390}
391
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200392rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200393 visibility = [ "*" ]
394 testonly = true
395 sources = [
396 "test/test_dependency_factory.cc",
397 "test/test_dependency_factory.h",
398 ]
399 deps = [
400 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100401 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200402 "../rtc_base:thread_checker",
403 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200404}
405
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200406if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200407 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/create_video_quality_test_fixture.cc",
412 "test/create_video_quality_test_fixture.h",
413 ]
414 deps = [
415 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200416 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100417 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200418 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200419 "../video:video_quality_test",
420 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200421 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100422
Sebastian Janssoncec24332019-12-04 14:26:50 +0100423 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200424 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100425 visibility = [ "*" ]
426 testonly = true
427 sources = [
428 "test/create_network_emulation_manager.cc",
429 "test/create_network_emulation_manager.h",
430 ]
431 deps = [
432 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200433 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100434 ]
435 }
Artem Titovd57628f2019-03-22 12:34:25 +0100436
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200437 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100438 visibility = [ "*" ]
439 testonly = true
440 sources = [
441 "test/create_peerconnection_quality_test_fixture.cc",
442 "test/create_peerconnection_quality_test_fixture.h",
443 ]
444
445 deps = [
446 ":audio_quality_analyzer_api",
447 ":peer_connection_quality_test_fixture_api",
448 ":video_quality_analyzer_api",
449 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100450 ]
451 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100452}
Artem Titov503d7232019-12-04 12:37:13 +0100453
Artem Titov33f9d2b2019-12-05 15:59:00 +0100454rtc_library("create_frame_generator") {
455 visibility = [ "*" ]
456 testonly = true
457 sources = [
458 "test/create_frame_generator.cc",
459 "test/create_frame_generator.h",
460 ]
461 deps = [
462 ":frame_generator_api",
463 "../rtc_base:checks",
464 "../system_wrappers",
465 "../test:frame_generator_impl",
466 "//third_party/abseil-cpp/absl/types:optional",
467 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200468}
469
Elad Alon80810732017-10-06 13:07:32 +0200470rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000471 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100472 sources = [ "rtc_event_log_output.h" ]
Elad Alon80810732017-10-06 13:07:32 +0200473}
474
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200475rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200476 visibility = [ "*" ]
477 sources = [
478 "rtc_event_log_output_file.cc",
479 "rtc_event_log_output_file.h",
480 ]
481
482 deps = [
483 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200484 "../rtc_base:checks",
485 "../rtc_base:rtc_base_approved",
486 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200487 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200488 ]
489}
490
hbos74e1a4f2016-09-15 23:33:01 -0700491rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000492 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700493 cflags = []
494 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800495 "stats/rtc_stats.h",
496 "stats/rtc_stats_collector_callback.h",
497 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700498 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700499 ]
500
501 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100502 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100503 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700504 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200505 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700506 ]
507}
508
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200509rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100510 visibility = [ "*" ]
511 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200512 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100513 "audio_options.h",
514 ]
515
516 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100517 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200518 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800519 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200520 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100521 ]
522}
523
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200524rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000525 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800526 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100527 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800528 "call/transport.h",
529 ]
530}
nisseb2250e52016-12-02 04:01:14 -0800531
Sebastian Jansson6736df12018-11-21 19:18:39 +0100532rtc_source_set("bitrate_allocation") {
533 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100534 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100535 deps = [
536 "units:data_rate",
537 "units:time_delta",
538 ]
539}
540
Sebastian Janssoncec24332019-12-04 14:26:50 +0100541# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200542rtc_source_set("simulated_network_api") {
543 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100544 sources = [ "test/simulated_network.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200545 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100546 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200547 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200548 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200549 ]
550}
551
Sebastian Janssoncec24332019-12-04 14:26:50 +0100552# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100553rtc_source_set("network_emulation_manager_api") {
554 visibility = [ "*" ]
555 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100556 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100557 "test/network_emulation_manager.h",
558 ]
559 deps = [
560 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100561 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100562 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100563 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100564 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200565 "units:data_rate",
566 "units:data_size",
567 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100568 ]
569}
570
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100571rtc_source_set("time_controller") {
572 visibility = [ "*" ]
573 sources = [
574 "test/time_controller.cc",
575 "test/time_controller.h",
576 ]
577
578 deps = [
579 "../modules/utility",
580 "../rtc_base",
581 "../rtc_base/synchronization:yield_policy",
582 "../system_wrappers",
583 "task_queue",
584 "units:time_delta",
585 "units:timestamp",
586 ]
587}
588
Ying Wang3b790f32018-01-19 17:58:57 +0100589rtc_source_set("fec_controller_api") {
590 visibility = [ "*" ]
591 sources = [
592 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200593 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100594 ]
595
596 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100597 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100598 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100599 ]
600}
601
Ying Wang0810a7c2019-04-10 13:48:24 +0200602rtc_source_set("network_state_predictor_api") {
603 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100604 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200605}
606
kwiberg529662a2017-09-04 05:43:17 -0700607rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000608 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100609 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700610 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100611 "../rtc_base:checks",
612 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700613 ]
614}
615
Niels Möller9155e492017-10-23 11:22:30 +0200616rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000617 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100618 sources = [ "ref_counted_base.h" ]
619 deps = [ "../rtc_base:rtc_base_approved" ]
Niels Möller9155e492017-10-23 11:22:30 +0200620}
621
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200622rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100623 visibility = [ "*" ]
624 sources = [
625 "ice_transport_factory.cc",
626 "ice_transport_factory.h",
627 ]
628 deps = [
629 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200630 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100631 ":scoped_refptr",
632 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100633 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200634 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700635 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100636 ]
637}
638
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200639rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200640 visibility = [ "*" ]
641 sources = [
642 "test/neteq_simulator.cc",
643 "test/neteq_simulator.h",
644 ]
645}
646
Artem Titov741daaf2019-03-21 14:37:36 +0100647rtc_source_set("function_view") {
648 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100649 sources = [ "function_view.h" ]
650 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100651}
652
kjellanderfd5b4e92016-06-13 12:08:33 -0700653if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100654 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200655 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100656 visibility = [ "*" ]
657 testonly = true
658 sources = [
659 "test/audioproc_float.cc",
660 "test/audioproc_float.h",
661 ]
662
663 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100664 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000665 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100666 "../modules/audio_processing:audioproc_f_impl",
667 ]
668 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200669
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200670 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200671 visibility = [ "*" ]
672 testonly = true
673 sources = [
674 "test/neteq_simulator_factory.cc",
675 "test/neteq_simulator_factory.h",
676 ]
677 deps = [
678 ":neteq_simulator_api",
679 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200680 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100681 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200682 "//third_party/abseil-cpp/absl/flags:flag",
683 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100684 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200685 ]
686 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100687 }
688
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200689 rtc_source_set("simulcast_test_fixture_api") {
690 visibility = [ "*" ]
691 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100692 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200693 }
694
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200695 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200696 visibility = [ "*" ]
697 testonly = true
698 sources = [
699 "test/create_simulcast_test_fixture.cc",
700 "test/create_simulcast_test_fixture.h",
701 ]
702 deps = [
703 ":simulcast_test_fixture_api",
704 "../modules/video_coding:simulcast_test_fixture_impl",
705 "../rtc_base:rtc_base_approved",
706 "video_codecs:video_codecs_api",
707 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200708 }
709
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200710 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200711 visibility = [ "*" ]
712 testonly = true
713 sources = [
714 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200715 "test/videocodec_test_stats.cc",
716 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200717 ]
718 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200719 "..:webrtc_common",
720 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200721 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100722 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 "video_codecs:video_codecs_api",
724 ]
725 }
726
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200727 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200728 visibility = [ "*" ]
729 testonly = true
730 sources = [
731 "test/create_videocodec_test_fixture.cc",
732 "test/create_videocodec_test_fixture.h",
733 ]
734 deps = [
735 ":videocodec_test_fixture_api",
736 "../modules/video_coding:video_codecs_test_framework",
737 "../modules/video_coding:videocodec_test_impl",
738 "../rtc_base:rtc_base_approved",
739 "video_codecs:video_codecs_api",
740 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200741 }
742
kjellander2f6af9c2017-03-02 22:26:23 -0800743 rtc_source_set("mock_audio_mixer") {
744 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100745 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800746
kjellander2f6af9c2017-03-02 22:26:23 -0800747 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700748 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100749 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800750 ]
751 }
752
Elad Alon45befc52019-07-02 11:20:09 +0200753 rtc_source_set("mock_fec_controller_override") {
754 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100755 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +0200756 deps = [
757 ":fec_controller_api",
758 "../test:test_support",
759 ]
760 }
761
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200762 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700763 testonly = true
764 sources = [
765 "test/mock_frame_encryptor.cc",
766 "test/mock_frame_encryptor.h",
767 ]
768 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200769 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700770 ":libjingle_peerconnection_api",
771 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200772 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700773 ]
774 }
775
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200776 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700777 testonly = true
778 sources = [
779 "test/mock_frame_decryptor.cc",
780 "test/mock_frame_decryptor.h",
781 ]
782 deps = [
783 ":libjingle_peerconnection_api",
784 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200785 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700786 ]
787 }
788
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200789 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700790 testonly = true
791 sources = [
792 "test/fake_frame_encryptor.cc",
793 "test/fake_frame_encryptor.h",
794 ]
795 deps = [
796 ":array_view",
797 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200798 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700799 "..:webrtc_common",
800 "../rtc_base:checks",
801 "../rtc_base:rtc_base_approved",
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("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700807 testonly = true
808 sources = [
809 "test/fake_frame_decryptor.cc",
810 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700811 ]
812 deps = [
813 ":array_view",
814 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200815 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700816 "..:webrtc_common",
817 "../rtc_base:checks",
818 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200819 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700820 ]
821 }
822
Niels Möllere78fd802019-09-13 14:45:55 +0200823 rtc_source_set("dummy_peer_connection") {
824 visibility = [ "*" ]
825 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100826 sources = [ "test/dummy_peer_connection.h" ]
Niels Möllere78fd802019-09-13 14:45:55 +0200827
828 deps = [
829 ":libjingle_peerconnection_api",
830 ":rtc_error",
831 "../rtc_base:checks",
832 "../rtc_base:refcount",
833 ]
834 }
835
Jiawei Ou651b92e2018-06-29 15:46:44 -0700836 rtc_source_set("mock_peerconnectioninterface") {
837 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100838 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -0700839
840 deps = [
841 ":libjingle_peerconnection_api",
842 "../test:test_support",
843 ]
844 }
845
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100846 rtc_source_set("mock_rtp") {
847 testonly = true
848 sources = [
849 "test/mock_rtpreceiver.h",
850 "test/mock_rtpsender.h",
851 ]
852
853 deps = [
854 ":libjingle_peerconnection_api",
855 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100856 ]
857 }
858
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700859 rtc_source_set("mock_video_bitrate_allocator") {
860 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100861 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700862
863 deps = [
864 "../api/video:video_bitrate_allocator",
865 "../test:test_support",
866 ]
867 }
868
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800869 rtc_source_set("mock_video_bitrate_allocator_factory") {
870 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100871 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800872
873 deps = [
874 "../api/video:video_bitrate_allocator_factory",
875 "../test:test_support",
876 ]
877 }
878
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700879 rtc_source_set("mock_video_codec_factory") {
880 testonly = true
881 sources = [
882 "test/mock_video_decoder_factory.h",
883 "test/mock_video_encoder_factory.h",
884 ]
885
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700886 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100887 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700888 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700889 ]
890 }
891
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200892 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200893 visibility = [ "*" ]
894
895 testonly = true
896 sources = [
897 "test/mock_video_decoder.cc",
898 "test/mock_video_decoder.h",
899 ]
900
901 deps = [
902 "../api/video_codecs:video_codecs_api",
903 "../test:test_support",
904 ]
905 }
906
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200907 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200908 visibility = [ "*" ]
909
Erik Språng6af1c922018-10-12 10:01:30 +0200910 testonly = true
911 sources = [
912 "test/mock_video_encoder.cc",
913 "test/mock_video_encoder.h",
914 ]
915
916 deps = [
917 "../api/video_codecs:video_codecs_api",
918 "../test:test_support",
919 ]
920 }
921
Anton Sukhanov7940da02018-10-10 10:34:49 -0700922 rtc_source_set("fake_media_transport") {
923 testonly = true
924
925 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700926 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700927 "test/fake_media_transport.h",
928 ]
929
930 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700931 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200932 "transport:datagram_transport_interface",
933 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700934 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700935 ]
936 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200937
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200938 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200939 testonly = true
940
941 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100942 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200943 "test/loopback_media_transport.h",
944 ]
945
946 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100947 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200948 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200949 "transport:datagram_transport_interface",
950 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700951 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200952 ]
953 }
954
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800955 rtc_library("create_time_controller") {
956 visibility = [ "*" ]
957 testonly = true
958 sources = [
959 "test/create_time_controller.cc",
960 "test/create_time_controller.h",
961 ]
962
963 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100964 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800965 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +0100966 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100967 "../call:call_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800968 "../test/time_controller",
969 ]
970 }
971
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200972 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200973 testonly = true
974
975 sources = [
976 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100977 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800978 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200979 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200980 "rtp_packet_info_unittest.cc",
981 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800982 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100983 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800984 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200985 "test/loopback_media_transport_unittest.cc",
986 ]
987
Niels Möller2e47f7c2018-10-16 10:41:42 +0200988 deps = [
989 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800990 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +0100991 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200992 ":libjingle_peerconnection_api",
993 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200994 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200995 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200996 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200997 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100998 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800999 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001000 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001001 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001002 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001003 "../rtc_base:rtc_task_queue",
1004 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +02001005 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001006 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +01001007 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001008 "units:time_delta",
1009 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001010 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +02001011 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +02001012 ]
1013 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001014
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001015 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001016 testonly = true
1017
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +01001018 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001019
1020 deps = [
Harald Alvestrand61f74d92020-03-02 11:20:00 +01001021 ":dummy_peer_connection",
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001022 ":fake_frame_decryptor",
1023 ":fake_frame_encryptor",
1024 ":fake_media_transport",
1025 ":loopback_media_transport",
1026 ":mock_audio_mixer",
1027 ":mock_frame_decryptor",
1028 ":mock_frame_encryptor",
1029 ":mock_peerconnectioninterface",
1030 ":mock_rtp",
1031 ":mock_video_bitrate_allocator",
1032 ":mock_video_bitrate_allocator_factory",
1033 ":mock_video_codec_factory",
1034 ":mock_video_decoder",
1035 ":mock_video_encoder",
1036 ":rtc_api_unittests",
1037 "units:units_unittests",
1038 ]
1039 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001040}