blob: 13ab1878ff454bc90a159b0e72d404e5aa4afaaf [file] [log] [blame]
hjonaa32c3e2015-12-14 03:58:111# 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 14:58:229import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 12:55:0010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 10:09:3214
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:5316 visibility = [ "*" ]
Dan Minor9c686132018-01-15 15:20:0017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 10:09:3222}
23
ehmaldonado38a21322016-09-02 11:10:3424rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:5325 visibility = [ "*" ]
kjellandera69d9732016-08-31 14:33:0526 sources = [
kjellandera69d9732016-08-31 14:33:0527 "call/audio_sink.h",
kjellandera69d9732016-08-31 14:33:0528 ]
29
kjellandera69d9732016-08-31 14:33:0530 deps = [
31 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloia8eb7562016-11-28 15:02:1332 ":transport_api",
kjellandera69d9732016-08-31 14:33:0533 "..:webrtc_common",
ehmaldonadof6a861a2017-07-19 17:40:4734 "../rtc_base:rtc_base_approved",
Gustaf Ullberg2ae140a2018-02-16 12:43:4935 "audio:audio_mixer_api",
kwiberg087bd342017-02-10 16:15:4436 "audio_codecs:audio_codecs_api",
kjellandera69d9732016-08-31 14:33:0537 ]
38}
39
Niels Möller8366e172018-02-14 11:20:1340rtc_source_set("callfactory_api") {
41 visibility = [ "*" ]
42 sources = [
43 "call/callfactoryinterface.h",
44 ]
45}
46
ossu7bb87ee2017-01-23 12:56:2547rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:5348 visibility = [ "*" ]
kjellanderc76dc952016-06-03 10:09:3249 cflags = []
50 sources = [
Zach Steine20867f2018-08-02 20:20:1551 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 14:58:0152 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 18:27:1753 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 12:53:3354 "candidate.h",
Benjamin Wrighta54daf12018-10-11 22:33:1755 "crypto/cryptooptions.cc",
56 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 20:06:1557 "crypto/framedecryptorinterface.h",
58 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 12:15:1759 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 08:39:3060 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 10:09:3261 "datachannelinterface.h",
kjellanderc76dc952016-06-03 10:09:3262 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 20:50:2663 "jsep.cc",
kjellanderc76dc952016-06-03 10:09:3264 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 09:09:3265 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 10:09:3266 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 10:09:3267 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 09:13:5868 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 17:41:4669 "media_transport_interface.h",
kjellanderc76dc952016-06-03 10:09:3270 "mediaconstraintsinterface.cc",
71 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 12:56:2572 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 09:38:2173 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 10:09:3274 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 10:09:3275 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 12:56:2576 "mediatypes.cc",
77 "mediatypes.h",
kjellanderc76dc952016-06-03 10:09:3278 "notifier.h",
kjellanderc76dc952016-06-03 10:09:3279 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 08:39:3080 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 11:20:1381 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 10:09:3282 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 23:27:3483 "proxy.cc",
kjellanderc76dc952016-06-03 10:09:3284 "proxy.h",
deadbeef6038e972017-02-17 07:31:3385 "rtcerror.cc",
86 "rtcerror.h",
Patrik Höglund3e113432017-12-15 13:40:1087 "rtp_headers.cc",
88 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 13:29:2889 "rtpparameters.cc",
kjellanderc76dc952016-06-03 10:09:3290 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 08:38:3191 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 10:09:3292 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-30 00:02:1093 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 10:09:3294 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 08:39:3095 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 18:44:5396 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 16:48:3297 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 10:09:3298 "statstypes.cc",
99 "statstypes.h",
Jonas Orelandbdcee282017-10-10 12:01:40100 "turncustomizer.h",
ossu7bb87ee2017-01-23 12:56:25101 "umametrics.h",
kjellanderc76dc952016-06-03 10:09:32102 "videosourceproxy.h",
kjellanderc76dc952016-06-03 10:09:32103 ]
kjellanderc76dc952016-06-03 10:09:32104 deps = [
Patrik Höglund3e113432017-12-15 13:40:10105 ":array_view",
Niels Möllera6fe2612018-01-19 10:28:54106 ":audio_options_api",
Niels Möller8366e172018-02-14 11:20:13107 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 11:50:27108 ":fec_controller_api",
Niels Möller8366e172018-02-14 11:20:13109 ":libjingle_logging_api",
hbos74e1a4f2016-09-16 06:33:01110 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 12:43:49111 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58112 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 12:01:37113 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 16:05:10114 "transport:network_control",
Niels Möller3a742392018-10-08 09:13:58115 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 09:15:30116 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 11:32:56117 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 09:19:58118
119 # Basically, don't add stuff here. You might break sensitive downstream
120 # targets like pnacl. API should not depend on anything outside of this
121 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 12:17:08122 "..:webrtc_common",
Niels Möller8366e172018-02-14 11:20:13123 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 09:37:42124 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 13:32:41125 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 13:40:10126 "../rtc_base:checks",
127 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 17:40:47128 "../rtc_base:rtc_base",
129 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 13:40:10130 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 15:15:12131 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 10:09:32132 ]
Niels Möller8366e172018-02-14 11:20:13133
kjellander8a116632017-04-21 12:17:08134 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 10:45:31135 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 12:17:08136 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
137 }
ossu7bb87ee2017-01-23 12:56:25138}
kjellanderc76dc952016-06-03 10:09:32139
Patrik Höglundb6b29e02018-06-21 14:58:01140rtc_source_set("video_quality_test_fixture_api") {
141 visibility = [ "*" ]
142 testonly = true
143 sources = [
144 "test/video_quality_test_fixture.h",
145 ]
146 deps = [
Patrik Höglundd8f3c172018-09-26 12:39:17147 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 14:58:01148 ":libjingle_peerconnection_api",
149 ":simulated_network_api",
150 "../call:fake_network",
151 "../call:rtp_interfaces",
152 "../test:test_common",
153 "../test:video_test_common",
154 "video_codecs:video_codecs_api",
155 ]
156 if (!build_with_chromium && is_clang) {
157 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
158 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
159 }
160}
161
Patrik Höglundd8f3c172018-09-26 12:39:17162rtc_source_set("test_dependency_factory") {
163 visibility = [ "*" ]
164 testonly = true
165 sources = [
166 "test/test_dependency_factory.cc",
167 "test/test_dependency_factory.h",
168 ]
169 deps = [
170 ":video_quality_test_fixture_api",
171 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 04:52:10172 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 12:39:17173 ]
174 if (!build_with_chromium && is_clang) {
175 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
176 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
177 }
178}
179
Patrik Höglundb6b29e02018-06-21 14:58:01180if (rtc_include_tests) {
181 rtc_source_set("create_video_quality_test_fixture_api") {
182 visibility = [ "*" ]
183 testonly = true
184 sources = [
185 "test/create_video_quality_test_fixture.cc",
186 "test/create_video_quality_test_fixture.h",
187 ]
188 deps = [
189 ":fec_controller_api",
190 ":video_quality_test_fixture_api",
191 "../rtc_base:ptr_util",
192 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 09:40:33193 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 14:58:01194 ]
195 if (!build_with_chromium && is_clang) {
196 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
197 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
198 }
199 }
200}
201
Elad Alon80810732017-10-06 11:07:32202rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53203 visibility = [ "*" ]
Elad Alon80810732017-10-06 11:07:32204 sources = [
205 "rtceventlogoutput.h",
206 ]
207}
208
deadbeefe814a0d2017-02-26 02:15:09209rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53210 visibility = [ "*" ]
deadbeefe814a0d2017-02-26 02:15:09211 sources = [
zhihuang55adc0e2017-03-11 02:33:45212 "ortc/mediadescription.cc",
213 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-26 02:15:09214 "ortc/ortcfactoryinterface.h",
215 "ortc/ortcrtpreceiverinterface.h",
216 "ortc/ortcrtpsenderinterface.h",
217 "ortc/packettransportinterface.h",
218 "ortc/rtptransportcontrollerinterface.h",
219 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-11 02:33:45220 "ortc/sessiondescription.cc",
221 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 22:39:06222 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-26 02:15:09223 "ortc/udptransportinterface.h",
224 ]
225
226 # For mediastreaminterface.h, etc.
227 # TODO(deadbeef): Create a separate target for the common things ORTC and
228 # PeerConnection code shares, so that ortc_api can depend on that instead of
229 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 12:15:17230 deps = [
deadbeefe814a0d2017-02-26 02:15:09231 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 12:15:17232 "..:webrtc_common",
233 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 11:32:56234 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-26 02:15:09235 ]
zhihuang55adc0e2017-03-11 02:33:45236 if (!build_with_chromium && is_clang) {
237 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
238 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
239 }
deadbeefe814a0d2017-02-26 02:15:09240}
241
hbos74e1a4f2016-09-16 06:33:01242rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53243 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01244 cflags = []
245 sources = [
246 "stats/rtcstats.h",
247 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 12:56:25248 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-16 06:33:01249 "stats/rtcstatsreport.h",
250 ]
251
252 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42253 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47254 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 15:15:12255 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-16 06:33:01256 ]
257}
258
Niels Möllera6fe2612018-01-19 10:28:54259rtc_source_set("audio_options_api") {
260 visibility = [ "*" ]
261 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52262 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54263 "audio_options.h",
264 ]
265
266 deps = [
Danil Chapovalov21652332018-08-31 08:29:07267 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 11:32:56268 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 10:28:54269 ]
270}
271
aleloia8eb7562016-11-28 15:02:13272rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53273 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13274 sources = [
Dino Radaković1807d572018-02-22 13:18:06275 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13276 "call/transport.h",
277 ]
278}
nisseb2250e52016-12-02 12:01:14279
Patrik Höglundb6b29e02018-06-21 14:58:01280rtc_source_set("simulated_network_api") {
281 visibility = [ "*" ]
282 sources = [
283 "test/simulated_network.h",
284 ]
285 deps = [
Patrik Höglundb6b29e02018-06-21 14:58:01286 "../rtc_base:criticalsection",
287 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 08:58:54288 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 14:58:01289 ]
290}
291
Ying Wang3b790f32018-01-19 16:58:57292rtc_source_set("fec_controller_api") {
293 visibility = [ "*" ]
294 sources = [
295 "fec_controller.h",
296 ]
297
298 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27299 "..:webrtc_common",
300 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 16:58:57301 ]
302}
303
kwiberg529662a2017-09-04 12:43:17304rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53305 visibility = [ "*" ]
kwiberg529662a2017-09-04 12:43:17306 sources = [
307 "array_view.h",
308 ]
309 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42310 "../rtc_base:checks",
311 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17312 ]
313}
314
Niels Möller9155e492017-10-23 09:22:30315rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53316 visibility = [ "*" ]
Niels Möller9155e492017-10-23 09:22:30317 sources = [
318 "refcountedbase.h",
319 ]
320 deps = [
321 "../rtc_base:rtc_base_approved",
322 ]
323}
324
kjellander1993b1d2017-03-06 08:29:21325rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53326 visibility = [ "*" ]
kjellander1993b1d2017-03-06 08:29:21327 testonly = true
328 sources = [
329 "test/fakeconstraints.h",
330 ]
331
kjellander1993b1d2017-03-06 08:29:21332 deps = [
Mirko Bonadei34814c72018-01-11 09:13:56333 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 17:40:47334 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 08:29:21335 ]
336}
337
Ivo Creusen55de08e2018-09-03 09:49:27338rtc_source_set("neteq_simulator_api") {
339 visibility = [ "*" ]
340 sources = [
341 "test/neteq_simulator.cc",
342 "test/neteq_simulator.h",
343 ]
344}
345
kjellanderfd5b4e92016-06-13 19:08:33346if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 11:22:52347 if (rtc_enable_protobuf) {
348 rtc_source_set("audioproc_f_api") {
349 visibility = [ "*" ]
350 testonly = true
351 sources = [
352 "test/audioproc_float.cc",
353 "test/audioproc_float.h",
354 ]
355
356 deps = [
357 "../modules/audio_processing:audio_processing",
358 "../modules/audio_processing:audioproc_f_impl",
359 ]
360 }
Ivo Creusen55de08e2018-09-03 09:49:27361
362 rtc_source_set("neteq_simulator_factory") {
363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/neteq_simulator_factory.cc",
367 "test/neteq_simulator_factory.h",
368 ]
369 deps = [
370 ":neteq_simulator_api",
371 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 08:30:58372 "../rtc_base:checks",
373 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 09:49:27374 "//third_party/abseil-cpp/absl/memory",
375 ]
376 }
Ivo Creusen2cb41052018-03-15 11:22:52377 }
378
Rasmus Brandt0cedc052018-05-31 10:53:00379 rtc_source_set("simulcast_test_fixture_api") {
380 visibility = [ "*" ]
381 testonly = true
382 sources = [
383 "test/simulcast_test_fixture.h",
384 ]
385 }
386
387 rtc_source_set("create_simulcast_test_fixture_api") {
388 visibility = [ "*" ]
389 testonly = true
390 sources = [
391 "test/create_simulcast_test_fixture.cc",
392 "test/create_simulcast_test_fixture.h",
393 ]
394 deps = [
395 ":simulcast_test_fixture_api",
396 "../modules/video_coding:simulcast_test_fixture_impl",
397 "../rtc_base:rtc_base_approved",
398 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33399 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 10:53:00400 ]
401 if (!build_with_chromium && is_clang) {
402 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
404 }
405 }
406
Kári Tristan Helgason9d96e922018-05-04 09:56:55407 rtc_source_set("videocodec_test_fixture_api") {
408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 11:34:14412 "test/videocodec_test_stats.cc",
413 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:55414 ]
415 deps = [
Kári Tristan Helgason169005d2018-05-22 11:34:14416 "..:webrtc_common",
417 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 11:41:30418 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 09:56:55419 "video_codecs:video_codecs_api",
420 ]
421 }
422
423 rtc_source_set("create_videocodec_test_fixture_api") {
424 visibility = [ "*" ]
425 testonly = true
426 sources = [
427 "test/create_videocodec_test_fixture.cc",
428 "test/create_videocodec_test_fixture.h",
429 ]
430 deps = [
431 ":videocodec_test_fixture_api",
432 "../modules/video_coding:video_codecs_test_framework",
433 "../modules/video_coding:videocodec_test_impl",
434 "../rtc_base:rtc_base_approved",
435 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33436 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 09:56:55437 ]
438 if (!build_with_chromium && is_clang) {
439 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
440 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
441 }
442 }
443
kjellander2f6af9c2017-03-03 06:26:23444 rtc_source_set("mock_audio_mixer") {
445 testonly = true
446 sources = [
447 "test/mock_audio_mixer.h",
448 ]
449
kjellander2f6af9c2017-03-03 06:26:23450 deps = [
jianjun.zhuc0247402017-07-11 13:20:45451 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:49452 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:23453 ]
454 }
455
Benjamin Wright84583f62018-10-04 21:22:34456 rtc_source_set("fake_frame_crypto") {
457 testonly = true
458 sources = [
459 "test/fake_frame_decryptor.cc",
460 "test/fake_frame_decryptor.h",
461 "test/fake_frame_encryptor.cc",
462 "test/fake_frame_encryptor.h",
463 ]
464 deps = [
465 ":array_view",
466 ":libjingle_peerconnection_api",
467 "..:webrtc_common",
468 "../rtc_base:checks",
469 "../rtc_base:rtc_base_approved",
470 ]
471 }
472
Jiawei Ou651b92e2018-06-29 22:46:44473 rtc_source_set("mock_peerconnectioninterface") {
474 testonly = true
475 sources = [
476 "test/mock_peerconnectioninterface.h",
477 ]
478
479 deps = [
480 ":libjingle_peerconnection_api",
481 "../test:test_support",
482 ]
483 }
484
Patrik Höglund4b9e6ba2017-12-19 09:32:11485 rtc_source_set("mock_rtp") {
486 testonly = true
487 sources = [
488 "test/mock_rtpreceiver.h",
489 "test/mock_rtpsender.h",
490 ]
491
492 deps = [
493 ":libjingle_peerconnection_api",
494 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:11495 ]
496 }
497
Jiawei Ou4206a0a2018-07-20 22:49:43498 rtc_source_set("mock_video_bitrate_allocator") {
499 testonly = true
500 sources = [
501 "test/mock_video_bitrate_allocator.h",
502 ]
503
504 deps = [
505 "../api/video:video_bitrate_allocator",
506 "../test:test_support",
507 ]
508 }
509
Emircan Uysalerdbcac7f2017-10-31 06:10:12510 rtc_source_set("mock_video_codec_factory") {
511 testonly = true
512 sources = [
513 "test/mock_video_decoder_factory.h",
514 "test/mock_video_encoder_factory.h",
515 ]
516
Emircan Uysalerdbcac7f2017-10-31 06:10:12517 deps = [
Mirko Bonadei34814c72018-01-11 09:13:56518 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:12519 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-31 06:10:12520 ]
521 }
522
Erik Språngc84cd952018-10-15 09:55:13523 rtc_source_set("mock_video_decoder") {
524 visibility = [ "*" ]
525
526 testonly = true
527 sources = [
528 "test/mock_video_decoder.cc",
529 "test/mock_video_decoder.h",
530 ]
531
532 deps = [
533 "../api/video_codecs:video_codecs_api",
534 "../test:test_support",
535 ]
536 }
537
Erik Språng6af1c922018-10-12 08:01:30538 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 09:55:13539 visibility = [ "*" ]
540
Erik Språng6af1c922018-10-12 08:01:30541 testonly = true
542 sources = [
543 "test/mock_video_encoder.cc",
544 "test/mock_video_encoder.h",
545 ]
546
547 deps = [
548 "../api/video_codecs:video_codecs_api",
549 "../test:test_support",
550 ]
551 }
552
Anton Sukhanov7940da02018-10-10 17:34:49553 rtc_source_set("fake_media_transport") {
554 testonly = true
555
556 sources = [
557 "test/fake_media_transport.h",
558 ]
559
560 deps = [
561 ":libjingle_peerconnection_api",
562 "../rtc_base:checks",
Mirko Bonadeibc6a06c2018-10-19 06:43:53563 "../third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 17:34:49564 ]
565 }
Niels Möller2e47f7c2018-10-16 08:41:42566
567 rtc_source_set("loopback_media_transport") {
568 testonly = true
569
570 sources = [
571 "test/loopback_media_transport.h",
572 ]
573
574 deps = [
575 ":libjingle_peerconnection_api",
576 "../rtc_base:checks",
577 ]
578 }
579
580 rtc_source_set("rtc_api_unittests") {
581 testonly = true
582
583 sources = [
584 "array_view_unittest.cc",
585 "ortc/mediadescription_unittest.cc",
586 "ortc/sessiondescription_unittest.cc",
587 "rtcerror_unittest.cc",
588 "rtpparameters_unittest.cc",
589 "test/loopback_media_transport_unittest.cc",
590 ]
591
592 if (!build_with_chromium && is_clang) {
593 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
594 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
595 }
596
597 deps = [
598 ":array_view",
599 ":libjingle_peerconnection_api",
600 ":loopback_media_transport",
601 ":ortc_api",
602 "../rtc_base:checks",
603 "../rtc_base:rtc_base_approved",
604 "../rtc_base:rtc_base_tests_utils",
605 "../test:test_support",
606 "units:units_unittests",
607 ]
608 }
kjellanderfd5b4e92016-06-13 19:08:33609}