blob: 517a0db0a0a7cf223f65bdd2f4b070db46776fb8 [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",
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",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100173 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100174 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100175 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200176 "crypto:frame_decryptor_interface",
177 "crypto:frame_encryptor_interface",
178 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100179 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200180 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200181 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200182 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200183 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700184 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200185 "transport:network_control",
Erik Språng662678d2019-11-15 17:18:52 +0100186 "transport:webrtc_key_value_config",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100187 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200188 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100189 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200190 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800191 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700192 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200193 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200194 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200195 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800196 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700197 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800198 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200199 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100200
201 # Basically, don't add stuff here. You might break sensitive downstream
202 # targets like pnacl. API should not depend on anything outside of this
203 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700204 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200205 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100206 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100207 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100208 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100209 "../rtc_base:checks",
210 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700211 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200212 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700213 ]
ossu7bb87ee2017-01-23 04:56:25 -0800214}
kjellanderc76dc952016-06-03 03:09:32 -0700215
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200216rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200217 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200218 sources = [
219 "rtc_error.cc",
220 "rtc_error.h",
221 ]
222 deps = [
223 "../rtc_base:checks",
224 "../rtc_base:logging",
225 "../rtc_base:macromagic",
226 "../rtc_base/system:rtc_export",
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100227 "//third_party/abseil-cpp/absl/types:optional",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200228 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200229}
230
Patrik Höglund662e31f2019-09-05 14:35:04 +0200231rtc_source_set("packet_socket_factory") {
232 visibility = [ "*" ]
233 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200234 "async_resolver_factory.h",
235 "packet_socket_factory.h",
236 ]
237 deps = [
238 "../rtc_base:rtc_base",
239 "../rtc_base/system:rtc_export",
240 ]
241}
242
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100243rtc_source_set("scoped_refptr") {
244 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100245 sources = [ "scoped_refptr.h" ]
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100246}
247
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200248rtc_source_set("video_quality_test_fixture_api") {
249 visibility = [ "*" ]
250 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100251 sources = [ "test/video_quality_test_fixture.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200252 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200253 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200254 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200255 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200256 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200257 ":simulated_network_api",
258 "../call:fake_network",
259 "../call:rtp_interfaces",
260 "../test:test_common",
261 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200262 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200263 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200264 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200265 "video_codecs:video_codecs_api",
266 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200267}
268
Artem Titovd57628f2019-03-22 12:34:25 +0100269rtc_source_set("video_quality_analyzer_api") {
270 visibility = [ "*" ]
271 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100272 sources = [ "test/video_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100273
274 deps = [
275 ":stats_observer_interface",
276 "video:encoded_image",
277 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200278 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100279 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100280 "//third_party/abseil-cpp/absl/types:optional",
281 ]
282}
283
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200284rtc_source_set("track_id_stream_label_map") {
285 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100286 sources = [ "test/track_id_stream_label_map.h" ]
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200287}
288
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200289rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200290 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200291 sources = [
292 "media_types.cc",
293 "media_types.h",
294 "rtp_parameters.cc",
295 "rtp_parameters.h",
296 ]
297 deps = [
298 ":array_view",
299 "../rtc_base:checks",
300 "../rtc_base:stringutils",
301 "../rtc_base/system:rtc_export",
302 "//third_party/abseil-cpp/absl/types:optional",
303 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200304}
305
Artem Titovd57628f2019-03-22 12:34:25 +0100306rtc_source_set("audio_quality_analyzer_api") {
307 visibility = [ "*" ]
308 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100309 sources = [ "test/audio_quality_analyzer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100310
311 deps = [
312 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200313 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100314 ]
315}
316
317rtc_source_set("stats_observer_interface") {
318 visibility = [ "*" ]
319 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100320 sources = [ "test/stats_observer_interface.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100321
322 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200323 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100324 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200325 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100326 ]
327}
328
329rtc_source_set("peer_connection_quality_test_fixture_api") {
330 visibility = [ "*" ]
331 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100332 sources = [ "test/peerconnection_quality_test_fixture.h" ]
Artem Titovd57628f2019-03-22 12:34:25 +0100333
334 deps = [
335 ":audio_quality_analyzer_api",
336 ":callfactory_api",
337 ":fec_controller_api",
Artem Titov00202262019-12-04 22:34:41 +0100338 ":frame_generator_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100339 ":function_view",
340 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200341 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200342 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100343 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200344 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100345 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200346 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100347 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200348 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200349 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100350 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200351 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100352 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100353 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100354 "video_codecs:video_codecs_api",
355 "//third_party/abseil-cpp/absl/memory",
Artem Titov4a6f8182020-02-27 13:24:19 +0100356 "//third_party/abseil-cpp/absl/strings",
Artem Titovd57628f2019-03-22 12:34:25 +0100357 "//third_party/abseil-cpp/absl/types:optional",
358 ]
359}
360
Artem Titov503d7232019-12-04 12:37:13 +0100361rtc_source_set("frame_generator_api") {
362 visibility = [ "*" ]
363 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100364 sources = [ "test/frame_generator_interface.h" ]
Artem Titov503d7232019-12-04 12:37:13 +0100365
366 deps = [
367 ":scoped_refptr",
368 "video:video_frame",
369 "//third_party/abseil-cpp/absl/types:optional",
370 ]
371}
372
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200373rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200374 visibility = [ "*" ]
375 testonly = true
376 sources = [
377 "test/test_dependency_factory.cc",
378 "test/test_dependency_factory.h",
379 ]
380 deps = [
381 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100382 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200383 "../rtc_base:thread_checker",
384 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200385}
386
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200387if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200388 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200389 visibility = [ "*" ]
390 testonly = true
391 sources = [
392 "test/create_video_quality_test_fixture.cc",
393 "test/create_video_quality_test_fixture.h",
394 ]
395 deps = [
396 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200397 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100398 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200399 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200400 "../video:video_quality_test",
401 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200402 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100403
Sebastian Janssoncec24332019-12-04 14:26:50 +0100404 # TODO(srte): Move to network_emulation sub directory.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200405 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100406 visibility = [ "*" ]
407 testonly = true
408 sources = [
409 "test/create_network_emulation_manager.cc",
410 "test/create_network_emulation_manager.h",
411 ]
412 deps = [
413 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200414 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100415 ]
416 }
Artem Titovd57628f2019-03-22 12:34:25 +0100417
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200418 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100419 visibility = [ "*" ]
420 testonly = true
421 sources = [
422 "test/create_peerconnection_quality_test_fixture.cc",
423 "test/create_peerconnection_quality_test_fixture.h",
424 ]
425
426 deps = [
427 ":audio_quality_analyzer_api",
428 ":peer_connection_quality_test_fixture_api",
429 ":video_quality_analyzer_api",
430 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100431 ]
432 }
Artem Titov33f9d2b2019-12-05 15:59:00 +0100433}
Artem Titov503d7232019-12-04 12:37:13 +0100434
Artem Titov33f9d2b2019-12-05 15:59:00 +0100435rtc_library("create_frame_generator") {
436 visibility = [ "*" ]
437 testonly = true
438 sources = [
439 "test/create_frame_generator.cc",
440 "test/create_frame_generator.h",
441 ]
442 deps = [
443 ":frame_generator_api",
444 "../rtc_base:checks",
445 "../system_wrappers",
446 "../test:frame_generator_impl",
447 "//third_party/abseil-cpp/absl/types:optional",
448 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200449}
450
Elad Alon80810732017-10-06 13:07:32 +0200451rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000452 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100453 sources = [ "rtc_event_log_output.h" ]
Elad Alon80810732017-10-06 13:07:32 +0200454}
455
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200456rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200457 visibility = [ "*" ]
458 sources = [
459 "rtc_event_log_output_file.cc",
460 "rtc_event_log_output_file.h",
461 ]
462
463 deps = [
464 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200465 "../rtc_base:checks",
466 "../rtc_base:rtc_base_approved",
467 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200468 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200469 ]
470}
471
hbos74e1a4f2016-09-15 23:33:01 -0700472rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000473 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700474 cflags = []
475 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800476 "stats/rtc_stats.h",
477 "stats/rtc_stats_collector_callback.h",
478 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700479 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700480 ]
481
482 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100483 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100484 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700485 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200486 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700487 ]
488}
489
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200490rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100491 visibility = [ "*" ]
492 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200493 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100494 "audio_options.h",
495 ]
496
497 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100498 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200499 "../rtc_base:stringutils",
Ken MacKay831ce5f2019-12-02 10:26:34 -0800500 "../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200501 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100502 ]
503}
504
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200505rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000506 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800507 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100508 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800509 "call/transport.h",
510 ]
511}
nisseb2250e52016-12-02 04:01:14 -0800512
Sebastian Jansson6736df12018-11-21 19:18:39 +0100513rtc_source_set("bitrate_allocation") {
514 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100515 sources = [ "call/bitrate_allocation.h" ]
Sebastian Jansson6736df12018-11-21 19:18:39 +0100516 deps = [
517 "units:data_rate",
518 "units:time_delta",
519 ]
520}
521
Sebastian Janssoncec24332019-12-04 14:26:50 +0100522# TODO(srte): Move to network_emulation sub directory.
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200523rtc_source_set("simulated_network_api") {
524 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100525 sources = [ "test/simulated_network.h" ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200526 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100527 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200528 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200529 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200530 ]
531}
532
Sebastian Janssoncec24332019-12-04 14:26:50 +0100533# TODO(srte): Move to network_emulation sub directory.
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100534rtc_source_set("network_emulation_manager_api") {
535 visibility = [ "*" ]
536 sources = [
Sebastian Janssoncec24332019-12-04 14:26:50 +0100537 "test/network_emulation_manager.cc",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100538 "test/network_emulation_manager.h",
539 ]
540 deps = [
541 ":simulated_network_api",
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100542 ":time_controller",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100543 "../call:simulated_network",
Artem Titov94b57c02019-03-21 13:35:10 +0100544 "../rtc_base",
Sebastian Janssoncec24332019-12-04 14:26:50 +0100545 "test/network_emulation",
Artem Titov806299e2019-04-12 12:17:19 +0200546 "units:data_rate",
547 "units:data_size",
548 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100549 ]
550}
551
Sebastian Jansson6ce033a2020-01-22 10:12:56 +0100552rtc_source_set("time_controller") {
553 visibility = [ "*" ]
554 sources = [
555 "test/time_controller.cc",
556 "test/time_controller.h",
557 ]
558
559 deps = [
560 "../modules/utility",
561 "../rtc_base",
562 "../rtc_base/synchronization:yield_policy",
563 "../system_wrappers",
564 "task_queue",
565 "units:time_delta",
566 "units:timestamp",
567 ]
568}
569
Ying Wang3b790f32018-01-19 17:58:57 +0100570rtc_source_set("fec_controller_api") {
571 visibility = [ "*" ]
572 sources = [
573 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200574 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100575 ]
576
577 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100578 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100579 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100580 ]
581}
582
Ying Wang0810a7c2019-04-10 13:48:24 +0200583rtc_source_set("network_state_predictor_api") {
584 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100585 sources = [ "network_state_predictor.h" ]
Ying Wang0810a7c2019-04-10 13:48:24 +0200586}
587
kwiberg529662a2017-09-04 05:43:17 -0700588rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000589 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100590 sources = [ "array_view.h" ]
kwiberg529662a2017-09-04 05:43:17 -0700591 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100592 "../rtc_base:checks",
593 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700594 ]
595}
596
Niels Möller9155e492017-10-23 11:22:30 +0200597rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000598 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100599 sources = [ "ref_counted_base.h" ]
600 deps = [ "../rtc_base:rtc_base_approved" ]
Niels Möller9155e492017-10-23 11:22:30 +0200601}
602
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200603rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100604 visibility = [ "*" ]
605 sources = [
606 "ice_transport_factory.cc",
607 "ice_transport_factory.h",
608 ]
609 deps = [
610 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200611 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100612 ":scoped_refptr",
613 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100614 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200615 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700616 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100617 ]
618}
619
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200620rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200621 visibility = [ "*" ]
622 sources = [
623 "test/neteq_simulator.cc",
624 "test/neteq_simulator.h",
625 ]
626}
627
Artem Titov741daaf2019-03-21 14:37:36 +0100628rtc_source_set("function_view") {
629 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100630 sources = [ "function_view.h" ]
631 deps = [ "../rtc_base:checks" ]
Artem Titov741daaf2019-03-21 14:37:36 +0100632}
633
kjellanderfd5b4e92016-06-13 12:08:33 -0700634if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100635 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200636 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100637 visibility = [ "*" ]
638 testonly = true
639 sources = [
640 "test/audioproc_float.cc",
641 "test/audioproc_float.h",
642 ]
643
644 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100645 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000646 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100647 "../modules/audio_processing:audioproc_f_impl",
648 ]
649 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200650
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200651 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200652 visibility = [ "*" ]
653 testonly = true
654 sources = [
655 "test/neteq_simulator_factory.cc",
656 "test/neteq_simulator_factory.h",
657 ]
658 deps = [
659 ":neteq_simulator_api",
660 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200661 "../rtc_base:checks",
Ivo Creusencee751a2020-01-16 17:17:09 +0100662 "neteq:neteq_api",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200663 "//third_party/abseil-cpp/absl/flags:flag",
664 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100665 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200666 ]
667 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100668 }
669
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200670 rtc_source_set("simulcast_test_fixture_api") {
671 visibility = [ "*" ]
672 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100673 sources = [ "test/simulcast_test_fixture.h" ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200674 }
675
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200676 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200677 visibility = [ "*" ]
678 testonly = true
679 sources = [
680 "test/create_simulcast_test_fixture.cc",
681 "test/create_simulcast_test_fixture.h",
682 ]
683 deps = [
684 ":simulcast_test_fixture_api",
685 "../modules/video_coding:simulcast_test_fixture_impl",
686 "../rtc_base:rtc_base_approved",
687 "video_codecs:video_codecs_api",
688 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200689 }
690
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200691 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200692 visibility = [ "*" ]
693 testonly = true
694 sources = [
695 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200696 "test/videocodec_test_stats.cc",
697 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200698 ]
699 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200700 "..:webrtc_common",
701 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200702 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100703 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200704 "video_codecs:video_codecs_api",
705 ]
706 }
707
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200708 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200709 visibility = [ "*" ]
710 testonly = true
711 sources = [
712 "test/create_videocodec_test_fixture.cc",
713 "test/create_videocodec_test_fixture.h",
714 ]
715 deps = [
716 ":videocodec_test_fixture_api",
717 "../modules/video_coding:video_codecs_test_framework",
718 "../modules/video_coding:videocodec_test_impl",
719 "../rtc_base:rtc_base_approved",
720 "video_codecs:video_codecs_api",
721 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200722 }
723
kjellander2f6af9c2017-03-02 22:26:23 -0800724 rtc_source_set("mock_audio_mixer") {
725 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100726 sources = [ "test/mock_audio_mixer.h" ]
kjellander2f6af9c2017-03-02 22:26:23 -0800727
kjellander2f6af9c2017-03-02 22:26:23 -0800728 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700729 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100730 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800731 ]
732 }
733
Elad Alon45befc52019-07-02 11:20:09 +0200734 rtc_source_set("mock_fec_controller_override") {
735 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100736 sources = [ "test/mock_fec_controller_override.h" ]
Elad Alon45befc52019-07-02 11:20:09 +0200737 deps = [
738 ":fec_controller_api",
739 "../test:test_support",
740 ]
741 }
742
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200743 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700744 testonly = true
745 sources = [
746 "test/mock_frame_encryptor.cc",
747 "test/mock_frame_encryptor.h",
748 ]
749 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200750 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700751 ":libjingle_peerconnection_api",
752 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200753 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700754 ]
755 }
756
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200757 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700758 testonly = true
759 sources = [
760 "test/mock_frame_decryptor.cc",
761 "test/mock_frame_decryptor.h",
762 ]
763 deps = [
764 ":libjingle_peerconnection_api",
765 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200766 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700767 ]
768 }
769
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200770 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700771 testonly = true
772 sources = [
773 "test/fake_frame_encryptor.cc",
774 "test/fake_frame_encryptor.h",
775 ]
776 deps = [
777 ":array_view",
778 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200779 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700780 "..:webrtc_common",
781 "../rtc_base:checks",
782 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200783 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700784 ]
785 }
786
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200787 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700788 testonly = true
789 sources = [
790 "test/fake_frame_decryptor.cc",
791 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700792 ]
793 deps = [
794 ":array_view",
795 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200796 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700797 "..:webrtc_common",
798 "../rtc_base:checks",
799 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200800 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700801 ]
802 }
803
Niels Möllere78fd802019-09-13 14:45:55 +0200804 rtc_source_set("dummy_peer_connection") {
805 visibility = [ "*" ]
806 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100807 sources = [ "test/dummy_peer_connection.h" ]
Niels Möllere78fd802019-09-13 14:45:55 +0200808
809 deps = [
810 ":libjingle_peerconnection_api",
811 ":rtc_error",
812 "../rtc_base:checks",
813 "../rtc_base:refcount",
814 ]
815 }
816
Jiawei Ou651b92e2018-06-29 15:46:44 -0700817 rtc_source_set("mock_peerconnectioninterface") {
818 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100819 sources = [ "test/mock_peerconnectioninterface.h" ]
Jiawei Ou651b92e2018-06-29 15:46:44 -0700820
821 deps = [
822 ":libjingle_peerconnection_api",
823 "../test:test_support",
824 ]
825 }
826
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100827 rtc_source_set("mock_rtp") {
828 testonly = true
829 sources = [
830 "test/mock_rtpreceiver.h",
831 "test/mock_rtpsender.h",
832 ]
833
834 deps = [
835 ":libjingle_peerconnection_api",
836 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100837 ]
838 }
839
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700840 rtc_source_set("mock_video_bitrate_allocator") {
841 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100842 sources = [ "test/mock_video_bitrate_allocator.h" ]
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700843
844 deps = [
845 "../api/video:video_bitrate_allocator",
846 "../test:test_support",
847 ]
848 }
849
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800850 rtc_source_set("mock_video_bitrate_allocator_factory") {
851 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100852 sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800853
854 deps = [
855 "../api/video:video_bitrate_allocator_factory",
856 "../test:test_support",
857 ]
858 }
859
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700860 rtc_source_set("mock_video_codec_factory") {
861 testonly = true
862 sources = [
863 "test/mock_video_decoder_factory.h",
864 "test/mock_video_encoder_factory.h",
865 ]
866
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700867 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100868 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700869 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700870 ]
871 }
872
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200873 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200874 visibility = [ "*" ]
875
876 testonly = true
877 sources = [
878 "test/mock_video_decoder.cc",
879 "test/mock_video_decoder.h",
880 ]
881
882 deps = [
883 "../api/video_codecs:video_codecs_api",
884 "../test:test_support",
885 ]
886 }
887
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200888 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200889 visibility = [ "*" ]
890
Erik Språng6af1c922018-10-12 10:01:30 +0200891 testonly = true
892 sources = [
893 "test/mock_video_encoder.cc",
894 "test/mock_video_encoder.h",
895 ]
896
897 deps = [
898 "../api/video_codecs:video_codecs_api",
899 "../test:test_support",
900 ]
901 }
902
Anton Sukhanov7940da02018-10-10 10:34:49 -0700903 rtc_source_set("fake_media_transport") {
904 testonly = true
905
906 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700907 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700908 "test/fake_media_transport.h",
909 ]
910
911 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700912 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200913 "transport:datagram_transport_interface",
914 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700915 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700916 ]
917 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200918
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200919 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200920 testonly = true
921
922 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100923 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200924 "test/loopback_media_transport.h",
925 ]
926
927 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100928 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200929 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200930 "transport:datagram_transport_interface",
931 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700932 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200933 ]
934 }
935
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800936 rtc_library("create_time_controller") {
937 visibility = [ "*" ]
938 testonly = true
939 sources = [
940 "test/create_time_controller.cc",
941 "test/create_time_controller.h",
942 ]
943
944 deps = [
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100945 ":callfactory_api",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800946 ":time_controller",
Sebastian Jansson09a9f1b2020-02-03 09:30:07 +0100947 "../call",
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +0100948 "../call:call_interfaces",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800949 "../test/time_controller",
950 ]
951 }
952
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200953 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200954 testonly = true
955
956 sources = [
957 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100958 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800959 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200960 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200961 "rtp_packet_info_unittest.cc",
962 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800963 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100964 "scoped_refptr_unittest.cc",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800965 "test/create_time_controller_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200966 "test/loopback_media_transport_unittest.cc",
967 ]
968
Niels Möller2e47f7c2018-10-16 10:41:42 +0200969 deps = [
970 ":array_view",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800971 ":create_time_controller",
Artem Titov741daaf2019-03-21 14:37:36 +0100972 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200973 ":libjingle_peerconnection_api",
974 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200975 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200976 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200977 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200978 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100979 ":scoped_refptr",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800980 ":time_controller",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200981 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100982 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200983 "../rtc_base:rtc_base_approved",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800984 "../rtc_base:rtc_task_queue",
985 "../rtc_base/task_utils:repeating_task",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200986 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200987 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100988 "task_queue:task_queue_default_factory_unittests",
Bjorn A Mellemc4f86542019-11-21 10:37:18 -0800989 "units:time_delta",
990 "units:timestamp",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200991 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200992 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200993 ]
994 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100995
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200996 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100997 testonly = true
998
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100999 sources = [ "test/compile_all_headers.cc" ]
Harald Alvestrand3cc45d42019-03-14 05:42:04 +01001000
1001 deps = [
1002 ":fake_frame_decryptor",
1003 ":fake_frame_encryptor",
1004 ":fake_media_transport",
1005 ":loopback_media_transport",
1006 ":mock_audio_mixer",
1007 ":mock_frame_decryptor",
1008 ":mock_frame_encryptor",
1009 ":mock_peerconnectioninterface",
1010 ":mock_rtp",
1011 ":mock_video_bitrate_allocator",
1012 ":mock_video_bitrate_allocator_factory",
1013 ":mock_video_codec_factory",
1014 ":mock_video_decoder",
1015 ":mock_video_encoder",
1016 ":rtc_api_unittests",
1017 "units:units_unittests",
1018 ]
1019 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001020}