blob: 396f63de64fe58f05fee77d4bc29310242c9dbe8 [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 = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080035 "call/callfactoryinterface.h",
Niels Möller8366e172018-02-14 12:20:13 +010036 ]
37}
38
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010039rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010040 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010041 sources = [
42 "create_peerconnection_factory.cc",
43 "create_peerconnection_factory.h",
44 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010045 deps = [
46 ":callfactory_api",
47 ":fec_controller_api",
48 ":libjingle_peerconnection_api",
49 "../logging:rtc_event_log_api",
50 "../logging:rtc_event_log_impl_base",
51 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010052 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010053 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
55 "../pc:peerconnection",
Anders Carlsson01092952018-12-11 15:44:54 +010056 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010057 "../rtc_base:ptr_util",
58 "../rtc_base:rtc_base",
59 "../rtc_base:rtc_base_approved",
60 "audio:audio_mixer_api",
61 "audio_codecs:audio_codecs_api",
62 "transport:network_control",
63 "video_codecs:video_codecs_api",
64 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
ossu7bb87ee2017-01-23 04:56:25 -080067rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000068 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070069 cflags = []
70 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080071 "async_resolver_factory.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080072 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020073 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070074 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020075 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080076 "crypto/crypto_options.cc",
77 "crypto/crypto_options.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080078 "crypto/cryptooptions.h",
Steve Anton10542f22019-01-11 09:11:00 -080079 "crypto/frame_decryptor_interface.h",
80 "crypto/frame_encryptor_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080081 "crypto/framedecryptorinterface.h",
82 "crypto/frameencryptorinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080083 "crypto_params.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080084 "cryptoparams.h",
Steve Anton10542f22019-01-11 09:11:00 -080085 "data_channel_interface.cc",
86 "data_channel_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080087 "datachannelinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080088 "dtls_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080089 "dtlstransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080090 "dtmf_sender_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080091 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080092 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070093 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -080094 "jsep_ice_candidate.cc",
95 "jsep_ice_candidate.h",
96 "jsep_session_description.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080097 "jsepicecandidate.h",
98 "jsepsessiondescription.h",
Steve Anton10542f22019-01-11 09:11:00 -080099 "media_constraints_interface.cc",
100 "media_constraints_interface.h",
101 "media_stream_interface.cc",
102 "media_stream_interface.h",
103 "media_stream_proxy.h",
104 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200105 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400106 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800107 "media_types.cc",
108 "media_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800109 "mediaconstraintsinterface.h",
110 "mediastreaminterface.h",
111 "mediastreamproxy.h",
112 "mediastreamtrackproxy.h",
113 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700114 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800115 "peer_connection_factory_proxy.h",
116 "peer_connection_interface.cc",
117 "peer_connection_interface.h",
118 "peer_connection_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800119 "peerconnectionfactoryproxy.h",
120 "peerconnectioninterface.h",
121 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700122 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700123 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800124 "rtc_error.cc",
125 "rtc_error.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800126 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100127 "rtp_headers.cc",
128 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "rtp_parameters.cc",
130 "rtp_parameters.h",
131 "rtp_receiver_interface.cc",
132 "rtp_receiver_interface.h",
133 "rtp_sender_interface.cc",
134 "rtp_sender_interface.h",
135 "rtp_transceiver_interface.cc",
136 "rtp_transceiver_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800137 "rtpparameters.h",
138 "rtpreceiverinterface.h",
139 "rtpsenderinterface.h",
140 "rtptransceiverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800141 "set_remote_description_observer_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800142 "setremotedescriptionobserverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "stats_types.cc",
144 "stats_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800145 "statstypes.h",
Steve Anton10542f22019-01-11 09:11:00 -0800146 "turn_customizer.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800147 "turncustomizer.h",
Steve Anton10542f22019-01-11 09:11:00 -0800148 "uma_metrics.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800149 "umametrics.h",
Steve Anton10542f22019-01-11 09:11:00 -0800150 "video_track_source_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800151 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700152 ]
kjellanderc76dc952016-06-03 03:09:32 -0700153 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100154 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100155 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100156 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100157 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100158 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700159 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100160 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100161 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200162 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200163 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200164 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200165 "video:video_frame",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800166 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200167 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100168
169 # Basically, don't add stuff here. You might break sensitive downstream
170 # targets like pnacl. API should not depend on anything outside of this
171 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700172 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100173 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100174 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100175 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100176 "../rtc_base:checks",
177 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700178 "../rtc_base:rtc_base",
179 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200180 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700181 ]
Niels Möller8366e172018-02-14 12:20:13 +0100182
kjellander8a116632017-04-21 05:17:08 -0700183 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100184 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700185 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
186 }
ossu7bb87ee2017-01-23 04:56:25 -0800187}
kjellanderc76dc952016-06-03 03:09:32 -0700188
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100189rtc_source_set("scoped_refptr") {
190 visibility = [ "*" ]
191 sources = [
192 "scoped_refptr.h",
193 ]
194}
195
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200196rtc_source_set("video_quality_test_fixture_api") {
197 visibility = [ "*" ]
198 testonly = true
199 sources = [
200 "test/video_quality_test_fixture.h",
201 ]
202 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200203 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200204 ":libjingle_peerconnection_api",
205 ":simulated_network_api",
206 "../call:fake_network",
207 "../call:rtp_interfaces",
208 "../test:test_common",
209 "../test:video_test_common",
210 "video_codecs:video_codecs_api",
211 ]
212 if (!build_with_chromium && is_clang) {
213 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
214 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
215 }
216}
217
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200218rtc_source_set("test_dependency_factory") {
219 visibility = [ "*" ]
220 testonly = true
221 sources = [
222 "test/test_dependency_factory.cc",
223 "test/test_dependency_factory.h",
224 ]
225 deps = [
226 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100227 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200228 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900229 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200230 ]
231 if (!build_with_chromium && is_clang) {
232 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
233 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
234 }
235}
236
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200237if (rtc_include_tests) {
238 rtc_source_set("create_video_quality_test_fixture_api") {
239 visibility = [ "*" ]
240 testonly = true
241 sources = [
242 "test/create_video_quality_test_fixture.cc",
243 "test/create_video_quality_test_fixture.h",
244 ]
245 deps = [
246 ":fec_controller_api",
247 ":video_quality_test_fixture_api",
248 "../rtc_base:ptr_util",
249 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200250 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200251 ]
252 if (!build_with_chromium && is_clang) {
253 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
254 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
255 }
256 }
257}
258
Elad Alon80810732017-10-06 13:07:32 +0200259rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000260 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200261 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800262 "rtc_event_log_output.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800263 "rtceventlogoutput.h",
Elad Alon80810732017-10-06 13:07:32 +0200264 ]
265}
266
deadbeefe814a0d2017-02-25 18:15:09 -0800267rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000268 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800269 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800270 "ortc/packet_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800271 "ortc/packettransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800272 "ortc/rtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800273 "ortc/rtptransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800274 "ortc/srtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800275 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800276 ]
277
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100278 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800279 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200280 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800281 ]
282}
283
hbos74e1a4f2016-09-15 23:33:01 -0700284rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000285 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700286 cflags = []
287 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800288 "stats/rtc_stats.h",
289 "stats/rtc_stats_collector_callback.h",
290 "stats/rtc_stats_report.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800291 "stats/rtcstats.h",
hbos74e1a4f2016-09-15 23:33:01 -0700292 "stats/rtcstats_objects.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800293 "stats/rtcstatscollectorcallback.h",
294 "stats/rtcstatsreport.h",
hbos74e1a4f2016-09-15 23:33:01 -0700295 ]
296
297 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100298 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700299 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200300 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700301 ]
302}
303
Niels Möllera6fe2612018-01-19 11:28:54 +0100304rtc_source_set("audio_options_api") {
305 visibility = [ "*" ]
306 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200307 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100308 "audio_options.h",
309 ]
310
311 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100312 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200313 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200314 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100315 ]
316}
317
aleloia8eb7562016-11-28 07:02:13 -0800318rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000319 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800320 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100321 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800322 "call/transport.h",
323 ]
324}
nisseb2250e52016-12-02 04:01:14 -0800325
Sebastian Jansson6736df12018-11-21 19:18:39 +0100326rtc_source_set("bitrate_allocation") {
327 visibility = [ "*" ]
328 sources = [
329 "call/bitrate_allocation.h",
330 ]
331 deps = [
332 "units:data_rate",
333 "units:time_delta",
334 ]
335}
336
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200337rtc_source_set("simulated_network_api") {
338 visibility = [ "*" ]
339 sources = [
340 "test/simulated_network.h",
341 ]
342 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200343 "../rtc_base:criticalsection",
344 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200345 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200346 ]
347}
348
Ying Wang3b790f32018-01-19 17:58:57 +0100349rtc_source_set("fec_controller_api") {
350 visibility = [ "*" ]
351 sources = [
352 "fec_controller.h",
353 ]
354
355 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100356 "..:webrtc_common",
357 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100358 ]
359}
360
kwiberg529662a2017-09-04 05:43:17 -0700361rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000362 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700363 sources = [
364 "array_view.h",
365 ]
366 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100367 "../rtc_base:checks",
368 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700369 ]
370}
371
Niels Möller9155e492017-10-23 11:22:30 +0200372rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000373 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200374 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800375 "ref_counted_base.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800376 "refcountedbase.h",
Niels Möller9155e492017-10-23 11:22:30 +0200377 ]
378 deps = [
379 "../rtc_base:rtc_base_approved",
380 ]
381}
382
kjellander1993b1d2017-03-06 00:29:21 -0800383rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000384 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800385 testonly = true
386 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800387 "test/fake_constraints.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800388 "test/fakeconstraints.h",
kjellander1993b1d2017-03-06 00:29:21 -0800389 ]
390
kjellander1993b1d2017-03-06 00:29:21 -0800391 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100392 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700393 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800394 ]
395}
396
Ivo Creusen55de08e2018-09-03 11:49:27 +0200397rtc_source_set("neteq_simulator_api") {
398 visibility = [ "*" ]
399 sources = [
400 "test/neteq_simulator.cc",
401 "test/neteq_simulator.h",
402 ]
403}
404
kjellanderfd5b4e92016-06-13 12:08:33 -0700405if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100406 if (rtc_enable_protobuf) {
407 rtc_source_set("audioproc_f_api") {
408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/audioproc_float.cc",
412 "test/audioproc_float.h",
413 ]
414
415 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000416 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100417 "../modules/audio_processing:audio_processing",
418 "../modules/audio_processing:audioproc_f_impl",
419 ]
420 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200421
422 rtc_source_set("neteq_simulator_factory") {
423 visibility = [ "*" ]
424 testonly = true
425 sources = [
426 "test/neteq_simulator_factory.cc",
427 "test/neteq_simulator_factory.h",
428 ]
429 deps = [
430 ":neteq_simulator_api",
431 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200432 "../rtc_base:checks",
433 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200434 "//third_party/abseil-cpp/absl/memory",
435 ]
436 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100437 }
438
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200439 rtc_source_set("simulcast_test_fixture_api") {
440 visibility = [ "*" ]
441 testonly = true
442 sources = [
443 "test/simulcast_test_fixture.h",
444 ]
445 }
446
447 rtc_source_set("create_simulcast_test_fixture_api") {
448 visibility = [ "*" ]
449 testonly = true
450 sources = [
451 "test/create_simulcast_test_fixture.cc",
452 "test/create_simulcast_test_fixture.h",
453 ]
454 deps = [
455 ":simulcast_test_fixture_api",
456 "../modules/video_coding:simulcast_test_fixture_impl",
457 "../rtc_base:rtc_base_approved",
458 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200459 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200460 ]
461 if (!build_with_chromium && is_clang) {
462 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
463 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
464 }
465 }
466
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200467 rtc_source_set("videocodec_test_fixture_api") {
468 visibility = [ "*" ]
469 testonly = true
470 sources = [
471 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200472 "test/videocodec_test_stats.cc",
473 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200474 ]
475 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200476 "..:webrtc_common",
477 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200478 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200479 "video_codecs:video_codecs_api",
480 ]
481 }
482
483 rtc_source_set("create_videocodec_test_fixture_api") {
484 visibility = [ "*" ]
485 testonly = true
486 sources = [
487 "test/create_videocodec_test_fixture.cc",
488 "test/create_videocodec_test_fixture.h",
489 ]
490 deps = [
491 ":videocodec_test_fixture_api",
492 "../modules/video_coding:video_codecs_test_framework",
493 "../modules/video_coding:videocodec_test_impl",
494 "../rtc_base:rtc_base_approved",
495 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200496 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200497 ]
498 if (!build_with_chromium && is_clang) {
499 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
500 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
501 }
502 }
503
kjellander2f6af9c2017-03-02 22:26:23 -0800504 rtc_source_set("mock_audio_mixer") {
505 testonly = true
506 sources = [
507 "test/mock_audio_mixer.h",
508 ]
509
kjellander2f6af9c2017-03-02 22:26:23 -0800510 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700511 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100512 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800513 ]
514 }
515
Benjamin Wright78410ad2018-10-25 09:52:57 -0700516 rtc_source_set("mock_frame_encryptor") {
517 testonly = true
518 sources = [
519 "test/mock_frame_encryptor.cc",
520 "test/mock_frame_encryptor.h",
521 ]
522 deps = [
523 ":libjingle_peerconnection_api",
524 "../test:test_support",
525 ]
526 }
527
528 rtc_source_set("mock_frame_decryptor") {
529 testonly = true
530 sources = [
531 "test/mock_frame_decryptor.cc",
532 "test/mock_frame_decryptor.h",
533 ]
534 deps = [
535 ":libjingle_peerconnection_api",
536 "../test:test_support",
537 ]
538 }
539
540 rtc_source_set("fake_frame_encryptor") {
541 testonly = true
542 sources = [
543 "test/fake_frame_encryptor.cc",
544 "test/fake_frame_encryptor.h",
545 ]
546 deps = [
547 ":array_view",
548 ":libjingle_peerconnection_api",
549 "..:webrtc_common",
550 "../rtc_base:checks",
551 "../rtc_base:rtc_base_approved",
552 ]
553 }
554
555 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700556 testonly = true
557 sources = [
558 "test/fake_frame_decryptor.cc",
559 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700560 ]
561 deps = [
562 ":array_view",
563 ":libjingle_peerconnection_api",
564 "..:webrtc_common",
565 "../rtc_base:checks",
566 "../rtc_base:rtc_base_approved",
567 ]
568 }
569
Jiawei Ou651b92e2018-06-29 15:46:44 -0700570 rtc_source_set("mock_peerconnectioninterface") {
571 testonly = true
572 sources = [
573 "test/mock_peerconnectioninterface.h",
574 ]
575
576 deps = [
577 ":libjingle_peerconnection_api",
578 "../test:test_support",
579 ]
580 }
581
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100582 rtc_source_set("mock_rtp") {
583 testonly = true
584 sources = [
585 "test/mock_rtpreceiver.h",
586 "test/mock_rtpsender.h",
587 ]
588
589 deps = [
590 ":libjingle_peerconnection_api",
591 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100592 ]
593 }
594
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700595 rtc_source_set("mock_video_bitrate_allocator") {
596 testonly = true
597 sources = [
598 "test/mock_video_bitrate_allocator.h",
599 ]
600
601 deps = [
602 "../api/video:video_bitrate_allocator",
603 "../test:test_support",
604 ]
605 }
606
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800607 rtc_source_set("mock_video_bitrate_allocator_factory") {
608 testonly = true
609 sources = [
610 "test/mock_video_bitrate_allocator_factory.h",
611 ]
612
613 deps = [
614 "../api/video:video_bitrate_allocator_factory",
615 "../test:test_support",
616 ]
617 }
618
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700619 rtc_source_set("mock_video_codec_factory") {
620 testonly = true
621 sources = [
622 "test/mock_video_decoder_factory.h",
623 "test/mock_video_encoder_factory.h",
624 ]
625
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700626 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100627 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700628 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700629 ]
630 }
631
Erik Språngc84cd952018-10-15 11:55:13 +0200632 rtc_source_set("mock_video_decoder") {
633 visibility = [ "*" ]
634
635 testonly = true
636 sources = [
637 "test/mock_video_decoder.cc",
638 "test/mock_video_decoder.h",
639 ]
640
641 deps = [
642 "../api/video_codecs:video_codecs_api",
643 "../test:test_support",
644 ]
645 }
646
Erik Språng6af1c922018-10-12 10:01:30 +0200647 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200648 visibility = [ "*" ]
649
Erik Språng6af1c922018-10-12 10:01:30 +0200650 testonly = true
651 sources = [
652 "test/mock_video_encoder.cc",
653 "test/mock_video_encoder.h",
654 ]
655
656 deps = [
657 "../api/video_codecs:video_codecs_api",
658 "../test:test_support",
659 ]
660 }
661
Anton Sukhanov7940da02018-10-10 10:34:49 -0700662 rtc_source_set("fake_media_transport") {
663 testonly = true
664
665 sources = [
666 "test/fake_media_transport.h",
667 ]
668
669 deps = [
670 ":libjingle_peerconnection_api",
671 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100672 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700673 ]
674 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200675
676 rtc_source_set("loopback_media_transport") {
677 testonly = true
678
679 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100680 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200681 "test/loopback_media_transport.h",
682 ]
683
684 deps = [
685 ":libjingle_peerconnection_api",
686 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700687 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100688 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200689 ]
690 }
691
692 rtc_source_set("rtc_api_unittests") {
693 testonly = true
694
695 sources = [
696 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800697 "rtc_error_unittest.cc",
698 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200699 "test/loopback_media_transport_unittest.cc",
700 ]
701
702 if (!build_with_chromium && is_clang) {
703 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
704 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
705 }
706
707 deps = [
708 ":array_view",
709 ":libjingle_peerconnection_api",
710 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200711 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100712 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200713 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200714 "../test:test_support",
715 "units:units_unittests",
716 ]
717 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700718}