blob: 45f0a95e59a2d40c807ca3ea184d0d04619733d1 [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
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100148rtc_source_set("scoped_refptr") {
149 visibility = [ "*" ]
150 sources = [
151 "scoped_refptr.h",
152 ]
153}
154
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200155rtc_source_set("video_quality_test_fixture_api") {
156 visibility = [ "*" ]
157 testonly = true
158 sources = [
159 "test/video_quality_test_fixture.h",
160 ]
161 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200162 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200163 ":libjingle_peerconnection_api",
164 ":simulated_network_api",
165 "../call:fake_network",
166 "../call:rtp_interfaces",
167 "../test:test_common",
168 "../test:video_test_common",
169 "video_codecs:video_codecs_api",
170 ]
171 if (!build_with_chromium && is_clang) {
172 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
173 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
174 }
175}
176
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200177rtc_source_set("test_dependency_factory") {
178 visibility = [ "*" ]
179 testonly = true
180 sources = [
181 "test/test_dependency_factory.cc",
182 "test/test_dependency_factory.h",
183 ]
184 deps = [
185 ":video_quality_test_fixture_api",
186 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900187 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200188 ]
189 if (!build_with_chromium && is_clang) {
190 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
191 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
192 }
193}
194
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200195if (rtc_include_tests) {
196 rtc_source_set("create_video_quality_test_fixture_api") {
197 visibility = [ "*" ]
198 testonly = true
199 sources = [
200 "test/create_video_quality_test_fixture.cc",
201 "test/create_video_quality_test_fixture.h",
202 ]
203 deps = [
204 ":fec_controller_api",
205 ":video_quality_test_fixture_api",
206 "../rtc_base:ptr_util",
207 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200208 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +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}
216
Elad Alon80810732017-10-06 13:07:32 +0200217rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000218 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200219 sources = [
220 "rtceventlogoutput.h",
221 ]
222}
223
deadbeefe814a0d2017-02-25 18:15:09 -0800224rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000225 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800226 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800227 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800228 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800229 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800230 ]
231
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100232 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800233 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200234 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800235 ]
236}
237
hbos74e1a4f2016-09-15 23:33:01 -0700238rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000239 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700240 cflags = []
241 sources = [
242 "stats/rtcstats.h",
243 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800244 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700245 "stats/rtcstatsreport.h",
246 ]
247
248 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100249 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700250 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200251 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700252 ]
253}
254
Niels Möllera6fe2612018-01-19 11:28:54 +0100255rtc_source_set("audio_options_api") {
256 visibility = [ "*" ]
257 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200258 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100259 "audio_options.h",
260 ]
261
262 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200263 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200264 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100265 ]
266}
267
aleloia8eb7562016-11-28 07:02:13 -0800268rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000269 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800270 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100271 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800272 "call/transport.h",
273 ]
274}
nisseb2250e52016-12-02 04:01:14 -0800275
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200276rtc_source_set("simulated_network_api") {
277 visibility = [ "*" ]
278 sources = [
279 "test/simulated_network.h",
280 ]
281 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200282 "../rtc_base:criticalsection",
283 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200284 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200285 ]
286}
287
Ying Wang3b790f32018-01-19 17:58:57 +0100288rtc_source_set("fec_controller_api") {
289 visibility = [ "*" ]
290 sources = [
291 "fec_controller.h",
292 ]
293
294 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100295 "..:webrtc_common",
296 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100297 ]
298}
299
kwiberg529662a2017-09-04 05:43:17 -0700300rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000301 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700302 sources = [
303 "array_view.h",
304 ]
305 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100306 "../rtc_base:checks",
307 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700308 ]
309}
310
Niels Möller9155e492017-10-23 11:22:30 +0200311rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000312 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200313 sources = [
314 "refcountedbase.h",
315 ]
316 deps = [
317 "../rtc_base:rtc_base_approved",
318 ]
319}
320
kjellander1993b1d2017-03-06 00:29:21 -0800321rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000322 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800323 testonly = true
324 sources = [
325 "test/fakeconstraints.h",
326 ]
327
kjellander1993b1d2017-03-06 00:29:21 -0800328 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100329 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700330 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800331 ]
332}
333
Ivo Creusen55de08e2018-09-03 11:49:27 +0200334rtc_source_set("neteq_simulator_api") {
335 visibility = [ "*" ]
336 sources = [
337 "test/neteq_simulator.cc",
338 "test/neteq_simulator.h",
339 ]
340}
341
kjellanderfd5b4e92016-06-13 12:08:33 -0700342if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100343 if (rtc_enable_protobuf) {
344 rtc_source_set("audioproc_f_api") {
345 visibility = [ "*" ]
346 testonly = true
347 sources = [
348 "test/audioproc_float.cc",
349 "test/audioproc_float.h",
350 ]
351
352 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000353 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100354 "../modules/audio_processing:audio_processing",
355 "../modules/audio_processing:audioproc_f_impl",
356 ]
357 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200358
359 rtc_source_set("neteq_simulator_factory") {
360 visibility = [ "*" ]
361 testonly = true
362 sources = [
363 "test/neteq_simulator_factory.cc",
364 "test/neteq_simulator_factory.h",
365 ]
366 deps = [
367 ":neteq_simulator_api",
368 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200369 "../rtc_base:checks",
370 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200371 "//third_party/abseil-cpp/absl/memory",
372 ]
373 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100374 }
375
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200376 rtc_source_set("simulcast_test_fixture_api") {
377 visibility = [ "*" ]
378 testonly = true
379 sources = [
380 "test/simulcast_test_fixture.h",
381 ]
382 }
383
384 rtc_source_set("create_simulcast_test_fixture_api") {
385 visibility = [ "*" ]
386 testonly = true
387 sources = [
388 "test/create_simulcast_test_fixture.cc",
389 "test/create_simulcast_test_fixture.h",
390 ]
391 deps = [
392 ":simulcast_test_fixture_api",
393 "../modules/video_coding:simulcast_test_fixture_impl",
394 "../rtc_base:rtc_base_approved",
395 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200396 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200397 ]
398 if (!build_with_chromium && is_clang) {
399 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
400 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
401 }
402 }
403
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200404 rtc_source_set("videocodec_test_fixture_api") {
405 visibility = [ "*" ]
406 testonly = true
407 sources = [
408 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200409 "test/videocodec_test_stats.cc",
410 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200411 ]
412 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200413 "..:webrtc_common",
414 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200415 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200416 "video_codecs:video_codecs_api",
417 ]
418 }
419
420 rtc_source_set("create_videocodec_test_fixture_api") {
421 visibility = [ "*" ]
422 testonly = true
423 sources = [
424 "test/create_videocodec_test_fixture.cc",
425 "test/create_videocodec_test_fixture.h",
426 ]
427 deps = [
428 ":videocodec_test_fixture_api",
429 "../modules/video_coding:video_codecs_test_framework",
430 "../modules/video_coding:videocodec_test_impl",
431 "../rtc_base:rtc_base_approved",
432 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200433 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200434 ]
435 if (!build_with_chromium && is_clang) {
436 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
437 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
438 }
439 }
440
kjellander2f6af9c2017-03-02 22:26:23 -0800441 rtc_source_set("mock_audio_mixer") {
442 testonly = true
443 sources = [
444 "test/mock_audio_mixer.h",
445 ]
446
kjellander2f6af9c2017-03-02 22:26:23 -0800447 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700448 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100449 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800450 ]
451 }
452
Benjamin Wright78410ad2018-10-25 09:52:57 -0700453 rtc_source_set("mock_frame_encryptor") {
454 testonly = true
455 sources = [
456 "test/mock_frame_encryptor.cc",
457 "test/mock_frame_encryptor.h",
458 ]
459 deps = [
460 ":libjingle_peerconnection_api",
461 "../test:test_support",
462 ]
463 }
464
465 rtc_source_set("mock_frame_decryptor") {
466 testonly = true
467 sources = [
468 "test/mock_frame_decryptor.cc",
469 "test/mock_frame_decryptor.h",
470 ]
471 deps = [
472 ":libjingle_peerconnection_api",
473 "../test:test_support",
474 ]
475 }
476
477 rtc_source_set("fake_frame_encryptor") {
478 testonly = true
479 sources = [
480 "test/fake_frame_encryptor.cc",
481 "test/fake_frame_encryptor.h",
482 ]
483 deps = [
484 ":array_view",
485 ":libjingle_peerconnection_api",
486 "..:webrtc_common",
487 "../rtc_base:checks",
488 "../rtc_base:rtc_base_approved",
489 ]
490 }
491
492 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700493 testonly = true
494 sources = [
495 "test/fake_frame_decryptor.cc",
496 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700497 ]
498 deps = [
499 ":array_view",
500 ":libjingle_peerconnection_api",
501 "..:webrtc_common",
502 "../rtc_base:checks",
503 "../rtc_base:rtc_base_approved",
504 ]
505 }
506
Jiawei Ou651b92e2018-06-29 15:46:44 -0700507 rtc_source_set("mock_peerconnectioninterface") {
508 testonly = true
509 sources = [
510 "test/mock_peerconnectioninterface.h",
511 ]
512
513 deps = [
514 ":libjingle_peerconnection_api",
515 "../test:test_support",
516 ]
517 }
518
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100519 rtc_source_set("mock_rtp") {
520 testonly = true
521 sources = [
522 "test/mock_rtpreceiver.h",
523 "test/mock_rtpsender.h",
524 ]
525
526 deps = [
527 ":libjingle_peerconnection_api",
528 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100529 ]
530 }
531
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700532 rtc_source_set("mock_video_bitrate_allocator") {
533 testonly = true
534 sources = [
535 "test/mock_video_bitrate_allocator.h",
536 ]
537
538 deps = [
539 "../api/video:video_bitrate_allocator",
540 "../test:test_support",
541 ]
542 }
543
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800544 rtc_source_set("mock_video_bitrate_allocator_factory") {
545 testonly = true
546 sources = [
547 "test/mock_video_bitrate_allocator_factory.h",
548 ]
549
550 deps = [
551 "../api/video:video_bitrate_allocator_factory",
552 "../test:test_support",
553 ]
554 }
555
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700556 rtc_source_set("mock_video_codec_factory") {
557 testonly = true
558 sources = [
559 "test/mock_video_decoder_factory.h",
560 "test/mock_video_encoder_factory.h",
561 ]
562
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700563 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100564 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700565 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700566 ]
567 }
568
Erik Språngc84cd952018-10-15 11:55:13 +0200569 rtc_source_set("mock_video_decoder") {
570 visibility = [ "*" ]
571
572 testonly = true
573 sources = [
574 "test/mock_video_decoder.cc",
575 "test/mock_video_decoder.h",
576 ]
577
578 deps = [
579 "../api/video_codecs:video_codecs_api",
580 "../test:test_support",
581 ]
582 }
583
Erik Språng6af1c922018-10-12 10:01:30 +0200584 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200585 visibility = [ "*" ]
586
Erik Språng6af1c922018-10-12 10:01:30 +0200587 testonly = true
588 sources = [
589 "test/mock_video_encoder.cc",
590 "test/mock_video_encoder.h",
591 ]
592
593 deps = [
594 "../api/video_codecs:video_codecs_api",
595 "../test:test_support",
596 ]
597 }
598
Anton Sukhanov7940da02018-10-10 10:34:49 -0700599 rtc_source_set("fake_media_transport") {
600 testonly = true
601
602 sources = [
603 "test/fake_media_transport.h",
604 ]
605
606 deps = [
607 ":libjingle_peerconnection_api",
608 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100609 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700610 ]
611 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200612
613 rtc_source_set("loopback_media_transport") {
614 testonly = true
615
616 sources = [
617 "test/loopback_media_transport.h",
618 ]
619
620 deps = [
621 ":libjingle_peerconnection_api",
622 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700623 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200624 ]
625 }
626
627 rtc_source_set("rtc_api_unittests") {
628 testonly = true
629
630 sources = [
631 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200632 "rtcerror_unittest.cc",
633 "rtpparameters_unittest.cc",
634 "test/loopback_media_transport_unittest.cc",
635 ]
636
637 if (!build_with_chromium && is_clang) {
638 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
639 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
640 }
641
642 deps = [
643 ":array_view",
644 ":libjingle_peerconnection_api",
645 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200646 "../rtc_base:checks",
647 "../rtc_base:rtc_base_approved",
648 "../rtc_base:rtc_base_tests_utils",
649 "../test:test_support",
650 "units:units_unittests",
651 ]
652 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700653}