blob: ea22b033e4220de31bac580f4d21303e604ffead [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 ]
29
kjellandera69d9732016-08-31 07:33:05 -070030 deps = [
31 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloia8eb7562016-11-28 07:02:13 -080032 ":transport_api",
kjellandera69d9732016-08-31 07:33:05 -070033 "..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070034 "../rtc_base:rtc_base_approved",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010035 "audio:audio_mixer_api",
kwiberg087bd342017-02-10 08:15:44 -080036 "audio_codecs:audio_codecs_api",
kjellandera69d9732016-08-31 07:33:05 -070037 ]
38}
39
Niels Möller8366e172018-02-14 12:20:13 +010040rtc_source_set("callfactory_api") {
41 visibility = [ "*" ]
42 sources = [
43 "call/callfactoryinterface.h",
44 ]
45}
46
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010047rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010048 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010049 sources = [
50 "create_peerconnection_factory.cc",
51 "create_peerconnection_factory.h",
52 ]
53}
54
ossu7bb87ee2017-01-23 04:56:25 -080055rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000056 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070057 cflags = []
58 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070059 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020060 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070061 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020062 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070063 "crypto/cryptooptions.cc",
64 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070065 "crypto/framedecryptorinterface.h",
66 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010067 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020068 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070069 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070070 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080071 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070072 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020073 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070074 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020076 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040077 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070078 "mediaconstraintsinterface.cc",
79 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080080 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010081 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070082 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070083 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080084 "mediatypes.cc",
85 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070086 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070087 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020088 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010089 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070090 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070091 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070092 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080093 "rtcerror.cc",
94 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010095 "rtp_headers.cc",
96 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020097 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070098 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010099 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700100 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700101 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700102 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200103 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800104 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100105 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700106 "statstypes.cc",
107 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200108 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800109 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700110 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700111 ]
kjellanderc76dc952016-06-03 03:09:32 -0700112 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100113 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100114 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100115 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100116 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100117 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700118 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100119 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100120 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200121 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200122 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200123 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200124 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200125 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100126
127 # Basically, don't add stuff here. You might break sensitive downstream
128 # targets like pnacl. API should not depend on anything outside of this
129 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700130 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100131 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100132 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100133 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100134 "../rtc_base:checks",
135 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700136 "../rtc_base:rtc_base",
137 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100138 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200139 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700140 ]
Niels Möller8366e172018-02-14 12:20:13 +0100141
kjellander8a116632017-04-21 05:17:08 -0700142 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100143 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700144 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
145 }
ossu7bb87ee2017-01-23 04:56:25 -0800146}
kjellanderc76dc952016-06-03 03:09:32 -0700147
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200148rtc_source_set("video_quality_test_fixture_api") {
149 visibility = [ "*" ]
150 testonly = true
151 sources = [
152 "test/video_quality_test_fixture.h",
153 ]
154 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200155 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200156 ":libjingle_peerconnection_api",
157 ":simulated_network_api",
158 "../call:fake_network",
159 "../call:rtp_interfaces",
160 "../test:test_common",
161 "../test:video_test_common",
162 "video_codecs:video_codecs_api",
163 ]
164 if (!build_with_chromium && is_clang) {
165 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
166 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
167 }
168}
169
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200170rtc_source_set("test_dependency_factory") {
171 visibility = [ "*" ]
172 testonly = true
173 sources = [
174 "test/test_dependency_factory.cc",
175 "test/test_dependency_factory.h",
176 ]
177 deps = [
178 ":video_quality_test_fixture_api",
179 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900180 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200181 ]
182 if (!build_with_chromium && is_clang) {
183 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
184 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
185 }
186}
187
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200188if (rtc_include_tests) {
189 rtc_source_set("create_video_quality_test_fixture_api") {
190 visibility = [ "*" ]
191 testonly = true
192 sources = [
193 "test/create_video_quality_test_fixture.cc",
194 "test/create_video_quality_test_fixture.h",
195 ]
196 deps = [
197 ":fec_controller_api",
198 ":video_quality_test_fixture_api",
199 "../rtc_base:ptr_util",
200 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200201 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200202 ]
203 if (!build_with_chromium && is_clang) {
204 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
205 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
206 }
207 }
208}
209
Elad Alon80810732017-10-06 13:07:32 +0200210rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000211 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200212 sources = [
213 "rtceventlogoutput.h",
214 ]
215}
216
deadbeefe814a0d2017-02-25 18:15:09 -0800217rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000218 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800219 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800220 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800221 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800222 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800223 ]
224
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100225 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800226 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100227 "..:webrtc_common",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200228 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800229 ]
230}
231
hbos74e1a4f2016-09-15 23:33:01 -0700232rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000233 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700234 cflags = []
235 sources = [
236 "stats/rtcstats.h",
237 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800238 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700239 "stats/rtcstatsreport.h",
240 ]
241
242 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100243 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700244 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200245 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700246 ]
247}
248
Niels Möllera6fe2612018-01-19 11:28:54 +0100249rtc_source_set("audio_options_api") {
250 visibility = [ "*" ]
251 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200252 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100253 "audio_options.h",
254 ]
255
256 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200257 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200258 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100259 ]
260}
261
aleloia8eb7562016-11-28 07:02:13 -0800262rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000263 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800264 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100265 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800266 "call/transport.h",
267 ]
268}
nisseb2250e52016-12-02 04:01:14 -0800269
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200270rtc_source_set("simulated_network_api") {
271 visibility = [ "*" ]
272 sources = [
273 "test/simulated_network.h",
274 ]
275 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200276 "../rtc_base:criticalsection",
277 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200278 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200279 ]
280}
281
Ying Wang3b790f32018-01-19 17:58:57 +0100282rtc_source_set("fec_controller_api") {
283 visibility = [ "*" ]
284 sources = [
285 "fec_controller.h",
286 ]
287
288 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100289 "..:webrtc_common",
290 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100291 ]
292}
293
kwiberg529662a2017-09-04 05:43:17 -0700294rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000295 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700296 sources = [
297 "array_view.h",
298 ]
299 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100300 "../rtc_base:checks",
301 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700302 ]
303}
304
Niels Möller9155e492017-10-23 11:22:30 +0200305rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000306 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200307 sources = [
308 "refcountedbase.h",
309 ]
310 deps = [
311 "../rtc_base:rtc_base_approved",
312 ]
313}
314
kjellander1993b1d2017-03-06 00:29:21 -0800315rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000316 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800317 testonly = true
318 sources = [
319 "test/fakeconstraints.h",
320 ]
321
kjellander1993b1d2017-03-06 00:29:21 -0800322 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100323 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700324 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800325 ]
326}
327
Ivo Creusen55de08e2018-09-03 11:49:27 +0200328rtc_source_set("neteq_simulator_api") {
329 visibility = [ "*" ]
330 sources = [
331 "test/neteq_simulator.cc",
332 "test/neteq_simulator.h",
333 ]
334}
335
kjellanderfd5b4e92016-06-13 12:08:33 -0700336if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100337 if (rtc_enable_protobuf) {
338 rtc_source_set("audioproc_f_api") {
339 visibility = [ "*" ]
340 testonly = true
341 sources = [
342 "test/audioproc_float.cc",
343 "test/audioproc_float.h",
344 ]
345
346 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000347 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100348 "../modules/audio_processing:audio_processing",
349 "../modules/audio_processing:audioproc_f_impl",
350 ]
351 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200352
353 rtc_source_set("neteq_simulator_factory") {
354 visibility = [ "*" ]
355 testonly = true
356 sources = [
357 "test/neteq_simulator_factory.cc",
358 "test/neteq_simulator_factory.h",
359 ]
360 deps = [
361 ":neteq_simulator_api",
362 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200363 "../rtc_base:checks",
364 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200365 "//third_party/abseil-cpp/absl/memory",
366 ]
367 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100368 }
369
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200370 rtc_source_set("simulcast_test_fixture_api") {
371 visibility = [ "*" ]
372 testonly = true
373 sources = [
374 "test/simulcast_test_fixture.h",
375 ]
376 }
377
378 rtc_source_set("create_simulcast_test_fixture_api") {
379 visibility = [ "*" ]
380 testonly = true
381 sources = [
382 "test/create_simulcast_test_fixture.cc",
383 "test/create_simulcast_test_fixture.h",
384 ]
385 deps = [
386 ":simulcast_test_fixture_api",
387 "../modules/video_coding:simulcast_test_fixture_impl",
388 "../rtc_base:rtc_base_approved",
389 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200390 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200391 ]
392 if (!build_with_chromium && is_clang) {
393 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
394 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
395 }
396 }
397
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200398 rtc_source_set("videocodec_test_fixture_api") {
399 visibility = [ "*" ]
400 testonly = true
401 sources = [
402 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200403 "test/videocodec_test_stats.cc",
404 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200405 ]
406 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200407 "..:webrtc_common",
408 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200409 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200410 "video_codecs:video_codecs_api",
411 ]
412 }
413
414 rtc_source_set("create_videocodec_test_fixture_api") {
415 visibility = [ "*" ]
416 testonly = true
417 sources = [
418 "test/create_videocodec_test_fixture.cc",
419 "test/create_videocodec_test_fixture.h",
420 ]
421 deps = [
422 ":videocodec_test_fixture_api",
423 "../modules/video_coding:video_codecs_test_framework",
424 "../modules/video_coding:videocodec_test_impl",
425 "../rtc_base:rtc_base_approved",
426 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200427 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200428 ]
429 if (!build_with_chromium && is_clang) {
430 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
431 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
432 }
433 }
434
kjellander2f6af9c2017-03-02 22:26:23 -0800435 rtc_source_set("mock_audio_mixer") {
436 testonly = true
437 sources = [
438 "test/mock_audio_mixer.h",
439 ]
440
kjellander2f6af9c2017-03-02 22:26:23 -0800441 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700442 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100443 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800444 ]
445 }
446
Benjamin Wright78410ad2018-10-25 09:52:57 -0700447 rtc_source_set("mock_frame_encryptor") {
448 testonly = true
449 sources = [
450 "test/mock_frame_encryptor.cc",
451 "test/mock_frame_encryptor.h",
452 ]
453 deps = [
454 ":libjingle_peerconnection_api",
455 "../test:test_support",
456 ]
457 }
458
459 rtc_source_set("mock_frame_decryptor") {
460 testonly = true
461 sources = [
462 "test/mock_frame_decryptor.cc",
463 "test/mock_frame_decryptor.h",
464 ]
465 deps = [
466 ":libjingle_peerconnection_api",
467 "../test:test_support",
468 ]
469 }
470
471 rtc_source_set("fake_frame_encryptor") {
472 testonly = true
473 sources = [
474 "test/fake_frame_encryptor.cc",
475 "test/fake_frame_encryptor.h",
476 ]
477 deps = [
478 ":array_view",
479 ":libjingle_peerconnection_api",
480 "..:webrtc_common",
481 "../rtc_base:checks",
482 "../rtc_base:rtc_base_approved",
483 ]
484 }
485
486 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700487 testonly = true
488 sources = [
489 "test/fake_frame_decryptor.cc",
490 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700491 ]
492 deps = [
493 ":array_view",
494 ":libjingle_peerconnection_api",
495 "..:webrtc_common",
496 "../rtc_base:checks",
497 "../rtc_base:rtc_base_approved",
498 ]
499 }
500
Jiawei Ou651b92e2018-06-29 15:46:44 -0700501 rtc_source_set("mock_peerconnectioninterface") {
502 testonly = true
503 sources = [
504 "test/mock_peerconnectioninterface.h",
505 ]
506
507 deps = [
508 ":libjingle_peerconnection_api",
509 "../test:test_support",
510 ]
511 }
512
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100513 rtc_source_set("mock_rtp") {
514 testonly = true
515 sources = [
516 "test/mock_rtpreceiver.h",
517 "test/mock_rtpsender.h",
518 ]
519
520 deps = [
521 ":libjingle_peerconnection_api",
522 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100523 ]
524 }
525
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700526 rtc_source_set("mock_video_bitrate_allocator") {
527 testonly = true
528 sources = [
529 "test/mock_video_bitrate_allocator.h",
530 ]
531
532 deps = [
533 "../api/video:video_bitrate_allocator",
534 "../test:test_support",
535 ]
536 }
537
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800538 rtc_source_set("mock_video_bitrate_allocator_factory") {
539 testonly = true
540 sources = [
541 "test/mock_video_bitrate_allocator_factory.h",
542 ]
543
544 deps = [
545 "../api/video:video_bitrate_allocator_factory",
546 "../test:test_support",
547 ]
548 }
549
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700550 rtc_source_set("mock_video_codec_factory") {
551 testonly = true
552 sources = [
553 "test/mock_video_decoder_factory.h",
554 "test/mock_video_encoder_factory.h",
555 ]
556
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700557 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100558 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700559 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700560 ]
561 }
562
Erik Språngc84cd952018-10-15 11:55:13 +0200563 rtc_source_set("mock_video_decoder") {
564 visibility = [ "*" ]
565
566 testonly = true
567 sources = [
568 "test/mock_video_decoder.cc",
569 "test/mock_video_decoder.h",
570 ]
571
572 deps = [
573 "../api/video_codecs:video_codecs_api",
574 "../test:test_support",
575 ]
576 }
577
Erik Språng6af1c922018-10-12 10:01:30 +0200578 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200579 visibility = [ "*" ]
580
Erik Språng6af1c922018-10-12 10:01:30 +0200581 testonly = true
582 sources = [
583 "test/mock_video_encoder.cc",
584 "test/mock_video_encoder.h",
585 ]
586
587 deps = [
588 "../api/video_codecs:video_codecs_api",
589 "../test:test_support",
590 ]
591 }
592
Anton Sukhanov7940da02018-10-10 10:34:49 -0700593 rtc_source_set("fake_media_transport") {
594 testonly = true
595
596 sources = [
597 "test/fake_media_transport.h",
598 ]
599
600 deps = [
601 ":libjingle_peerconnection_api",
602 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100603 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700604 ]
605 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200606
607 rtc_source_set("loopback_media_transport") {
608 testonly = true
609
610 sources = [
611 "test/loopback_media_transport.h",
612 ]
613
614 deps = [
615 ":libjingle_peerconnection_api",
616 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700617 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200618 ]
619 }
620
621 rtc_source_set("rtc_api_unittests") {
622 testonly = true
623
624 sources = [
625 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200626 "rtcerror_unittest.cc",
627 "rtpparameters_unittest.cc",
628 "test/loopback_media_transport_unittest.cc",
629 ]
630
631 if (!build_with_chromium && is_clang) {
632 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
633 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
634 }
635
636 deps = [
637 ":array_view",
638 ":libjingle_peerconnection_api",
639 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200640 "../rtc_base:checks",
641 "../rtc_base:rtc_base_approved",
642 "../rtc_base:rtc_base_tests_utils",
643 "../test:test_support",
644 "units:units_unittests",
645 ]
646 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700647}