blob: 6c61fd11d2d18f08dc5af5f546ad43958986a7d0 [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
Sebastian Jansson6736df12018-11-21 19:18:39 +0100276rtc_source_set("bitrate_allocation") {
277 visibility = [ "*" ]
278 sources = [
279 "call/bitrate_allocation.h",
280 ]
281 deps = [
282 "units:data_rate",
283 "units:time_delta",
284 ]
285}
286
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200287rtc_source_set("simulated_network_api") {
288 visibility = [ "*" ]
289 sources = [
290 "test/simulated_network.h",
291 ]
292 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200293 "../rtc_base:criticalsection",
294 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200295 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200296 ]
297}
298
Ying Wang3b790f32018-01-19 17:58:57 +0100299rtc_source_set("fec_controller_api") {
300 visibility = [ "*" ]
301 sources = [
302 "fec_controller.h",
303 ]
304
305 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100306 "..:webrtc_common",
307 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100308 ]
309}
310
kwiberg529662a2017-09-04 05:43:17 -0700311rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000312 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700313 sources = [
314 "array_view.h",
315 ]
316 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100317 "../rtc_base:checks",
318 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700319 ]
320}
321
Niels Möller9155e492017-10-23 11:22:30 +0200322rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000323 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200324 sources = [
325 "refcountedbase.h",
326 ]
327 deps = [
328 "../rtc_base:rtc_base_approved",
329 ]
330}
331
kjellander1993b1d2017-03-06 00:29:21 -0800332rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000333 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800334 testonly = true
335 sources = [
336 "test/fakeconstraints.h",
337 ]
338
kjellander1993b1d2017-03-06 00:29:21 -0800339 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100340 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700341 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800342 ]
343}
344
Ivo Creusen55de08e2018-09-03 11:49:27 +0200345rtc_source_set("neteq_simulator_api") {
346 visibility = [ "*" ]
347 sources = [
348 "test/neteq_simulator.cc",
349 "test/neteq_simulator.h",
350 ]
351}
352
kjellanderfd5b4e92016-06-13 12:08:33 -0700353if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100354 if (rtc_enable_protobuf) {
355 rtc_source_set("audioproc_f_api") {
356 visibility = [ "*" ]
357 testonly = true
358 sources = [
359 "test/audioproc_float.cc",
360 "test/audioproc_float.h",
361 ]
362
363 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000364 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100365 "../modules/audio_processing:audio_processing",
366 "../modules/audio_processing:audioproc_f_impl",
367 ]
368 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200369
370 rtc_source_set("neteq_simulator_factory") {
371 visibility = [ "*" ]
372 testonly = true
373 sources = [
374 "test/neteq_simulator_factory.cc",
375 "test/neteq_simulator_factory.h",
376 ]
377 deps = [
378 ":neteq_simulator_api",
379 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200380 "../rtc_base:checks",
381 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200382 "//third_party/abseil-cpp/absl/memory",
383 ]
384 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100385 }
386
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200387 rtc_source_set("simulcast_test_fixture_api") {
388 visibility = [ "*" ]
389 testonly = true
390 sources = [
391 "test/simulcast_test_fixture.h",
392 ]
393 }
394
395 rtc_source_set("create_simulcast_test_fixture_api") {
396 visibility = [ "*" ]
397 testonly = true
398 sources = [
399 "test/create_simulcast_test_fixture.cc",
400 "test/create_simulcast_test_fixture.h",
401 ]
402 deps = [
403 ":simulcast_test_fixture_api",
404 "../modules/video_coding:simulcast_test_fixture_impl",
405 "../rtc_base:rtc_base_approved",
406 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200407 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200408 ]
409 if (!build_with_chromium && is_clang) {
410 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
411 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
412 }
413 }
414
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200415 rtc_source_set("videocodec_test_fixture_api") {
416 visibility = [ "*" ]
417 testonly = true
418 sources = [
419 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200420 "test/videocodec_test_stats.cc",
421 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200422 ]
423 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200424 "..:webrtc_common",
425 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200426 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200427 "video_codecs:video_codecs_api",
428 ]
429 }
430
431 rtc_source_set("create_videocodec_test_fixture_api") {
432 visibility = [ "*" ]
433 testonly = true
434 sources = [
435 "test/create_videocodec_test_fixture.cc",
436 "test/create_videocodec_test_fixture.h",
437 ]
438 deps = [
439 ":videocodec_test_fixture_api",
440 "../modules/video_coding:video_codecs_test_framework",
441 "../modules/video_coding:videocodec_test_impl",
442 "../rtc_base:rtc_base_approved",
443 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200444 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200445 ]
446 if (!build_with_chromium && is_clang) {
447 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
448 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
449 }
450 }
451
kjellander2f6af9c2017-03-02 22:26:23 -0800452 rtc_source_set("mock_audio_mixer") {
453 testonly = true
454 sources = [
455 "test/mock_audio_mixer.h",
456 ]
457
kjellander2f6af9c2017-03-02 22:26:23 -0800458 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700459 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100460 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800461 ]
462 }
463
Benjamin Wright78410ad2018-10-25 09:52:57 -0700464 rtc_source_set("mock_frame_encryptor") {
465 testonly = true
466 sources = [
467 "test/mock_frame_encryptor.cc",
468 "test/mock_frame_encryptor.h",
469 ]
470 deps = [
471 ":libjingle_peerconnection_api",
472 "../test:test_support",
473 ]
474 }
475
476 rtc_source_set("mock_frame_decryptor") {
477 testonly = true
478 sources = [
479 "test/mock_frame_decryptor.cc",
480 "test/mock_frame_decryptor.h",
481 ]
482 deps = [
483 ":libjingle_peerconnection_api",
484 "../test:test_support",
485 ]
486 }
487
488 rtc_source_set("fake_frame_encryptor") {
489 testonly = true
490 sources = [
491 "test/fake_frame_encryptor.cc",
492 "test/fake_frame_encryptor.h",
493 ]
494 deps = [
495 ":array_view",
496 ":libjingle_peerconnection_api",
497 "..:webrtc_common",
498 "../rtc_base:checks",
499 "../rtc_base:rtc_base_approved",
500 ]
501 }
502
503 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700504 testonly = true
505 sources = [
506 "test/fake_frame_decryptor.cc",
507 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700508 ]
509 deps = [
510 ":array_view",
511 ":libjingle_peerconnection_api",
512 "..:webrtc_common",
513 "../rtc_base:checks",
514 "../rtc_base:rtc_base_approved",
515 ]
516 }
517
Jiawei Ou651b92e2018-06-29 15:46:44 -0700518 rtc_source_set("mock_peerconnectioninterface") {
519 testonly = true
520 sources = [
521 "test/mock_peerconnectioninterface.h",
522 ]
523
524 deps = [
525 ":libjingle_peerconnection_api",
526 "../test:test_support",
527 ]
528 }
529
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100530 rtc_source_set("mock_rtp") {
531 testonly = true
532 sources = [
533 "test/mock_rtpreceiver.h",
534 "test/mock_rtpsender.h",
535 ]
536
537 deps = [
538 ":libjingle_peerconnection_api",
539 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100540 ]
541 }
542
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700543 rtc_source_set("mock_video_bitrate_allocator") {
544 testonly = true
545 sources = [
546 "test/mock_video_bitrate_allocator.h",
547 ]
548
549 deps = [
550 "../api/video:video_bitrate_allocator",
551 "../test:test_support",
552 ]
553 }
554
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800555 rtc_source_set("mock_video_bitrate_allocator_factory") {
556 testonly = true
557 sources = [
558 "test/mock_video_bitrate_allocator_factory.h",
559 ]
560
561 deps = [
562 "../api/video:video_bitrate_allocator_factory",
563 "../test:test_support",
564 ]
565 }
566
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700567 rtc_source_set("mock_video_codec_factory") {
568 testonly = true
569 sources = [
570 "test/mock_video_decoder_factory.h",
571 "test/mock_video_encoder_factory.h",
572 ]
573
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700574 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100575 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700576 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700577 ]
578 }
579
Erik Språngc84cd952018-10-15 11:55:13 +0200580 rtc_source_set("mock_video_decoder") {
581 visibility = [ "*" ]
582
583 testonly = true
584 sources = [
585 "test/mock_video_decoder.cc",
586 "test/mock_video_decoder.h",
587 ]
588
589 deps = [
590 "../api/video_codecs:video_codecs_api",
591 "../test:test_support",
592 ]
593 }
594
Erik Språng6af1c922018-10-12 10:01:30 +0200595 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200596 visibility = [ "*" ]
597
Erik Språng6af1c922018-10-12 10:01:30 +0200598 testonly = true
599 sources = [
600 "test/mock_video_encoder.cc",
601 "test/mock_video_encoder.h",
602 ]
603
604 deps = [
605 "../api/video_codecs:video_codecs_api",
606 "../test:test_support",
607 ]
608 }
609
Anton Sukhanov7940da02018-10-10 10:34:49 -0700610 rtc_source_set("fake_media_transport") {
611 testonly = true
612
613 sources = [
614 "test/fake_media_transport.h",
615 ]
616
617 deps = [
618 ":libjingle_peerconnection_api",
619 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100620 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700621 ]
622 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200623
624 rtc_source_set("loopback_media_transport") {
625 testonly = true
626
627 sources = [
628 "test/loopback_media_transport.h",
629 ]
630
631 deps = [
632 ":libjingle_peerconnection_api",
633 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700634 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200635 ]
636 }
637
638 rtc_source_set("rtc_api_unittests") {
639 testonly = true
640
641 sources = [
642 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200643 "rtcerror_unittest.cc",
644 "rtpparameters_unittest.cc",
645 "test/loopback_media_transport_unittest.cc",
646 ]
647
648 if (!build_with_chromium && is_clang) {
649 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
650 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
651 }
652
653 deps = [
654 ":array_view",
655 ":libjingle_peerconnection_api",
656 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200657 "../rtc_base:checks",
658 "../rtc_base:rtc_base_approved",
659 "../rtc_base:rtc_base_tests_utils",
660 "../test:test_support",
661 "units:units_unittests",
662 ]
663 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700664}