blob: 13a7a29d9340b555906cf559157879ccde1c5c91 [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") {
48 sources = [
49 "create_peerconnection_factory.cc",
50 "create_peerconnection_factory.h",
51 ]
52}
53
ossu7bb87ee2017-01-23 04:56:25 -080054rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000055 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070056 cflags = []
57 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070058 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020059 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070060 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020061 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070062 "crypto/cryptooptions.cc",
63 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070064 "crypto/framedecryptorinterface.h",
65 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010066 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020067 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070068 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070069 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080070 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070071 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020072 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070073 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070074 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020075 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040076 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070077 "mediaconstraintsinterface.cc",
78 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080079 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010080 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070081 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070082 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080083 "mediatypes.cc",
84 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070085 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070086 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020087 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010088 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070089 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070090 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070091 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080092 "rtcerror.cc",
93 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010094 "rtp_headers.cc",
95 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020096 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070097 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010098 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070099 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700100 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700101 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200102 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800103 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100104 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700105 "statstypes.cc",
106 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200107 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800108 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700109 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700110 ]
kjellanderc76dc952016-06-03 03:09:32 -0700111 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100112 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100113 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100114 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100115 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100116 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700117 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100118 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100119 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200120 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200121 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200122 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200123 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200124 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100125
126 # Basically, don't add stuff here. You might break sensitive downstream
127 # targets like pnacl. API should not depend on anything outside of this
128 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700129 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100130 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100131 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100132 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100133 "../rtc_base:checks",
134 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700135 "../rtc_base:rtc_base",
136 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100137 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200138 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700139 ]
Niels Möller8366e172018-02-14 12:20:13 +0100140
kjellander8a116632017-04-21 05:17:08 -0700141 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100142 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700143 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
144 }
ossu7bb87ee2017-01-23 04:56:25 -0800145}
kjellanderc76dc952016-06-03 03:09:32 -0700146
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200147rtc_source_set("video_quality_test_fixture_api") {
148 visibility = [ "*" ]
149 testonly = true
150 sources = [
151 "test/video_quality_test_fixture.h",
152 ]
153 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200154 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200155 ":libjingle_peerconnection_api",
156 ":simulated_network_api",
157 "../call:fake_network",
158 "../call:rtp_interfaces",
159 "../test:test_common",
160 "../test:video_test_common",
161 "video_codecs:video_codecs_api",
162 ]
163 if (!build_with_chromium && is_clang) {
164 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
165 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
166 }
167}
168
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200169rtc_source_set("test_dependency_factory") {
170 visibility = [ "*" ]
171 testonly = true
172 sources = [
173 "test/test_dependency_factory.cc",
174 "test/test_dependency_factory.h",
175 ]
176 deps = [
177 ":video_quality_test_fixture_api",
178 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900179 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200180 ]
181 if (!build_with_chromium && is_clang) {
182 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
183 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
184 }
185}
186
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200187if (rtc_include_tests) {
188 rtc_source_set("create_video_quality_test_fixture_api") {
189 visibility = [ "*" ]
190 testonly = true
191 sources = [
192 "test/create_video_quality_test_fixture.cc",
193 "test/create_video_quality_test_fixture.h",
194 ]
195 deps = [
196 ":fec_controller_api",
197 ":video_quality_test_fixture_api",
198 "../rtc_base:ptr_util",
199 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200200 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200201 ]
202 if (!build_with_chromium && is_clang) {
203 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
204 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
205 }
206 }
207}
208
Elad Alon80810732017-10-06 13:07:32 +0200209rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000210 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200211 sources = [
212 "rtceventlogoutput.h",
213 ]
214}
215
deadbeefe814a0d2017-02-25 18:15:09 -0800216rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000217 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800218 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800219 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800220 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800221 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800222 ]
223
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100224 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800225 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100226 "..:webrtc_common",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200227 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800228 ]
229}
230
hbos74e1a4f2016-09-15 23:33:01 -0700231rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000232 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700233 cflags = []
234 sources = [
235 "stats/rtcstats.h",
236 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800237 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700238 "stats/rtcstatsreport.h",
239 ]
240
241 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100242 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700243 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200244 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700245 ]
246}
247
Niels Möllera6fe2612018-01-19 11:28:54 +0100248rtc_source_set("audio_options_api") {
249 visibility = [ "*" ]
250 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200251 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100252 "audio_options.h",
253 ]
254
255 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200256 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200257 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100258 ]
259}
260
aleloia8eb7562016-11-28 07:02:13 -0800261rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000262 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800263 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100264 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800265 "call/transport.h",
266 ]
267}
nisseb2250e52016-12-02 04:01:14 -0800268
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200269rtc_source_set("simulated_network_api") {
270 visibility = [ "*" ]
271 sources = [
272 "test/simulated_network.h",
273 ]
274 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200275 "../rtc_base:criticalsection",
276 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200277 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200278 ]
279}
280
Ying Wang3b790f32018-01-19 17:58:57 +0100281rtc_source_set("fec_controller_api") {
282 visibility = [ "*" ]
283 sources = [
284 "fec_controller.h",
285 ]
286
287 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100288 "..:webrtc_common",
289 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100290 ]
291}
292
kwiberg529662a2017-09-04 05:43:17 -0700293rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000294 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700295 sources = [
296 "array_view.h",
297 ]
298 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100299 "../rtc_base:checks",
300 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700301 ]
302}
303
Niels Möller9155e492017-10-23 11:22:30 +0200304rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000305 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200306 sources = [
307 "refcountedbase.h",
308 ]
309 deps = [
310 "../rtc_base:rtc_base_approved",
311 ]
312}
313
kjellander1993b1d2017-03-06 00:29:21 -0800314rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000315 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800316 testonly = true
317 sources = [
318 "test/fakeconstraints.h",
319 ]
320
kjellander1993b1d2017-03-06 00:29:21 -0800321 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100322 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700323 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800324 ]
325}
326
Ivo Creusen55de08e2018-09-03 11:49:27 +0200327rtc_source_set("neteq_simulator_api") {
328 visibility = [ "*" ]
329 sources = [
330 "test/neteq_simulator.cc",
331 "test/neteq_simulator.h",
332 ]
333}
334
kjellanderfd5b4e92016-06-13 12:08:33 -0700335if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100336 if (rtc_enable_protobuf) {
337 rtc_source_set("audioproc_f_api") {
338 visibility = [ "*" ]
339 testonly = true
340 sources = [
341 "test/audioproc_float.cc",
342 "test/audioproc_float.h",
343 ]
344
345 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000346 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100347 "../modules/audio_processing:audio_processing",
348 "../modules/audio_processing:audioproc_f_impl",
349 ]
350 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200351
352 rtc_source_set("neteq_simulator_factory") {
353 visibility = [ "*" ]
354 testonly = true
355 sources = [
356 "test/neteq_simulator_factory.cc",
357 "test/neteq_simulator_factory.h",
358 ]
359 deps = [
360 ":neteq_simulator_api",
361 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200362 "../rtc_base:checks",
363 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200364 "//third_party/abseil-cpp/absl/memory",
365 ]
366 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100367 }
368
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200369 rtc_source_set("simulcast_test_fixture_api") {
370 visibility = [ "*" ]
371 testonly = true
372 sources = [
373 "test/simulcast_test_fixture.h",
374 ]
375 }
376
377 rtc_source_set("create_simulcast_test_fixture_api") {
378 visibility = [ "*" ]
379 testonly = true
380 sources = [
381 "test/create_simulcast_test_fixture.cc",
382 "test/create_simulcast_test_fixture.h",
383 ]
384 deps = [
385 ":simulcast_test_fixture_api",
386 "../modules/video_coding:simulcast_test_fixture_impl",
387 "../rtc_base:rtc_base_approved",
388 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200389 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200390 ]
391 if (!build_with_chromium && is_clang) {
392 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
393 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
394 }
395 }
396
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200397 rtc_source_set("videocodec_test_fixture_api") {
398 visibility = [ "*" ]
399 testonly = true
400 sources = [
401 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200402 "test/videocodec_test_stats.cc",
403 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200404 ]
405 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200406 "..:webrtc_common",
407 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200408 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200409 "video_codecs:video_codecs_api",
410 ]
411 }
412
413 rtc_source_set("create_videocodec_test_fixture_api") {
414 visibility = [ "*" ]
415 testonly = true
416 sources = [
417 "test/create_videocodec_test_fixture.cc",
418 "test/create_videocodec_test_fixture.h",
419 ]
420 deps = [
421 ":videocodec_test_fixture_api",
422 "../modules/video_coding:video_codecs_test_framework",
423 "../modules/video_coding:videocodec_test_impl",
424 "../rtc_base:rtc_base_approved",
425 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200426 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200427 ]
428 if (!build_with_chromium && is_clang) {
429 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
430 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
431 }
432 }
433
kjellander2f6af9c2017-03-02 22:26:23 -0800434 rtc_source_set("mock_audio_mixer") {
435 testonly = true
436 sources = [
437 "test/mock_audio_mixer.h",
438 ]
439
kjellander2f6af9c2017-03-02 22:26:23 -0800440 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700441 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100442 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800443 ]
444 }
445
Benjamin Wright78410ad2018-10-25 09:52:57 -0700446 rtc_source_set("mock_frame_encryptor") {
447 testonly = true
448 sources = [
449 "test/mock_frame_encryptor.cc",
450 "test/mock_frame_encryptor.h",
451 ]
452 deps = [
453 ":libjingle_peerconnection_api",
454 "../test:test_support",
455 ]
456 }
457
458 rtc_source_set("mock_frame_decryptor") {
459 testonly = true
460 sources = [
461 "test/mock_frame_decryptor.cc",
462 "test/mock_frame_decryptor.h",
463 ]
464 deps = [
465 ":libjingle_peerconnection_api",
466 "../test:test_support",
467 ]
468 }
469
470 rtc_source_set("fake_frame_encryptor") {
471 testonly = true
472 sources = [
473 "test/fake_frame_encryptor.cc",
474 "test/fake_frame_encryptor.h",
475 ]
476 deps = [
477 ":array_view",
478 ":libjingle_peerconnection_api",
479 "..:webrtc_common",
480 "../rtc_base:checks",
481 "../rtc_base:rtc_base_approved",
482 ]
483 }
484
485 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700486 testonly = true
487 sources = [
488 "test/fake_frame_decryptor.cc",
489 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700490 ]
491 deps = [
492 ":array_view",
493 ":libjingle_peerconnection_api",
494 "..:webrtc_common",
495 "../rtc_base:checks",
496 "../rtc_base:rtc_base_approved",
497 ]
498 }
499
Jiawei Ou651b92e2018-06-29 15:46:44 -0700500 rtc_source_set("mock_peerconnectioninterface") {
501 testonly = true
502 sources = [
503 "test/mock_peerconnectioninterface.h",
504 ]
505
506 deps = [
507 ":libjingle_peerconnection_api",
508 "../test:test_support",
509 ]
510 }
511
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100512 rtc_source_set("mock_rtp") {
513 testonly = true
514 sources = [
515 "test/mock_rtpreceiver.h",
516 "test/mock_rtpsender.h",
517 ]
518
519 deps = [
520 ":libjingle_peerconnection_api",
521 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100522 ]
523 }
524
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700525 rtc_source_set("mock_video_bitrate_allocator") {
526 testonly = true
527 sources = [
528 "test/mock_video_bitrate_allocator.h",
529 ]
530
531 deps = [
532 "../api/video:video_bitrate_allocator",
533 "../test:test_support",
534 ]
535 }
536
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800537 rtc_source_set("mock_video_bitrate_allocator_factory") {
538 testonly = true
539 sources = [
540 "test/mock_video_bitrate_allocator_factory.h",
541 ]
542
543 deps = [
544 "../api/video:video_bitrate_allocator_factory",
545 "../test:test_support",
546 ]
547 }
548
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700549 rtc_source_set("mock_video_codec_factory") {
550 testonly = true
551 sources = [
552 "test/mock_video_decoder_factory.h",
553 "test/mock_video_encoder_factory.h",
554 ]
555
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700556 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100557 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700558 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700559 ]
560 }
561
Erik Språngc84cd952018-10-15 11:55:13 +0200562 rtc_source_set("mock_video_decoder") {
563 visibility = [ "*" ]
564
565 testonly = true
566 sources = [
567 "test/mock_video_decoder.cc",
568 "test/mock_video_decoder.h",
569 ]
570
571 deps = [
572 "../api/video_codecs:video_codecs_api",
573 "../test:test_support",
574 ]
575 }
576
Erik Språng6af1c922018-10-12 10:01:30 +0200577 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200578 visibility = [ "*" ]
579
Erik Språng6af1c922018-10-12 10:01:30 +0200580 testonly = true
581 sources = [
582 "test/mock_video_encoder.cc",
583 "test/mock_video_encoder.h",
584 ]
585
586 deps = [
587 "../api/video_codecs:video_codecs_api",
588 "../test:test_support",
589 ]
590 }
591
Anton Sukhanov7940da02018-10-10 10:34:49 -0700592 rtc_source_set("fake_media_transport") {
593 testonly = true
594
595 sources = [
596 "test/fake_media_transport.h",
597 ]
598
599 deps = [
600 ":libjingle_peerconnection_api",
601 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100602 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700603 ]
604 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200605
606 rtc_source_set("loopback_media_transport") {
607 testonly = true
608
609 sources = [
610 "test/loopback_media_transport.h",
611 ]
612
613 deps = [
614 ":libjingle_peerconnection_api",
615 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700616 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200617 ]
618 }
619
620 rtc_source_set("rtc_api_unittests") {
621 testonly = true
622
623 sources = [
624 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200625 "rtcerror_unittest.cc",
626 "rtpparameters_unittest.cc",
627 "test/loopback_media_transport_unittest.cc",
628 ]
629
630 if (!build_with_chromium && is_clang) {
631 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
632 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
633 }
634
635 deps = [
636 ":array_view",
637 ":libjingle_peerconnection_api",
638 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200639 "../rtc_base:checks",
640 "../rtc_base:rtc_base_approved",
641 "../rtc_base:rtc_base_tests_utils",
642 "../test:test_support",
643 "units:units_unittests",
644 ]
645 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700646}