blob: f940b0b430e435732764901b7efef5f8e7c363c7 [file] [log] [blame]
pbos@webrtc.org16e03b72013-10-28 16:32:01 +00001# Copyright (c) 2013 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{
9 'targets': [
10 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000011 'target_name': 'rtc_unittests',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +000012 'type': '<(gtest_target_type)',
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000013 'dependencies': [
14 'base/base.gyp:rtc_base',
tommi09c60da2016-05-24 11:40:35 -070015 'base/base.gyp:rtc_task_queue',
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000016 'base/base_tests.gyp:rtc_base_tests_utils',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000017 'p2p/p2p.gyp:rtc_p2p',
Guo-wei Shieh37931c42015-05-15 10:26:52 -070018 'p2p/p2p.gyp:libstunprober',
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000019 '<(DEPTH)/testing/gtest.gyp:gtest',
Guo-wei Shieh37931c42015-05-15 10:26:52 -070020 '<(DEPTH)/testing/gmock.gyp:gmock',
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000021 ],
kjellander26306b12016-06-02 02:26:01 -070022 'sources': [
23 'base/array_view_unittest.cc',
24 'base/atomicops_unittest.cc',
25 'base/autodetectproxy_unittest.cc',
26 'base/bandwidthsmoother_unittest.cc',
27 'base/base64_unittest.cc',
28 'base/basictypes_unittest.cc',
29 'base/bind_unittest.cc',
30 'base/bitbuffer_unittest.cc',
31 'base/buffer_unittest.cc',
32 'base/bufferqueue_unittest.cc',
33 'base/bytebuffer_unittest.cc',
34 'base/byteorder_unittest.cc',
35 'base/callback_unittest.cc',
36 'base/copyonwritebuffer_unittest.cc',
37 'base/crc32_unittest.cc',
38 'base/criticalsection_unittest.cc',
39 'base/event_tracer_unittest.cc',
40 'base/event_unittest.cc',
41 'base/exp_filter_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070042 'base/filerotatingstream_unittest.cc',
43 'base/fileutils_unittest.cc',
44 'base/helpers_unittest.cc',
45 'base/httpbase_unittest.cc',
46 'base/httpcommon_unittest.cc',
47 'base/httpserver_unittest.cc',
48 'base/ipaddress_unittest.cc',
49 'base/logging_unittest.cc',
50 'base/md5digest_unittest.cc',
51 'base/messagedigest_unittest.cc',
52 'base/messagequeue_unittest.cc',
53 'base/mod_ops_unittest.cc',
54 'base/multipart_unittest.cc',
55 'base/nat_unittest.cc',
56 'base/network_unittest.cc',
57 'base/onetimeevent_unittest.cc',
58 'base/optional_unittest.cc',
59 'base/optionsfile_unittest.cc',
60 'base/pathutils_unittest.cc',
61 'base/platform_thread_unittest.cc',
62 'base/profiler_unittest.cc',
63 'base/proxy_unittest.cc',
64 'base/proxydetect_unittest.cc',
65 'base/random_unittest.cc',
66 'base/rate_statistics_unittest.cc',
67 'base/ratelimiter_unittest.cc',
68 'base/ratetracker_unittest.cc',
69 'base/referencecountedsingletonfactory_unittest.cc',
70 'base/rollingaccumulator_unittest.cc',
71 'base/rtccertificate_unittest.cc',
72 'base/rtccertificategenerator_unittest.cc',
73 'base/scopedptrcollection_unittest.cc',
74 'base/sha1digest_unittest.cc',
75 'base/sharedexclusivelock_unittest.cc',
76 'base/signalthread_unittest.cc',
77 'base/sigslot_unittest.cc',
78 'base/sigslottester.h',
79 'base/sigslottester.h.pump',
80 'base/stream_unittest.cc',
81 'base/stringencode_unittest.cc',
82 'base/stringutils_unittest.cc',
83 'base/swap_queue_unittest.cc',
84 # TODO(ronghuawu): Reenable this test.
85 # 'systeminfo_unittest.cc',
86 'base/task_queue_unittest.cc',
87 'base/task_unittest.cc',
88 'base/testclient_unittest.cc',
89 'base/thread_checker_unittest.cc',
90 'base/thread_unittest.cc',
nisse191b3592016-06-22 08:36:53 -070091 'base/timestampaligner_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070092 'base/timeutils_unittest.cc',
93 'base/urlencode_unittest.cc',
94 'base/versionparsing_unittest.cc',
95 # TODO(ronghuawu): Reenable this test.
96 # 'windowpicker_unittest.cc',
97 'p2p/base/dtlstransportchannel_unittest.cc',
98 'p2p/base/fakeportallocator.h',
99 'p2p/base/faketransportcontroller.h',
100 'p2p/base/p2ptransportchannel_unittest.cc',
101 'p2p/base/port_unittest.cc',
102 'p2p/base/portallocator_unittest.cc',
103 'p2p/base/pseudotcp_unittest.cc',
104 'p2p/base/relayport_unittest.cc',
105 'p2p/base/relayserver_unittest.cc',
106 'p2p/base/stun_unittest.cc',
107 'p2p/base/stunport_unittest.cc',
108 'p2p/base/stunrequest_unittest.cc',
109 'p2p/base/stunserver_unittest.cc',
110 'p2p/base/testrelayserver.h',
111 'p2p/base/teststunserver.h',
112 'p2p/base/testturnserver.h',
113 'p2p/base/transport_unittest.cc',
114 'p2p/base/transportcontroller_unittest.cc',
115 'p2p/base/transportdescriptionfactory_unittest.cc',
116 'p2p/base/tcpport_unittest.cc',
117 'p2p/base/turnport_unittest.cc',
118 'p2p/client/basicportallocator_unittest.cc',
119 'p2p/stunprober/stunprober_unittest.cc',
120 ],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000121 'conditions': [
kjellander26306b12016-06-02 02:26:01 -0700122 ['OS=="linux"', {
123 'sources': [
124 'base/latebindingsymboltable_unittest.cc',
125 # TODO(ronghuawu): Reenable this test.
126 # 'linux_unittest.cc',
127 'base/linuxfdwalk_unittest.cc',
128 ],
129 }],
130 ['OS=="win"', {
131 'sources': [
132 'base/win32_unittest.cc',
133 'base/win32regkey_unittest.cc',
134 'base/win32window_unittest.cc',
135 'base/win32windowpicker_unittest.cc',
136 'base/winfirewall_unittest.cc',
137 ],
kjellander26306b12016-06-02 02:26:01 -0700138 }],
139 ['OS=="win" and clang==1', {
140 'msvs_settings': {
141 'VCCLCompilerTool': {
142 'AdditionalOptions': [
143 # Disable warnings failing when compiling with Clang on Windows.
144 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
145 '-Wno-missing-braces',
146 '-Wno-sign-compare',
147 '-Wno-unused-const-variable',
148 ],
149 },
150 },
151 }],
152 ['OS=="mac"', {
153 'sources': [
154 'base/macutils_unittest.cc',
155 ],
156 }],
157 ['os_posix==1', {
158 'sources': [
159 'base/ssladapter_unittest.cc',
160 'base/sslidentity_unittest.cc',
161 'base/sslstreamadapter_unittest.cc',
162 ],
163 }],
164 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
165 'defines': [
166 'CARBON_DEPRECATED=YES',
167 ],
168 }],
169 ['use_quic==1', {
170 'sources': [
171 'p2p/quic/quicconnectionhelper_unittest.cc',
172 'p2p/quic/quicsession_unittest.cc',
173 'p2p/quic/quictransport_unittest.cc',
174 'p2p/quic/quictransportchannel_unittest.cc',
175 'p2p/quic/reliablequicstream_unittest.cc',
176 ],
177 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000178 ['OS=="android"', {
179 'dependencies': [
180 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
181 ],
182 }],
tkchin9eeb6242016-04-27 01:54:20 -0700183 ['OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7")', {
kjellander3bcedd32016-06-08 01:14:15 -0700184 'includes': [
185 'build/objc_common.gypi',
tkchin9eeb6242016-04-27 01:54:20 -0700186 ],
kjellander3bcedd32016-06-08 01:14:15 -0700187 'dependencies': [
188 'sdk/sdk.gyp:rtc_sdk_peerconnection_objc',
189 'system_wrappers/system_wrappers.gyp:metrics_default',
190 ],
191 'sources': [
192 'sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm',
193 'sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm',
194 'sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm',
195 'sdk/objc/Framework/UnitTests/RTCIceServerTest.mm',
196 'sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm',
197 'sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm',
198 ],
199 'xcode_settings': {
200 # |-ObjC| flag needed to make sure category method implementations
201 # are included:
202 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
203 'OTHER_LDFLAGS': ['-ObjC'],
204 },
tkchin9eeb6242016-04-27 01:54:20 -0700205 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000206 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000207 },
208 {
tommi32e80e42016-05-24 05:47:57 -0700209 'target_name': 'xmllite_xmpp_unittests',
210 'type': '<(gtest_target_type)',
211 'dependencies': [
212 'base/base_tests.gyp:rtc_base_tests_utils', # needed for main()
213 'libjingle/xmllite/xmllite.gyp:rtc_xmllite',
214 'libjingle/xmpp/xmpp.gyp:rtc_xmpp',
tommi32e80e42016-05-24 05:47:57 -0700215 '<(DEPTH)/testing/gtest.gyp:gtest',
216 ],
kjellander26306b12016-06-02 02:26:01 -0700217 'sources': [
218 'libjingle/xmllite/qname_unittest.cc',
219 'libjingle/xmllite/xmlbuilder_unittest.cc',
220 'libjingle/xmllite/xmlelement_unittest.cc',
221 'libjingle/xmllite/xmlnsstack_unittest.cc',
222 'libjingle/xmllite/xmlparser_unittest.cc',
223 'libjingle/xmllite/xmlprinter_unittest.cc',
224 'libjingle/xmpp/fakexmppclient.h',
225 'libjingle/xmpp/hangoutpubsubclient_unittest.cc',
226 'libjingle/xmpp/jid_unittest.cc',
227 'libjingle/xmpp/mucroomconfigtask_unittest.cc',
228 'libjingle/xmpp/mucroomdiscoverytask_unittest.cc',
229 'libjingle/xmpp/mucroomlookuptask_unittest.cc',
230 'libjingle/xmpp/mucroomuniquehangoutidtask_unittest.cc',
231 'libjingle/xmpp/pingtask_unittest.cc',
232 'libjingle/xmpp/pubsubclient_unittest.cc',
233 'libjingle/xmpp/pubsubtasks_unittest.cc',
234 'libjingle/xmpp/util_unittest.cc',
235 'libjingle/xmpp/util_unittest.h',
236 'libjingle/xmpp/xmppengine_unittest.cc',
237 'libjingle/xmpp/xmpplogintask_unittest.cc',
238 'libjingle/xmpp/xmppstanzaparser_unittest.cc',
239 ],
tommi32e80e42016-05-24 05:47:57 -0700240 },
241 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000242 'target_name': 'webrtc_tests',
243 'type': 'none',
244 'dependencies': [
245 'video_engine_tests',
246 'video_loopback',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000247 'video_replay',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000248 'webrtc_perf_tests',
Peter Boström95192fb2015-10-29 12:41:56 +0100249 'webrtc_nonparallel_tests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000250 ],
251 },
252 {
ivica5d6a06c2015-09-17 05:30:24 -0700253 'target_name': 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000254 'type': 'static_library',
255 'sources': [
ivica5d6a06c2015-09-17 05:30:24 -0700256 'video/video_quality_test.cc',
257 'video/video_quality_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000258 ],
259 'dependencies': [
260 '<(DEPTH)/testing/gtest.gyp:gtest',
ivica5d6a06c2015-09-17 05:30:24 -0700261 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000262 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
263 'webrtc',
264 ],
ivica5d6a06c2015-09-17 05:30:24 -0700265 'conditions': [
266 ['OS=="android"', {
267 'dependencies!': [
268 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
269 ],
270 }],
271 ],
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000272 },
273 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000274 'target_name': 'video_loopback',
275 'type': 'executable',
276 'sources': [
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000277 'test/mac/run_test.mm',
278 'test/run_test.cc',
279 'test/run_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000280 'video/video_loopback.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000281 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000282 'conditions': [
283 ['OS=="mac"', {
284 'sources!': [
285 'test/run_test.cc',
286 ],
287 }],
288 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000289 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700290 'video_quality_test',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000291 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org023b1012014-05-13 11:26:40 +0000292 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800293 'test/test.gyp:test_common',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000294 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800295 'test/test.gyp:test_renderer',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000296 'webrtc',
297 ],
298 },
Peter Boström4b91bd02015-06-26 06:58:16 +0200299 {
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000300 'target_name': 'screenshare_loopback',
301 'type': 'executable',
302 'sources': [
303 'test/mac/run_test.mm',
304 'test/run_test.cc',
305 'test/run_test.h',
306 'video/screenshare_loopback.cc',
307 ],
308 'conditions': [
309 ['OS=="mac"', {
310 'sources!': [
311 'test/run_test.cc',
312 ],
313 }],
314 ],
315 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700316 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000317 '<(DEPTH)/testing/gtest.gyp:gtest',
318 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800319 'test/test.gyp:test_common',
stefan@webrtc.orgb3265ac2014-11-04 14:57:14 +0000320 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800321 'test/test.gyp:test_renderer',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000322 'webrtc',
323 ],
324 },
325 {
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000326 'target_name': 'video_replay',
327 'type': 'executable',
328 'sources': [
329 'test/mac/run_test.mm',
330 'test/run_test.cc',
331 'test/run_test.h',
332 'video/replay.cc',
333 ],
334 'conditions': [
335 ['OS=="mac"', {
336 'sources!': [
337 'test/run_test.cc',
338 ],
339 }],
340 ],
341 'dependencies': [
342 '<(DEPTH)/testing/gtest.gyp:gtest',
343 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800344 'test/test.gyp:test_common',
345 'test/test.gyp:test_renderer',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000346 '<(webrtc_root)/modules/modules.gyp:video_capture',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000347 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000348 'webrtc',
349 ],
350 },
351 {
solenbergc7a8b082015-10-16 14:35:07 -0700352 # TODO(solenberg): Rename to webrtc_call_tests.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000353 'target_name': 'video_engine_tests',
354 'type': '<(gtest_target_type)',
355 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200356 'audio/audio_receive_stream_unittest.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700357 'audio/audio_send_stream_unittest.cc',
solenberg566ef242015-11-06 15:34:49 -0800358 'audio/audio_state_unittest.cc',
mflodman0e7e2592015-11-12 21:02:42 -0800359 'call/bitrate_allocator_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200360 'call/bitrate_estimator_tests.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700361 'call/call_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200362 'call/packet_injection_tests.cc',
terelius4311ba52016-04-22 12:40:37 -0700363 'call/ringbuffer_unittest.cc',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000364 'test/common_unittest.cc',
365 'test/testsupport/metrics/video_metrics_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100366 'video/call_stats_unittest.cc',
367 'video/encoder_state_feedback_unittest.cc',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000368 'video/end_to_end_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100369 'video/overuse_frame_detector_unittest.cc',
370 'video/payload_router_unittest.cc',
371 'video/report_block_stats_unittest.cc',
asapersson35151f32016-05-02 23:44:01 -0700372 'video/send_delay_stats_unittest.cc',
sprang@webrtc.orgccd42842014-01-07 09:54:34 +0000373 'video/send_statistics_proxy_unittest.cc',
asapersson0e9d6d92016-05-23 06:07:55 -0700374 'video/stats_counter_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100375 'video/stream_synchronization_unittest.cc',
Peter Boström4b91bd02015-06-26 06:58:16 +0200376 'video/video_capture_input_unittest.cc',
Peter Boström7252a2b2015-05-18 19:42:03 +0200377 'video/video_decoder_unittest.cc',
Peter Boström4d71ede2015-05-19 23:09:35 +0200378 'video/video_encoder_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000379 'video/video_send_stream_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100380 'video/vie_remb_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000381 ],
382 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000383 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000384 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000385 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000386 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000387 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000388 '<(webrtc_root)/test/test.gyp:channel_transport',
389 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +0000390 'test/metrics.gyp:metrics',
kjellander0e739342016-03-02 10:46:17 -0800391 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000392 'test/test.gyp:test_main',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000393 'webrtc',
394 ],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000395 'conditions': [
hbosbab934b2016-01-27 01:36:03 -0800396 ['rtc_use_h264==1', {
397 'defines': [
398 'WEBRTC_END_TO_END_H264_TESTS',
399 ],
400 }],
kjellander@webrtc.org76a42572014-09-02 08:40:39 +0000401 ['OS=="android"', {
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000402 'dependencies': [
403 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
404 ],
405 }],
kjellander02060002016-02-16 22:06:12 -0800406 ['OS=="ios"', {
407 'mac_bundle_resources': [
408 '<(DEPTH)/resources/foreman_cif_short.yuv',
409 '<(DEPTH)/resources/voice_engine/audio_long16.pcm',
410 ],
411 }],
Bjorn Terelius36411852015-07-30 12:45:18 +0200412 ['enable_protobuf==1', {
413 'defines': [
414 'ENABLE_RTC_EVENT_LOG',
415 ],
416 'dependencies': [
417 'webrtc.gyp:rtc_event_log',
tereliusd5c1a0b2016-05-13 00:42:59 -0700418 'webrtc.gyp:rtc_event_log_parser',
Bjorn Terelius36411852015-07-30 12:45:18 +0200419 'webrtc.gyp:rtc_event_log_proto',
420 ],
421 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200422 'call/rtc_event_log_unittest.cc',
tereliusd5c1a0b2016-05-13 00:42:59 -0700423 'call/rtc_event_log_unittest_helper.cc'
Bjorn Terelius36411852015-07-30 12:45:18 +0200424 ],
425 }],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000426 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000427 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000428 {
429 'target_name': 'webrtc_perf_tests',
430 'type': '<(gtest_target_type)',
431 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200432 'call/call_perf_tests.cc',
stefanff483612015-12-21 03:14:00 -0800433 'call/rampup_tests.cc',
434 'call/rampup_tests.h',
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000435 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
peah9fca7e12015-12-20 23:13:40 -0800436 'modules/audio_processing/audio_processing_performance_unittest.cc',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200437 'modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000438 'video/full_stack.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000439 ],
440 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000441 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000442 '<(DEPTH)/testing/gtest.gyp:gtest',
peah9fca7e12015-12-20 23:13:40 -0800443 '<(webrtc_root)/modules/modules.gyp:audio_processing',
444 '<(webrtc_root)/modules/modules.gyp:audioproc_test_utils',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000445 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000446 '<(webrtc_root)/test/test.gyp:channel_transport',
447 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
ivica5d6a06c2015-09-17 05:30:24 -0700448 'video_quality_test',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200449 'modules/modules.gyp:neteq_test_support',
450 'modules/modules.gyp:bwe_simulator',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000451 'modules/modules.gyp:rtp_rtcp',
kjellander0e739342016-03-02 10:46:17 -0800452 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000453 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800454 'test/test.gyp:test_renderer',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000455 'webrtc',
456 ],
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000457 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000458 ['OS=="android"', {
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000459 'dependencies': [
460 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
461 ],
462 }],
463 ],
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000464 },
Peter Boström95192fb2015-10-29 12:41:56 +0100465 {
466 'target_name': 'webrtc_nonparallel_tests',
467 'type': '<(gtest_target_type)',
468 'sources': [
469 'base/nullsocketserver_unittest.cc',
470 'base/physicalsocketserver_unittest.cc',
471 'base/socket_unittest.cc',
472 'base/socket_unittest.h',
473 'base/socketaddress_unittest.cc',
474 'base/virtualsocket_unittest.cc',
475 ],
phoglundc6c00b32016-05-04 01:54:35 -0700476 'defines': [
477 'GTEST_RELATIVE_PATH',
478 ],
Peter Boström95192fb2015-10-29 12:41:56 +0100479 'dependencies': [
480 '<(DEPTH)/testing/gtest.gyp:gtest',
481 'base/base.gyp:rtc_base',
482 'test/test.gyp:test_main',
483 ],
484 'conditions': [
485 ['OS=="android"', {
486 'dependencies': [
487 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
488 ],
489 }],
490 ['OS=="win"', {
491 'sources': [
492 'base/win32socketserver_unittest.cc',
493 ],
494 'sources!': [
495 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
496 # then reenable these tests.
497 # TODO(pbos): Move test disabling to ifdefs within the test files
498 # instead of here.
499 'base/physicalsocketserver_unittest.cc',
500 'base/socket_unittest.cc',
501 'base/win32socketserver_unittest.cc',
502 ],
503 }],
504 ['OS=="mac"', {
505 'sources': [
506 'base/macsocketserver_unittest.cc',
507 ],
508 }],
509 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
510 'defines': [
511 'CARBON_DEPRECATED=YES',
512 ],
513 }],
514 ],
515 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000516 ],
517 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000518 ['OS=="android"', {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000519 'targets': [
520 {
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000521 'target_name': 'rtc_unittests_apk_target',
522 'type': 'none',
523 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700524 '<(android_tests_path):rtc_unittests_apk',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000525 ],
526 },
527 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000528 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000529 'type': 'none',
530 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700531 '<(android_tests_path):video_engine_tests_apk',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000532 ],
533 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000534 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000535 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000536 'type': 'none',
537 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700538 '<(android_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000539 ],
540 },
Peter Boström95192fb2015-10-29 12:41:56 +0100541 {
542 'target_name': 'webrtc_nonparallel_tests_apk_target',
543 'type': 'none',
544 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700545 '<(android_tests_path):webrtc_nonparallel_tests_apk',
Peter Boström95192fb2015-10-29 12:41:56 +0100546 ],
547 },
magjedce17e012016-06-01 00:43:59 -0700548 {
549 'target_name': 'android_junit_tests_target',
550 'type': 'none',
551 'dependencies': [
552 '<(android_tests_path):android_junit_tests',
553 ],
554 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000555 ],
kjellandere532aec2016-04-17 20:08:20 -0700556 'conditions': [
557 ['test_isolation_mode != "noop"',
558 {
559 'targets': [
560 {
561 'target_name': 'rtc_unittests_apk_run',
562 'type': 'none',
563 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700564 '<(android_tests_path):rtc_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700565 ],
566 'includes': [
567 'build/isolate.gypi',
568 ],
569 'sources': [
570 'rtc_unittests_apk.isolate',
571 ],
572 },
573 {
574 'target_name': 'video_engine_tests_apk_run',
575 'type': 'none',
576 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700577 '<(android_tests_path):video_engine_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700578 ],
579 'includes': [
580 'build/isolate.gypi',
581 ],
582 'sources': [
583 'video_engine_tests_apk.isolate',
584 ],
585 },
586 {
587 'target_name': 'webrtc_perf_tests_apk_run',
588 'type': 'none',
589 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700590 '<(android_tests_path):webrtc_perf_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700591 ],
592 'includes': [
593 'build/isolate.gypi',
594 ],
595 'sources': [
596 'webrtc_perf_tests_apk.isolate',
597 ],
598 },
599 {
600 'target_name': 'webrtc_nonparallel_tests_apk_run',
601 'type': 'none',
602 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700603 '<(android_tests_path):webrtc_nonparallel_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700604 ],
605 'includes': [
606 'build/isolate.gypi',
607 ],
608 'sources': [
609 'webrtc_nonparallel_tests_apk.isolate',
610 ],
611 },
612 ],
613 },
614 ],
615 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000616 }],
617 ['test_isolation_mode != "noop"', {
618 'targets': [
619 {
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000620 'target_name': 'rtc_unittests_run',
621 'type': 'none',
622 'dependencies': [
623 'rtc_unittests',
624 ],
625 'includes': [
626 'build/isolate.gypi',
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000627 ],
628 'sources': [
629 'rtc_unittests.isolate',
630 ],
631 },
632 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000633 'target_name': 'video_engine_tests_run',
634 'type': 'none',
635 'dependencies': [
636 'video_engine_tests',
637 ],
638 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000639 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000640 ],
641 'sources': [
642 'video_engine_tests.isolate',
643 ],
644 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000645 {
Peter Boström4f4f7562015-10-29 15:29:04 +0100646 'target_name': 'webrtc_nonparallel_tests_run',
647 'type': 'none',
648 'dependencies': [
649 'webrtc_nonparallel_tests',
650 ],
651 'includes': [
652 'build/isolate.gypi',
653 ],
654 'sources': [
655 'webrtc_nonparallel_tests.isolate',
656 ],
657 },
658 {
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000659 'target_name': 'webrtc_perf_tests_run',
660 'type': 'none',
661 'dependencies': [
662 'webrtc_perf_tests',
663 ],
664 'includes': [
665 'build/isolate.gypi',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000666 ],
667 'sources': [
668 'webrtc_perf_tests.isolate',
669 ],
670 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000671 ],
672 }],
673 ],
674}