blob: 9bee2cd82cfa53ae6facb508527adb340c865d10 [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
ossu7bb87ee2017-01-23 04:56:25 -080047rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000048 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070049 cflags = []
50 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070051 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020052 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070053 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020054 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070055 "crypto/cryptooptions.cc",
56 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070057 "crypto/framedecryptorinterface.h",
58 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010059 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020060 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070061 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070062 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080063 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070064 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020065 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070066 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070067 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020068 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040069 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070070 "mediaconstraintsinterface.cc",
71 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080072 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010073 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070074 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080076 "mediatypes.cc",
77 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070078 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070079 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020080 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010081 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070082 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070083 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070084 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080085 "rtcerror.cc",
86 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010087 "rtp_headers.cc",
88 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020089 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070090 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010091 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070092 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -070093 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070094 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020095 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -080096 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +010097 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070098 "statstypes.cc",
99 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200100 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800101 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700102 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700103 ]
kjellanderc76dc952016-06-03 03:09:32 -0700104 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100105 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100106 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100107 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100108 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100109 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700110 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100111 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100112 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200113 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200114 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200115 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200116 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200117 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100118
119 # Basically, don't add stuff here. You might break sensitive downstream
120 # targets like pnacl. API should not depend on anything outside of this
121 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700122 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100123 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100124 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100125 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100126 "../rtc_base:checks",
127 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700128 "../rtc_base:rtc_base",
129 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100130 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200131 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700132 ]
Niels Möller8366e172018-02-14 12:20:13 +0100133
kjellander8a116632017-04-21 05:17:08 -0700134 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100135 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700136 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
137 }
ossu7bb87ee2017-01-23 04:56:25 -0800138}
kjellanderc76dc952016-06-03 03:09:32 -0700139
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200140rtc_source_set("video_quality_test_fixture_api") {
141 visibility = [ "*" ]
142 testonly = true
143 sources = [
144 "test/video_quality_test_fixture.h",
145 ]
146 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200147 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200148 ":libjingle_peerconnection_api",
149 ":simulated_network_api",
150 "../call:fake_network",
151 "../call:rtp_interfaces",
152 "../test:test_common",
153 "../test:video_test_common",
154 "video_codecs:video_codecs_api",
155 ]
156 if (!build_with_chromium && is_clang) {
157 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
158 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
159 }
160}
161
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200162rtc_source_set("test_dependency_factory") {
163 visibility = [ "*" ]
164 testonly = true
165 sources = [
166 "test/test_dependency_factory.cc",
167 "test/test_dependency_factory.h",
168 ]
169 deps = [
170 ":video_quality_test_fixture_api",
171 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900172 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200173 ]
174 if (!build_with_chromium && is_clang) {
175 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
176 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
177 }
178}
179
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200180if (rtc_include_tests) {
181 rtc_source_set("create_video_quality_test_fixture_api") {
182 visibility = [ "*" ]
183 testonly = true
184 sources = [
185 "test/create_video_quality_test_fixture.cc",
186 "test/create_video_quality_test_fixture.h",
187 ]
188 deps = [
189 ":fec_controller_api",
190 ":video_quality_test_fixture_api",
191 "../rtc_base:ptr_util",
192 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200193 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200194 ]
195 if (!build_with_chromium && is_clang) {
196 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
197 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
198 }
199 }
200}
201
Elad Alon80810732017-10-06 13:07:32 +0200202rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000203 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200204 sources = [
205 "rtceventlogoutput.h",
206 ]
207}
208
deadbeefe814a0d2017-02-25 18:15:09 -0800209rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000210 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800211 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800212 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800213 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800214 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800215 ]
216
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100217 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800218 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100219 "..:webrtc_common",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200220 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800221 ]
222}
223
hbos74e1a4f2016-09-15 23:33:01 -0700224rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000225 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700226 cflags = []
227 sources = [
228 "stats/rtcstats.h",
229 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800230 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700231 "stats/rtcstatsreport.h",
232 ]
233
234 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100235 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700236 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200237 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700238 ]
239}
240
Niels Möllera6fe2612018-01-19 11:28:54 +0100241rtc_source_set("audio_options_api") {
242 visibility = [ "*" ]
243 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200244 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100245 "audio_options.h",
246 ]
247
248 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200249 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200250 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100251 ]
252}
253
aleloia8eb7562016-11-28 07:02:13 -0800254rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000255 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800256 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100257 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800258 "call/transport.h",
259 ]
260}
nisseb2250e52016-12-02 04:01:14 -0800261
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200262rtc_source_set("simulated_network_api") {
263 visibility = [ "*" ]
264 sources = [
265 "test/simulated_network.h",
266 ]
267 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200268 "../rtc_base:criticalsection",
269 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200270 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200271 ]
272}
273
Ying Wang3b790f32018-01-19 17:58:57 +0100274rtc_source_set("fec_controller_api") {
275 visibility = [ "*" ]
276 sources = [
277 "fec_controller.h",
278 ]
279
280 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100281 "..:webrtc_common",
282 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100283 ]
284}
285
kwiberg529662a2017-09-04 05:43:17 -0700286rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000287 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700288 sources = [
289 "array_view.h",
290 ]
291 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100292 "../rtc_base:checks",
293 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700294 ]
295}
296
Niels Möller9155e492017-10-23 11:22:30 +0200297rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000298 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200299 sources = [
300 "refcountedbase.h",
301 ]
302 deps = [
303 "../rtc_base:rtc_base_approved",
304 ]
305}
306
kjellander1993b1d2017-03-06 00:29:21 -0800307rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000308 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800309 testonly = true
310 sources = [
311 "test/fakeconstraints.h",
312 ]
313
kjellander1993b1d2017-03-06 00:29:21 -0800314 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100315 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700316 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800317 ]
318}
319
Ivo Creusen55de08e2018-09-03 11:49:27 +0200320rtc_source_set("neteq_simulator_api") {
321 visibility = [ "*" ]
322 sources = [
323 "test/neteq_simulator.cc",
324 "test/neteq_simulator.h",
325 ]
326}
327
kjellanderfd5b4e92016-06-13 12:08:33 -0700328if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100329 if (rtc_enable_protobuf) {
330 rtc_source_set("audioproc_f_api") {
331 visibility = [ "*" ]
332 testonly = true
333 sources = [
334 "test/audioproc_float.cc",
335 "test/audioproc_float.h",
336 ]
337
338 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000339 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100340 "../modules/audio_processing:audio_processing",
341 "../modules/audio_processing:audioproc_f_impl",
342 ]
343 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200344
345 rtc_source_set("neteq_simulator_factory") {
346 visibility = [ "*" ]
347 testonly = true
348 sources = [
349 "test/neteq_simulator_factory.cc",
350 "test/neteq_simulator_factory.h",
351 ]
352 deps = [
353 ":neteq_simulator_api",
354 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200355 "../rtc_base:checks",
356 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200357 "//third_party/abseil-cpp/absl/memory",
358 ]
359 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100360 }
361
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200362 rtc_source_set("simulcast_test_fixture_api") {
363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/simulcast_test_fixture.h",
367 ]
368 }
369
370 rtc_source_set("create_simulcast_test_fixture_api") {
371 visibility = [ "*" ]
372 testonly = true
373 sources = [
374 "test/create_simulcast_test_fixture.cc",
375 "test/create_simulcast_test_fixture.h",
376 ]
377 deps = [
378 ":simulcast_test_fixture_api",
379 "../modules/video_coding:simulcast_test_fixture_impl",
380 "../rtc_base:rtc_base_approved",
381 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200382 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200383 ]
384 if (!build_with_chromium && is_clang) {
385 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
386 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
387 }
388 }
389
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200390 rtc_source_set("videocodec_test_fixture_api") {
391 visibility = [ "*" ]
392 testonly = true
393 sources = [
394 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200395 "test/videocodec_test_stats.cc",
396 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200397 ]
398 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200399 "..:webrtc_common",
400 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200401 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200402 "video_codecs:video_codecs_api",
403 ]
404 }
405
406 rtc_source_set("create_videocodec_test_fixture_api") {
407 visibility = [ "*" ]
408 testonly = true
409 sources = [
410 "test/create_videocodec_test_fixture.cc",
411 "test/create_videocodec_test_fixture.h",
412 ]
413 deps = [
414 ":videocodec_test_fixture_api",
415 "../modules/video_coding:video_codecs_test_framework",
416 "../modules/video_coding:videocodec_test_impl",
417 "../rtc_base:rtc_base_approved",
418 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200419 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200420 ]
421 if (!build_with_chromium && is_clang) {
422 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
423 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
424 }
425 }
426
kjellander2f6af9c2017-03-02 22:26:23 -0800427 rtc_source_set("mock_audio_mixer") {
428 testonly = true
429 sources = [
430 "test/mock_audio_mixer.h",
431 ]
432
kjellander2f6af9c2017-03-02 22:26:23 -0800433 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700434 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100435 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800436 ]
437 }
438
Benjamin Wright78410ad2018-10-25 09:52:57 -0700439 rtc_source_set("mock_frame_encryptor") {
440 testonly = true
441 sources = [
442 "test/mock_frame_encryptor.cc",
443 "test/mock_frame_encryptor.h",
444 ]
445 deps = [
446 ":libjingle_peerconnection_api",
447 "../test:test_support",
448 ]
449 }
450
451 rtc_source_set("mock_frame_decryptor") {
452 testonly = true
453 sources = [
454 "test/mock_frame_decryptor.cc",
455 "test/mock_frame_decryptor.h",
456 ]
457 deps = [
458 ":libjingle_peerconnection_api",
459 "../test:test_support",
460 ]
461 }
462
463 rtc_source_set("fake_frame_encryptor") {
464 testonly = true
465 sources = [
466 "test/fake_frame_encryptor.cc",
467 "test/fake_frame_encryptor.h",
468 ]
469 deps = [
470 ":array_view",
471 ":libjingle_peerconnection_api",
472 "..:webrtc_common",
473 "../rtc_base:checks",
474 "../rtc_base:rtc_base_approved",
475 ]
476 }
477
478 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700479 testonly = true
480 sources = [
481 "test/fake_frame_decryptor.cc",
482 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700483 ]
484 deps = [
485 ":array_view",
486 ":libjingle_peerconnection_api",
487 "..:webrtc_common",
488 "../rtc_base:checks",
489 "../rtc_base:rtc_base_approved",
490 ]
491 }
492
Jiawei Ou651b92e2018-06-29 15:46:44 -0700493 rtc_source_set("mock_peerconnectioninterface") {
494 testonly = true
495 sources = [
496 "test/mock_peerconnectioninterface.h",
497 ]
498
499 deps = [
500 ":libjingle_peerconnection_api",
501 "../test:test_support",
502 ]
503 }
504
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100505 rtc_source_set("mock_rtp") {
506 testonly = true
507 sources = [
508 "test/mock_rtpreceiver.h",
509 "test/mock_rtpsender.h",
510 ]
511
512 deps = [
513 ":libjingle_peerconnection_api",
514 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100515 ]
516 }
517
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700518 rtc_source_set("mock_video_bitrate_allocator") {
519 testonly = true
520 sources = [
521 "test/mock_video_bitrate_allocator.h",
522 ]
523
524 deps = [
525 "../api/video:video_bitrate_allocator",
526 "../test:test_support",
527 ]
528 }
529
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800530 rtc_source_set("mock_video_bitrate_allocator_factory") {
531 testonly = true
532 sources = [
533 "test/mock_video_bitrate_allocator_factory.h",
534 ]
535
536 deps = [
537 "../api/video:video_bitrate_allocator_factory",
538 "../test:test_support",
539 ]
540 }
541
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700542 rtc_source_set("mock_video_codec_factory") {
543 testonly = true
544 sources = [
545 "test/mock_video_decoder_factory.h",
546 "test/mock_video_encoder_factory.h",
547 ]
548
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700549 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100550 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700551 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700552 ]
553 }
554
Erik Språngc84cd952018-10-15 11:55:13 +0200555 rtc_source_set("mock_video_decoder") {
556 visibility = [ "*" ]
557
558 testonly = true
559 sources = [
560 "test/mock_video_decoder.cc",
561 "test/mock_video_decoder.h",
562 ]
563
564 deps = [
565 "../api/video_codecs:video_codecs_api",
566 "../test:test_support",
567 ]
568 }
569
Erik Språng6af1c922018-10-12 10:01:30 +0200570 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200571 visibility = [ "*" ]
572
Erik Språng6af1c922018-10-12 10:01:30 +0200573 testonly = true
574 sources = [
575 "test/mock_video_encoder.cc",
576 "test/mock_video_encoder.h",
577 ]
578
579 deps = [
580 "../api/video_codecs:video_codecs_api",
581 "../test:test_support",
582 ]
583 }
584
Anton Sukhanov7940da02018-10-10 10:34:49 -0700585 rtc_source_set("fake_media_transport") {
586 testonly = true
587
588 sources = [
589 "test/fake_media_transport.h",
590 ]
591
592 deps = [
593 ":libjingle_peerconnection_api",
594 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100595 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700596 ]
597 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200598
599 rtc_source_set("loopback_media_transport") {
600 testonly = true
601
602 sources = [
603 "test/loopback_media_transport.h",
604 ]
605
606 deps = [
607 ":libjingle_peerconnection_api",
608 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700609 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200610 ]
611 }
612
613 rtc_source_set("rtc_api_unittests") {
614 testonly = true
615
616 sources = [
617 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200618 "rtcerror_unittest.cc",
619 "rtpparameters_unittest.cc",
620 "test/loopback_media_transport_unittest.cc",
621 ]
622
623 if (!build_with_chromium && is_clang) {
624 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
625 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
626 }
627
628 deps = [
629 ":array_view",
630 ":libjingle_peerconnection_api",
631 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200632 "../rtc_base:checks",
633 "../rtc_base:rtc_base_approved",
634 "../rtc_base:rtc_base_tests_utils",
635 "../test:test_support",
636 "units:units_unittests",
637 ]
638 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700639}