blob: 813a35ef072c2ac9b549eb86ac0e0c280ff63824 [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 Bonadei2ff3f492018-11-22 09:00:13 +010049 allow_poison = [ "software_video_codecs" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010050 sources = [
51 "create_peerconnection_factory.cc",
52 "create_peerconnection_factory.h",
53 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010054 deps = [
55 ":callfactory_api",
56 ":fec_controller_api",
57 ":libjingle_peerconnection_api",
58 "../logging:rtc_event_log_api",
59 "../logging:rtc_event_log_impl_base",
60 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010061 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010062 "../modules/audio_device:audio_device_api",
63 "../modules/audio_processing:api",
64 "../pc:peerconnection",
65 "../rtc_base:ptr_util",
66 "../rtc_base:rtc_base",
67 "../rtc_base:rtc_base_approved",
68 "audio:audio_mixer_api",
69 "audio_codecs:audio_codecs_api",
70 "transport:network_control",
71 "video_codecs:video_codecs_api",
72 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010073}
74
ossu7bb87ee2017-01-23 04:56:25 -080075rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000076 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070077 cflags = []
78 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070079 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020080 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070081 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020082 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070083 "crypto/cryptooptions.cc",
84 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070085 "crypto/framedecryptorinterface.h",
86 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010087 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020088 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070089 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070090 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080091 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070092 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020093 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070094 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070095 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020096 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040097 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070098 "mediaconstraintsinterface.cc",
99 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -0800100 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +0100101 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700102 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700103 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -0800104 "mediatypes.cc",
105 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700106 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -0700107 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200108 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +0100109 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700110 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700111 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700112 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -0800113 "rtcerror.cc",
114 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100115 "rtp_headers.cc",
116 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200117 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700118 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +0100119 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700120 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700121 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700122 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200123 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800124 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100125 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700126 "statstypes.cc",
127 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200128 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800129 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700130 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700131 ]
kjellanderc76dc952016-06-03 03:09:32 -0700132 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100133 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100134 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100135 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100136 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100137 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700138 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100139 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100140 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200141 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200142 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200143 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200144 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200145 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100146
147 # Basically, don't add stuff here. You might break sensitive downstream
148 # targets like pnacl. API should not depend on anything outside of this
149 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700150 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100151 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100152 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100153 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100154 "../rtc_base:checks",
155 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700156 "../rtc_base:rtc_base",
157 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100158 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200159 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700160 ]
Niels Möller8366e172018-02-14 12:20:13 +0100161
kjellander8a116632017-04-21 05:17:08 -0700162 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100163 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700164 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
165 }
ossu7bb87ee2017-01-23 04:56:25 -0800166}
kjellanderc76dc952016-06-03 03:09:32 -0700167
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100168rtc_source_set("scoped_refptr") {
169 visibility = [ "*" ]
170 sources = [
171 "scoped_refptr.h",
172 ]
173}
174
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200175rtc_source_set("video_quality_test_fixture_api") {
176 visibility = [ "*" ]
177 testonly = true
178 sources = [
179 "test/video_quality_test_fixture.h",
180 ]
181 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200182 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200183 ":libjingle_peerconnection_api",
184 ":simulated_network_api",
185 "../call:fake_network",
186 "../call:rtp_interfaces",
187 "../test:test_common",
188 "../test:video_test_common",
189 "video_codecs:video_codecs_api",
190 ]
191 if (!build_with_chromium && is_clang) {
192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
194 }
195}
196
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200197rtc_source_set("test_dependency_factory") {
198 visibility = [ "*" ]
199 testonly = true
200 sources = [
201 "test/test_dependency_factory.cc",
202 "test/test_dependency_factory.h",
203 ]
204 deps = [
205 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100206 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200207 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900208 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200209 ]
210 if (!build_with_chromium && is_clang) {
211 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
212 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
213 }
214}
215
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200216if (rtc_include_tests) {
217 rtc_source_set("create_video_quality_test_fixture_api") {
218 visibility = [ "*" ]
219 testonly = true
220 sources = [
221 "test/create_video_quality_test_fixture.cc",
222 "test/create_video_quality_test_fixture.h",
223 ]
224 deps = [
225 ":fec_controller_api",
226 ":video_quality_test_fixture_api",
227 "../rtc_base:ptr_util",
228 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200229 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +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}
237
Elad Alon80810732017-10-06 13:07:32 +0200238rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000239 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200240 sources = [
241 "rtceventlogoutput.h",
242 ]
243}
244
deadbeefe814a0d2017-02-25 18:15:09 -0800245rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000246 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800247 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800248 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800249 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800250 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800251 ]
252
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100253 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800254 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200255 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800256 ]
257}
258
hbos74e1a4f2016-09-15 23:33:01 -0700259rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000260 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700261 cflags = []
262 sources = [
263 "stats/rtcstats.h",
264 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800265 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700266 "stats/rtcstatsreport.h",
267 ]
268
269 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100270 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700271 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200272 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700273 ]
274}
275
Niels Möllera6fe2612018-01-19 11:28:54 +0100276rtc_source_set("audio_options_api") {
277 visibility = [ "*" ]
278 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200279 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100280 "audio_options.h",
281 ]
282
283 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100284 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200285 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200286 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100287 ]
288}
289
aleloia8eb7562016-11-28 07:02:13 -0800290rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000291 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800292 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100293 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800294 "call/transport.h",
295 ]
296}
nisseb2250e52016-12-02 04:01:14 -0800297
Sebastian Jansson6736df12018-11-21 19:18:39 +0100298rtc_source_set("bitrate_allocation") {
299 visibility = [ "*" ]
300 sources = [
301 "call/bitrate_allocation.h",
302 ]
303 deps = [
304 "units:data_rate",
305 "units:time_delta",
306 ]
307}
308
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309rtc_source_set("simulated_network_api") {
310 visibility = [ "*" ]
311 sources = [
312 "test/simulated_network.h",
313 ]
314 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200315 "../rtc_base:criticalsection",
316 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200317 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200318 ]
319}
320
Ying Wang3b790f32018-01-19 17:58:57 +0100321rtc_source_set("fec_controller_api") {
322 visibility = [ "*" ]
323 sources = [
324 "fec_controller.h",
325 ]
326
327 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100328 "..:webrtc_common",
329 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100330 ]
331}
332
kwiberg529662a2017-09-04 05:43:17 -0700333rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000334 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700335 sources = [
336 "array_view.h",
337 ]
338 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100339 "../rtc_base:checks",
340 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700341 ]
342}
343
Niels Möller9155e492017-10-23 11:22:30 +0200344rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000345 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200346 sources = [
347 "refcountedbase.h",
348 ]
349 deps = [
350 "../rtc_base:rtc_base_approved",
351 ]
352}
353
kjellander1993b1d2017-03-06 00:29:21 -0800354rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000355 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800356 testonly = true
357 sources = [
358 "test/fakeconstraints.h",
359 ]
360
kjellander1993b1d2017-03-06 00:29:21 -0800361 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100362 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700363 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800364 ]
365}
366
Ivo Creusen55de08e2018-09-03 11:49:27 +0200367rtc_source_set("neteq_simulator_api") {
368 visibility = [ "*" ]
369 sources = [
370 "test/neteq_simulator.cc",
371 "test/neteq_simulator.h",
372 ]
373}
374
kjellanderfd5b4e92016-06-13 12:08:33 -0700375if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100376 if (rtc_enable_protobuf) {
377 rtc_source_set("audioproc_f_api") {
378 visibility = [ "*" ]
379 testonly = true
380 sources = [
381 "test/audioproc_float.cc",
382 "test/audioproc_float.h",
383 ]
384
385 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000386 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100387 "../modules/audio_processing:audio_processing",
388 "../modules/audio_processing:audioproc_f_impl",
389 ]
390 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200391
392 rtc_source_set("neteq_simulator_factory") {
393 visibility = [ "*" ]
394 testonly = true
395 sources = [
396 "test/neteq_simulator_factory.cc",
397 "test/neteq_simulator_factory.h",
398 ]
399 deps = [
400 ":neteq_simulator_api",
401 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200402 "../rtc_base:checks",
403 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200404 "//third_party/abseil-cpp/absl/memory",
405 ]
406 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100407 }
408
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200409 rtc_source_set("simulcast_test_fixture_api") {
410 visibility = [ "*" ]
411 testonly = true
412 sources = [
413 "test/simulcast_test_fixture.h",
414 ]
415 }
416
417 rtc_source_set("create_simulcast_test_fixture_api") {
418 visibility = [ "*" ]
419 testonly = true
420 sources = [
421 "test/create_simulcast_test_fixture.cc",
422 "test/create_simulcast_test_fixture.h",
423 ]
424 deps = [
425 ":simulcast_test_fixture_api",
426 "../modules/video_coding:simulcast_test_fixture_impl",
427 "../rtc_base:rtc_base_approved",
428 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200429 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200430 ]
431 if (!build_with_chromium && is_clang) {
432 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
433 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
434 }
435 }
436
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200437 rtc_source_set("videocodec_test_fixture_api") {
438 visibility = [ "*" ]
439 testonly = true
440 sources = [
441 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200442 "test/videocodec_test_stats.cc",
443 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200444 ]
445 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200446 "..:webrtc_common",
447 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200448 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200449 "video_codecs:video_codecs_api",
450 ]
451 }
452
453 rtc_source_set("create_videocodec_test_fixture_api") {
454 visibility = [ "*" ]
455 testonly = true
456 sources = [
457 "test/create_videocodec_test_fixture.cc",
458 "test/create_videocodec_test_fixture.h",
459 ]
460 deps = [
461 ":videocodec_test_fixture_api",
462 "../modules/video_coding:video_codecs_test_framework",
463 "../modules/video_coding:videocodec_test_impl",
464 "../rtc_base:rtc_base_approved",
465 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200466 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200467 ]
468 if (!build_with_chromium && is_clang) {
469 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
470 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
471 }
472 }
473
kjellander2f6af9c2017-03-02 22:26:23 -0800474 rtc_source_set("mock_audio_mixer") {
475 testonly = true
476 sources = [
477 "test/mock_audio_mixer.h",
478 ]
479
kjellander2f6af9c2017-03-02 22:26:23 -0800480 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700481 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100482 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800483 ]
484 }
485
Benjamin Wright78410ad2018-10-25 09:52:57 -0700486 rtc_source_set("mock_frame_encryptor") {
487 testonly = true
488 sources = [
489 "test/mock_frame_encryptor.cc",
490 "test/mock_frame_encryptor.h",
491 ]
492 deps = [
493 ":libjingle_peerconnection_api",
494 "../test:test_support",
495 ]
496 }
497
498 rtc_source_set("mock_frame_decryptor") {
499 testonly = true
500 sources = [
501 "test/mock_frame_decryptor.cc",
502 "test/mock_frame_decryptor.h",
503 ]
504 deps = [
505 ":libjingle_peerconnection_api",
506 "../test:test_support",
507 ]
508 }
509
510 rtc_source_set("fake_frame_encryptor") {
511 testonly = true
512 sources = [
513 "test/fake_frame_encryptor.cc",
514 "test/fake_frame_encryptor.h",
515 ]
516 deps = [
517 ":array_view",
518 ":libjingle_peerconnection_api",
519 "..:webrtc_common",
520 "../rtc_base:checks",
521 "../rtc_base:rtc_base_approved",
522 ]
523 }
524
525 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700526 testonly = true
527 sources = [
528 "test/fake_frame_decryptor.cc",
529 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700530 ]
531 deps = [
532 ":array_view",
533 ":libjingle_peerconnection_api",
534 "..:webrtc_common",
535 "../rtc_base:checks",
536 "../rtc_base:rtc_base_approved",
537 ]
538 }
539
Jiawei Ou651b92e2018-06-29 15:46:44 -0700540 rtc_source_set("mock_peerconnectioninterface") {
541 testonly = true
542 sources = [
543 "test/mock_peerconnectioninterface.h",
544 ]
545
546 deps = [
547 ":libjingle_peerconnection_api",
548 "../test:test_support",
549 ]
550 }
551
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100552 rtc_source_set("mock_rtp") {
553 testonly = true
554 sources = [
555 "test/mock_rtpreceiver.h",
556 "test/mock_rtpsender.h",
557 ]
558
559 deps = [
560 ":libjingle_peerconnection_api",
561 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100562 ]
563 }
564
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700565 rtc_source_set("mock_video_bitrate_allocator") {
566 testonly = true
567 sources = [
568 "test/mock_video_bitrate_allocator.h",
569 ]
570
571 deps = [
572 "../api/video:video_bitrate_allocator",
573 "../test:test_support",
574 ]
575 }
576
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800577 rtc_source_set("mock_video_bitrate_allocator_factory") {
578 testonly = true
579 sources = [
580 "test/mock_video_bitrate_allocator_factory.h",
581 ]
582
583 deps = [
584 "../api/video:video_bitrate_allocator_factory",
585 "../test:test_support",
586 ]
587 }
588
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700589 rtc_source_set("mock_video_codec_factory") {
590 testonly = true
591 sources = [
592 "test/mock_video_decoder_factory.h",
593 "test/mock_video_encoder_factory.h",
594 ]
595
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700596 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100597 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700598 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700599 ]
600 }
601
Erik Språngc84cd952018-10-15 11:55:13 +0200602 rtc_source_set("mock_video_decoder") {
603 visibility = [ "*" ]
604
605 testonly = true
606 sources = [
607 "test/mock_video_decoder.cc",
608 "test/mock_video_decoder.h",
609 ]
610
611 deps = [
612 "../api/video_codecs:video_codecs_api",
613 "../test:test_support",
614 ]
615 }
616
Erik Språng6af1c922018-10-12 10:01:30 +0200617 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200618 visibility = [ "*" ]
619
Erik Språng6af1c922018-10-12 10:01:30 +0200620 testonly = true
621 sources = [
622 "test/mock_video_encoder.cc",
623 "test/mock_video_encoder.h",
624 ]
625
626 deps = [
627 "../api/video_codecs:video_codecs_api",
628 "../test:test_support",
629 ]
630 }
631
Anton Sukhanov7940da02018-10-10 10:34:49 -0700632 rtc_source_set("fake_media_transport") {
633 testonly = true
634
635 sources = [
636 "test/fake_media_transport.h",
637 ]
638
639 deps = [
640 ":libjingle_peerconnection_api",
641 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100642 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700643 ]
644 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200645
646 rtc_source_set("loopback_media_transport") {
647 testonly = true
648
649 sources = [
650 "test/loopback_media_transport.h",
651 ]
652
653 deps = [
654 ":libjingle_peerconnection_api",
655 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700656 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200657 ]
658 }
659
660 rtc_source_set("rtc_api_unittests") {
661 testonly = true
662
663 sources = [
664 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200665 "rtcerror_unittest.cc",
666 "rtpparameters_unittest.cc",
667 "test/loopback_media_transport_unittest.cc",
668 ]
669
670 if (!build_with_chromium && is_clang) {
671 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
672 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
673 }
674
675 deps = [
676 ":array_view",
677 ":libjingle_peerconnection_api",
678 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200679 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100680 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200681 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200682 "../test:test_support",
683 "units:units_unittests",
684 ]
685 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700686}