blob: 2359ebc99f1f65af2816f395863855646681c936 [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",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
36}
37
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010038rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010039 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010040 sources = [
41 "create_peerconnection_factory.cc",
42 "create_peerconnection_factory.h",
43 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010044 deps = [
45 ":callfactory_api",
46 ":fec_controller_api",
47 ":libjingle_peerconnection_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010048 ":scoped_refptr",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010049 "../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:rtc_base",
58 "../rtc_base:rtc_base_approved",
59 "audio:audio_mixer_api",
60 "audio_codecs:audio_codecs_api",
61 "transport:network_control",
62 "video_codecs:video_codecs_api",
63 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010064}
65
ossu7bb87ee2017-01-23 04:56:25 -080066rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000067 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070068 cflags = []
69 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080070 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020071 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070072 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020073 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080074 "crypto/crypto_options.cc",
75 "crypto/crypto_options.h",
76 "crypto/frame_decryptor_interface.h",
77 "crypto/frame_encryptor_interface.h",
78 "crypto_params.h",
79 "data_channel_interface.cc",
80 "data_channel_interface.h",
81 "dtls_transport_interface.h",
82 "dtmf_sender_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -080083 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070084 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -080085 "jsep_ice_candidate.cc",
86 "jsep_ice_candidate.h",
87 "jsep_session_description.h",
88 "media_constraints_interface.cc",
89 "media_constraints_interface.h",
90 "media_stream_interface.cc",
91 "media_stream_interface.h",
92 "media_stream_proxy.h",
93 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +020094 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040095 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -080096 "media_types.cc",
97 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -070098 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -080099 "peer_connection_factory_proxy.h",
100 "peer_connection_interface.cc",
101 "peer_connection_interface.h",
102 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700103 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700104 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800105 "rtc_error.cc",
106 "rtc_error.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100107 "rtp_headers.cc",
108 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800109 "rtp_parameters.cc",
110 "rtp_parameters.h",
111 "rtp_receiver_interface.cc",
112 "rtp_receiver_interface.h",
113 "rtp_sender_interface.cc",
114 "rtp_sender_interface.h",
115 "rtp_transceiver_interface.cc",
116 "rtp_transceiver_interface.h",
117 "set_remote_description_observer_interface.h",
118 "stats_types.cc",
119 "stats_types.h",
120 "turn_customizer.h",
121 "uma_metrics.h",
122 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700123 ]
kjellanderc76dc952016-06-03 03:09:32 -0700124 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100125 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100126 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100127 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100128 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100129 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700130 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100131 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100132 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100133 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200134 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200135 "transport:network_control",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800136 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200137 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200138 "video:video_frame",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800139 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200140 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100141
142 # Basically, don't add stuff here. You might break sensitive downstream
143 # targets like pnacl. API should not depend on anything outside of this
144 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700145 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100146 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100147 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100148 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100149 "../rtc_base:checks",
150 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700151 "../rtc_base:rtc_base",
152 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200153 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700154 ]
Niels Möller8366e172018-02-14 12:20:13 +0100155
kjellander8a116632017-04-21 05:17:08 -0700156 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100157 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700158 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
159 }
ossu7bb87ee2017-01-23 04:56:25 -0800160}
kjellanderc76dc952016-06-03 03:09:32 -0700161
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100162rtc_source_set("scoped_refptr") {
163 visibility = [ "*" ]
164 sources = [
165 "scoped_refptr.h",
166 ]
167}
168
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200169rtc_source_set("video_quality_test_fixture_api") {
170 visibility = [ "*" ]
171 testonly = true
172 sources = [
173 "test/video_quality_test_fixture.h",
174 ]
175 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200176 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200177 ":libjingle_peerconnection_api",
178 ":simulated_network_api",
179 "../call:fake_network",
180 "../call:rtp_interfaces",
181 "../test:test_common",
182 "../test:video_test_common",
183 "video_codecs:video_codecs_api",
184 ]
185 if (!build_with_chromium && is_clang) {
186 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
187 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
188 }
189}
190
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200191rtc_source_set("test_dependency_factory") {
192 visibility = [ "*" ]
193 testonly = true
194 sources = [
195 "test/test_dependency_factory.cc",
196 "test/test_dependency_factory.h",
197 ]
198 deps = [
199 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100200 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200201 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900202 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200203 ]
204 if (!build_with_chromium && is_clang) {
205 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
206 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
207 }
208}
209
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200210if (rtc_include_tests) {
211 rtc_source_set("create_video_quality_test_fixture_api") {
212 visibility = [ "*" ]
213 testonly = true
214 sources = [
215 "test/create_video_quality_test_fixture.cc",
216 "test/create_video_quality_test_fixture.h",
217 ]
218 deps = [
219 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100220 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200221 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200222 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200223 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200224 ]
225 if (!build_with_chromium && is_clang) {
226 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
227 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
228 }
229 }
230}
231
Elad Alon80810732017-10-06 13:07:32 +0200232rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000233 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200234 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800235 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200236 ]
237}
238
deadbeefe814a0d2017-02-25 18:15:09 -0800239rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000240 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800241 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800242 "ortc/packet_transport_interface.h",
243 "ortc/rtp_transport_interface.h",
244 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800245 ]
246
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100247 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800248 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200249 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800250 ]
251}
252
hbos74e1a4f2016-09-15 23:33:01 -0700253rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000254 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700255 cflags = []
256 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800257 "stats/rtc_stats.h",
258 "stats/rtc_stats_collector_callback.h",
259 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700260 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700261 ]
262
263 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100264 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100265 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700266 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200267 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700268 ]
269}
270
Niels Möllera6fe2612018-01-19 11:28:54 +0100271rtc_source_set("audio_options_api") {
272 visibility = [ "*" ]
273 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200274 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100275 "audio_options.h",
276 ]
277
278 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100279 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200280 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200281 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100282 ]
283}
284
aleloia8eb7562016-11-28 07:02:13 -0800285rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000286 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800287 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100288 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800289 "call/transport.h",
290 ]
291}
nisseb2250e52016-12-02 04:01:14 -0800292
Sebastian Jansson6736df12018-11-21 19:18:39 +0100293rtc_source_set("bitrate_allocation") {
294 visibility = [ "*" ]
295 sources = [
296 "call/bitrate_allocation.h",
297 ]
298 deps = [
299 "units:data_rate",
300 "units:time_delta",
301 ]
302}
303
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200304rtc_source_set("simulated_network_api") {
305 visibility = [ "*" ]
306 sources = [
307 "test/simulated_network.h",
308 ]
309 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310 "../rtc_base:criticalsection",
311 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200312 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200313 ]
314}
315
Ying Wang3b790f32018-01-19 17:58:57 +0100316rtc_source_set("fec_controller_api") {
317 visibility = [ "*" ]
318 sources = [
319 "fec_controller.h",
320 ]
321
322 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100323 "..:webrtc_common",
324 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100325 ]
326}
327
kwiberg529662a2017-09-04 05:43:17 -0700328rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000329 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700330 sources = [
331 "array_view.h",
332 ]
333 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100334 "../rtc_base:checks",
335 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700336 ]
337}
338
Niels Möller9155e492017-10-23 11:22:30 +0200339rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000340 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200341 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800342 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200343 ]
344 deps = [
345 "../rtc_base:rtc_base_approved",
346 ]
347}
348
kjellander1993b1d2017-03-06 00:29:21 -0800349rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000350 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800351 testonly = true
352 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800353 "test/fake_constraints.h",
kjellander1993b1d2017-03-06 00:29:21 -0800354 ]
355
kjellander1993b1d2017-03-06 00:29:21 -0800356 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100357 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700358 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800359 ]
360}
361
Ivo Creusen55de08e2018-09-03 11:49:27 +0200362rtc_source_set("neteq_simulator_api") {
363 visibility = [ "*" ]
364 sources = [
365 "test/neteq_simulator.cc",
366 "test/neteq_simulator.h",
367 ]
368}
369
kjellanderfd5b4e92016-06-13 12:08:33 -0700370if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100371 if (rtc_enable_protobuf) {
372 rtc_source_set("audioproc_f_api") {
373 visibility = [ "*" ]
374 testonly = true
375 sources = [
376 "test/audioproc_float.cc",
377 "test/audioproc_float.h",
378 ]
379
380 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000381 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100382 "../modules/audio_processing:audio_processing",
383 "../modules/audio_processing:audioproc_f_impl",
384 ]
385 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200386
387 rtc_source_set("neteq_simulator_factory") {
388 visibility = [ "*" ]
389 testonly = true
390 sources = [
391 "test/neteq_simulator_factory.cc",
392 "test/neteq_simulator_factory.h",
393 ]
394 deps = [
395 ":neteq_simulator_api",
396 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200397 "../rtc_base:checks",
398 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200399 "//third_party/abseil-cpp/absl/memory",
400 ]
401 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100402 }
403
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200404 rtc_source_set("simulcast_test_fixture_api") {
405 visibility = [ "*" ]
406 testonly = true
407 sources = [
408 "test/simulcast_test_fixture.h",
409 ]
410 }
411
412 rtc_source_set("create_simulcast_test_fixture_api") {
413 visibility = [ "*" ]
414 testonly = true
415 sources = [
416 "test/create_simulcast_test_fixture.cc",
417 "test/create_simulcast_test_fixture.h",
418 ]
419 deps = [
420 ":simulcast_test_fixture_api",
421 "../modules/video_coding:simulcast_test_fixture_impl",
422 "../rtc_base:rtc_base_approved",
423 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200424 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200425 ]
426 if (!build_with_chromium && is_clang) {
427 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
428 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
429 }
430 }
431
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200432 rtc_source_set("videocodec_test_fixture_api") {
433 visibility = [ "*" ]
434 testonly = true
435 sources = [
436 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200437 "test/videocodec_test_stats.cc",
438 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200439 ]
440 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200441 "..:webrtc_common",
442 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200443 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200444 "video_codecs:video_codecs_api",
445 ]
446 }
447
448 rtc_source_set("create_videocodec_test_fixture_api") {
449 visibility = [ "*" ]
450 testonly = true
451 sources = [
452 "test/create_videocodec_test_fixture.cc",
453 "test/create_videocodec_test_fixture.h",
454 ]
455 deps = [
456 ":videocodec_test_fixture_api",
457 "../modules/video_coding:video_codecs_test_framework",
458 "../modules/video_coding:videocodec_test_impl",
459 "../rtc_base:rtc_base_approved",
460 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200461 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200462 ]
463 if (!build_with_chromium && is_clang) {
464 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
466 }
467 }
468
kjellander2f6af9c2017-03-02 22:26:23 -0800469 rtc_source_set("mock_audio_mixer") {
470 testonly = true
471 sources = [
472 "test/mock_audio_mixer.h",
473 ]
474
kjellander2f6af9c2017-03-02 22:26:23 -0800475 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700476 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100477 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800478 ]
479 }
480
Benjamin Wright78410ad2018-10-25 09:52:57 -0700481 rtc_source_set("mock_frame_encryptor") {
482 testonly = true
483 sources = [
484 "test/mock_frame_encryptor.cc",
485 "test/mock_frame_encryptor.h",
486 ]
487 deps = [
488 ":libjingle_peerconnection_api",
489 "../test:test_support",
490 ]
491 }
492
493 rtc_source_set("mock_frame_decryptor") {
494 testonly = true
495 sources = [
496 "test/mock_frame_decryptor.cc",
497 "test/mock_frame_decryptor.h",
498 ]
499 deps = [
500 ":libjingle_peerconnection_api",
501 "../test:test_support",
502 ]
503 }
504
505 rtc_source_set("fake_frame_encryptor") {
506 testonly = true
507 sources = [
508 "test/fake_frame_encryptor.cc",
509 "test/fake_frame_encryptor.h",
510 ]
511 deps = [
512 ":array_view",
513 ":libjingle_peerconnection_api",
514 "..:webrtc_common",
515 "../rtc_base:checks",
516 "../rtc_base:rtc_base_approved",
517 ]
518 }
519
520 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700521 testonly = true
522 sources = [
523 "test/fake_frame_decryptor.cc",
524 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700525 ]
526 deps = [
527 ":array_view",
528 ":libjingle_peerconnection_api",
529 "..:webrtc_common",
530 "../rtc_base:checks",
531 "../rtc_base:rtc_base_approved",
532 ]
533 }
534
Jiawei Ou651b92e2018-06-29 15:46:44 -0700535 rtc_source_set("mock_peerconnectioninterface") {
536 testonly = true
537 sources = [
538 "test/mock_peerconnectioninterface.h",
539 ]
540
541 deps = [
542 ":libjingle_peerconnection_api",
543 "../test:test_support",
544 ]
545 }
546
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100547 rtc_source_set("mock_rtp") {
548 testonly = true
549 sources = [
550 "test/mock_rtpreceiver.h",
551 "test/mock_rtpsender.h",
552 ]
553
554 deps = [
555 ":libjingle_peerconnection_api",
556 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100557 ]
558 }
559
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700560 rtc_source_set("mock_video_bitrate_allocator") {
561 testonly = true
562 sources = [
563 "test/mock_video_bitrate_allocator.h",
564 ]
565
566 deps = [
567 "../api/video:video_bitrate_allocator",
568 "../test:test_support",
569 ]
570 }
571
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800572 rtc_source_set("mock_video_bitrate_allocator_factory") {
573 testonly = true
574 sources = [
575 "test/mock_video_bitrate_allocator_factory.h",
576 ]
577
578 deps = [
579 "../api/video:video_bitrate_allocator_factory",
580 "../test:test_support",
581 ]
582 }
583
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700584 rtc_source_set("mock_video_codec_factory") {
585 testonly = true
586 sources = [
587 "test/mock_video_decoder_factory.h",
588 "test/mock_video_encoder_factory.h",
589 ]
590
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700591 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100592 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700593 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700594 ]
595 }
596
Erik Språngc84cd952018-10-15 11:55:13 +0200597 rtc_source_set("mock_video_decoder") {
598 visibility = [ "*" ]
599
600 testonly = true
601 sources = [
602 "test/mock_video_decoder.cc",
603 "test/mock_video_decoder.h",
604 ]
605
606 deps = [
607 "../api/video_codecs:video_codecs_api",
608 "../test:test_support",
609 ]
610 }
611
Erik Språng6af1c922018-10-12 10:01:30 +0200612 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200613 visibility = [ "*" ]
614
Erik Språng6af1c922018-10-12 10:01:30 +0200615 testonly = true
616 sources = [
617 "test/mock_video_encoder.cc",
618 "test/mock_video_encoder.h",
619 ]
620
621 deps = [
622 "../api/video_codecs:video_codecs_api",
623 "../test:test_support",
624 ]
625 }
626
Anton Sukhanov7940da02018-10-10 10:34:49 -0700627 rtc_source_set("fake_media_transport") {
628 testonly = true
629
630 sources = [
631 "test/fake_media_transport.h",
632 ]
633
634 deps = [
635 ":libjingle_peerconnection_api",
636 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100637 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700638 ]
639 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200640
641 rtc_source_set("loopback_media_transport") {
642 testonly = true
643
644 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100645 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200646 "test/loopback_media_transport.h",
647 ]
648
649 deps = [
650 ":libjingle_peerconnection_api",
651 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700652 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100653 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200654 ]
655 }
656
657 rtc_source_set("rtc_api_unittests") {
658 testonly = true
659
660 sources = [
661 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800662 "rtc_error_unittest.cc",
663 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200664 "test/loopback_media_transport_unittest.cc",
665 ]
666
667 if (!build_with_chromium && is_clang) {
668 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
669 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
670 }
671
672 deps = [
673 ":array_view",
674 ":libjingle_peerconnection_api",
675 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200676 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100677 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200678 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200679 "../test:test_support",
680 "units:units_unittests",
681 ]
682 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700683}