blob: f8b6ca3f4cf8ec53aa553993679dd81221cb9b9c [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 Wrightea086912018-08-29 13:06:15 -070055 "crypto/framedecryptorinterface.h",
56 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010057 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020058 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070059 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070060 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080061 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070062 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020063 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070064 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070065 "jsepsessiondescription.h",
kjellanderc76dc952016-06-03 03:09:32 -070066 "mediaconstraintsinterface.cc",
67 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080068 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010069 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070070 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070071 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080072 "mediatypes.cc",
73 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070074 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020076 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010077 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070078 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070079 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070080 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080081 "rtcerror.cc",
82 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010083 "rtp_headers.cc",
84 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020085 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070086 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010087 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070088 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -070089 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070090 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020091 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -080092 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +010093 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070094 "statstypes.cc",
95 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +020096 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -080097 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -070098 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070099 ]
kjellanderc76dc952016-06-03 03:09:32 -0700100 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100101 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100102 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100103 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100104 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100105 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700106 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100107 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100108 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200109 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200110 "transport:network_control",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200111 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200112 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100113
114 # Basically, don't add stuff here. You might break sensitive downstream
115 # targets like pnacl. API should not depend on anything outside of this
116 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700117 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100118 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100119 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100120 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100121 "../rtc_base:checks",
122 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700123 "../rtc_base:rtc_base",
124 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100125 "../rtc_base:stringutils",
kjellanderc76dc952016-06-03 03:09:32 -0700126 ]
Niels Möller8366e172018-02-14 12:20:13 +0100127
kjellander8a116632017-04-21 05:17:08 -0700128 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100129 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700130 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
131 }
ossu7bb87ee2017-01-23 04:56:25 -0800132}
kjellanderc76dc952016-06-03 03:09:32 -0700133
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200134rtc_source_set("video_quality_test_fixture_api") {
135 visibility = [ "*" ]
136 testonly = true
137 sources = [
138 "test/video_quality_test_fixture.h",
139 ]
140 deps = [
141 ":libjingle_peerconnection_api",
142 ":simulated_network_api",
143 "../call:fake_network",
144 "../call:rtp_interfaces",
145 "../test:test_common",
146 "../test:video_test_common",
147 "video_codecs:video_codecs_api",
148 ]
149 if (!build_with_chromium && is_clang) {
150 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
152 }
153}
154
155if (rtc_include_tests) {
156 rtc_source_set("create_video_quality_test_fixture_api") {
157 visibility = [ "*" ]
158 testonly = true
159 sources = [
160 "test/create_video_quality_test_fixture.cc",
161 "test/create_video_quality_test_fixture.h",
162 ]
163 deps = [
164 ":fec_controller_api",
165 ":video_quality_test_fixture_api",
166 "../rtc_base:ptr_util",
167 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200168 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200169 ]
170 if (!build_with_chromium && is_clang) {
171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
173 }
174 }
175}
176
Elad Alon80810732017-10-06 13:07:32 +0200177rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000178 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200179 sources = [
180 "rtceventlogoutput.h",
181 ]
182}
183
deadbeefe814a0d2017-02-25 18:15:09 -0800184rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000185 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800186 sources = [
zhihuang55adc0e2017-03-10 18:33:45 -0800187 "ortc/mediadescription.cc",
188 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800189 "ortc/ortcfactoryinterface.h",
190 "ortc/ortcrtpreceiverinterface.h",
191 "ortc/ortcrtpsenderinterface.h",
192 "ortc/packettransportinterface.h",
193 "ortc/rtptransportcontrollerinterface.h",
194 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-10 18:33:45 -0800195 "ortc/sessiondescription.cc",
196 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800197 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800198 "ortc/udptransportinterface.h",
199 ]
200
201 # For mediastreaminterface.h, etc.
202 # TODO(deadbeef): Create a separate target for the common things ORTC and
203 # PeerConnection code shares, so that ortc_api can depend on that instead of
204 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100205 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800206 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100207 "..:webrtc_common",
208 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200209 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800210 ]
zhihuang55adc0e2017-03-10 18:33:45 -0800211 if (!build_with_chromium && is_clang) {
212 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
213 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
214 }
deadbeefe814a0d2017-02-25 18:15:09 -0800215}
216
hbos74e1a4f2016-09-15 23:33:01 -0700217rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000218 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700219 cflags = []
220 sources = [
221 "stats/rtcstats.h",
222 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800223 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700224 "stats/rtcstatsreport.h",
225 ]
226
227 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100228 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700229 "../rtc_base:rtc_base_approved",
hbos74e1a4f2016-09-15 23:33:01 -0700230 ]
231}
232
Niels Möllera6fe2612018-01-19 11:28:54 +0100233rtc_source_set("audio_options_api") {
234 visibility = [ "*" ]
235 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200236 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100237 "audio_options.h",
238 ]
239
240 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200241 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200242 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100243 ]
244}
245
aleloia8eb7562016-11-28 07:02:13 -0800246rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000247 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800248 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100249 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800250 "call/transport.h",
251 ]
252}
nisseb2250e52016-12-02 04:01:14 -0800253
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200254rtc_source_set("simulated_network_api") {
255 visibility = [ "*" ]
256 sources = [
257 "test/simulated_network.h",
258 ]
259 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200260 "../rtc_base:criticalsection",
261 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200262 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200263 ]
264}
265
Ying Wang3b790f32018-01-19 17:58:57 +0100266rtc_source_set("fec_controller_api") {
267 visibility = [ "*" ]
268 sources = [
269 "fec_controller.h",
270 ]
271
272 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100273 "..:webrtc_common",
274 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100275 ]
276}
277
kwiberg529662a2017-09-04 05:43:17 -0700278rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000279 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700280 sources = [
281 "array_view.h",
282 ]
283 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100284 "../rtc_base:checks",
285 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700286 ]
287}
288
Niels Möller9155e492017-10-23 11:22:30 +0200289rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000290 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200291 sources = [
292 "refcountedbase.h",
293 ]
294 deps = [
295 "../rtc_base:rtc_base_approved",
296 ]
297}
298
kjellander1993b1d2017-03-06 00:29:21 -0800299rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000300 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800301 testonly = true
302 sources = [
303 "test/fakeconstraints.h",
304 ]
305
kjellander1993b1d2017-03-06 00:29:21 -0800306 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100307 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700308 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800309 ]
310}
311
Ivo Creusen55de08e2018-09-03 11:49:27 +0200312rtc_source_set("neteq_simulator_api") {
313 visibility = [ "*" ]
314 sources = [
315 "test/neteq_simulator.cc",
316 "test/neteq_simulator.h",
317 ]
318}
319
kjellanderfd5b4e92016-06-13 12:08:33 -0700320if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100321 if (rtc_enable_protobuf) {
322 rtc_source_set("audioproc_f_api") {
323 visibility = [ "*" ]
324 testonly = true
325 sources = [
326 "test/audioproc_float.cc",
327 "test/audioproc_float.h",
328 ]
329
330 deps = [
331 "../modules/audio_processing:audio_processing",
332 "../modules/audio_processing:audioproc_f_impl",
333 ]
334 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200335
336 rtc_source_set("neteq_simulator_factory") {
337 visibility = [ "*" ]
338 testonly = true
339 sources = [
340 "test/neteq_simulator_factory.cc",
341 "test/neteq_simulator_factory.h",
342 ]
343 deps = [
344 ":neteq_simulator_api",
345 "../modules/audio_coding:neteq_test_factory",
346 "//third_party/abseil-cpp/absl/memory",
347 ]
348 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100349 }
350
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200351 rtc_source_set("simulcast_test_fixture_api") {
352 visibility = [ "*" ]
353 testonly = true
354 sources = [
355 "test/simulcast_test_fixture.h",
356 ]
357 }
358
359 rtc_source_set("create_simulcast_test_fixture_api") {
360 visibility = [ "*" ]
361 testonly = true
362 sources = [
363 "test/create_simulcast_test_fixture.cc",
364 "test/create_simulcast_test_fixture.h",
365 ]
366 deps = [
367 ":simulcast_test_fixture_api",
368 "../modules/video_coding:simulcast_test_fixture_impl",
369 "../rtc_base:rtc_base_approved",
370 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200371 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200372 ]
373 if (!build_with_chromium && is_clang) {
374 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
375 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
376 }
377 }
378
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200379 rtc_source_set("videocodec_test_fixture_api") {
380 visibility = [ "*" ]
381 testonly = true
382 sources = [
383 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200384 "test/videocodec_test_stats.cc",
385 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200386 ]
387 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200388 "..:webrtc_common",
389 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200390 "video_codecs:video_codecs_api",
391 ]
392 }
393
394 rtc_source_set("create_videocodec_test_fixture_api") {
395 visibility = [ "*" ]
396 testonly = true
397 sources = [
398 "test/create_videocodec_test_fixture.cc",
399 "test/create_videocodec_test_fixture.h",
400 ]
401 deps = [
402 ":videocodec_test_fixture_api",
403 "../modules/video_coding:video_codecs_test_framework",
404 "../modules/video_coding:videocodec_test_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",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +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
kjellander2f6af9c2017-03-02 22:26:23 -0800415 rtc_source_set("mock_audio_mixer") {
416 testonly = true
417 sources = [
418 "test/mock_audio_mixer.h",
419 ]
420
kjellander2f6af9c2017-03-02 22:26:23 -0800421 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700422 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100423 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800424 ]
425 }
426
Jiawei Ou651b92e2018-06-29 15:46:44 -0700427 rtc_source_set("mock_peerconnectioninterface") {
428 testonly = true
429 sources = [
430 "test/mock_peerconnectioninterface.h",
431 ]
432
433 deps = [
434 ":libjingle_peerconnection_api",
435 "../test:test_support",
436 ]
437 }
438
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100439 rtc_source_set("mock_rtp") {
440 testonly = true
441 sources = [
442 "test/mock_rtpreceiver.h",
443 "test/mock_rtpsender.h",
444 ]
445
446 deps = [
447 ":libjingle_peerconnection_api",
448 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100449 ]
450 }
451
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700452 rtc_source_set("mock_video_bitrate_allocator") {
453 testonly = true
454 sources = [
455 "test/mock_video_bitrate_allocator.h",
456 ]
457
458 deps = [
459 "../api/video:video_bitrate_allocator",
460 "../test:test_support",
461 ]
462 }
463
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700464 rtc_source_set("mock_video_codec_factory") {
465 testonly = true
466 sources = [
467 "test/mock_video_decoder_factory.h",
468 "test/mock_video_encoder_factory.h",
469 ]
470
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700471 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100472 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700473 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700474 ]
475 }
476
deadbeefb5388d72017-02-24 01:17:43 -0800477 rtc_source_set("rtc_api_unittests") {
deadbeef6038e972017-02-16 23:31:33 -0800478 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700479
deadbeef6038e972017-02-16 23:31:33 -0800480 sources = [
kwiberg529662a2017-09-04 05:43:17 -0700481 "array_view_unittest.cc",
zhihuang55adc0e2017-03-10 18:33:45 -0800482 "ortc/mediadescription_unittest.cc",
483 "ortc/sessiondescription_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800484 "rtcerror_unittest.cc",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200485 "rtpparameters_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800486 ]
487
488 if (!build_with_chromium && is_clang) {
489 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
490 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
491 }
492
493 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700494 ":array_view",
deadbeef6038e972017-02-16 23:31:33 -0800495 ":libjingle_peerconnection_api",
zhihuang55adc0e2017-03-10 18:33:45 -0800496 ":ortc_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100497 "../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -0700498 "../rtc_base:rtc_base_approved",
499 "../rtc_base:rtc_base_tests_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700500 "../test:test_support",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +0200501 "units:units_unittests",
deadbeef6038e972017-02-16 23:31:33 -0800502 ]
deadbeef6038e972017-02-16 23:31:33 -0800503 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700504}