blob: 8e65412cde921beeac62adf2f6ecc7b7304c4c37 [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',
kjellander26306b12016-06-02 02:26:01 -070091 'base/timeutils_unittest.cc',
92 'base/urlencode_unittest.cc',
93 'base/versionparsing_unittest.cc',
94 # TODO(ronghuawu): Reenable this test.
95 # 'windowpicker_unittest.cc',
96 'p2p/base/dtlstransportchannel_unittest.cc',
97 'p2p/base/fakeportallocator.h',
98 'p2p/base/faketransportcontroller.h',
99 'p2p/base/p2ptransportchannel_unittest.cc',
100 'p2p/base/port_unittest.cc',
101 'p2p/base/portallocator_unittest.cc',
102 'p2p/base/pseudotcp_unittest.cc',
103 'p2p/base/relayport_unittest.cc',
104 'p2p/base/relayserver_unittest.cc',
105 'p2p/base/stun_unittest.cc',
106 'p2p/base/stunport_unittest.cc',
107 'p2p/base/stunrequest_unittest.cc',
108 'p2p/base/stunserver_unittest.cc',
109 'p2p/base/testrelayserver.h',
110 'p2p/base/teststunserver.h',
111 'p2p/base/testturnserver.h',
112 'p2p/base/transport_unittest.cc',
113 'p2p/base/transportcontroller_unittest.cc',
114 'p2p/base/transportdescriptionfactory_unittest.cc',
115 'p2p/base/tcpport_unittest.cc',
116 'p2p/base/turnport_unittest.cc',
117 'p2p/client/basicportallocator_unittest.cc',
118 'p2p/stunprober/stunprober_unittest.cc',
119 ],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000120 'conditions': [
kjellander26306b12016-06-02 02:26:01 -0700121 ['OS=="linux"', {
122 'sources': [
123 'base/latebindingsymboltable_unittest.cc',
124 # TODO(ronghuawu): Reenable this test.
125 # 'linux_unittest.cc',
126 'base/linuxfdwalk_unittest.cc',
127 ],
128 }],
129 ['OS=="win"', {
130 'sources': [
131 'base/win32_unittest.cc',
132 'base/win32regkey_unittest.cc',
133 'base/win32window_unittest.cc',
134 'base/win32windowpicker_unittest.cc',
135 'base/winfirewall_unittest.cc',
136 ],
kjellander26306b12016-06-02 02:26:01 -0700137 }],
138 ['OS=="win" and clang==1', {
139 'msvs_settings': {
140 'VCCLCompilerTool': {
141 'AdditionalOptions': [
142 # Disable warnings failing when compiling with Clang on Windows.
143 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
144 '-Wno-missing-braces',
145 '-Wno-sign-compare',
146 '-Wno-unused-const-variable',
147 ],
148 },
149 },
150 }],
151 ['OS=="mac"', {
152 'sources': [
153 'base/macutils_unittest.cc',
154 ],
155 }],
156 ['os_posix==1', {
157 'sources': [
158 'base/ssladapter_unittest.cc',
159 'base/sslidentity_unittest.cc',
160 'base/sslstreamadapter_unittest.cc',
161 ],
162 }],
163 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
164 'defines': [
165 'CARBON_DEPRECATED=YES',
166 ],
167 }],
168 ['use_quic==1', {
169 'sources': [
170 'p2p/quic/quicconnectionhelper_unittest.cc',
171 'p2p/quic/quicsession_unittest.cc',
172 'p2p/quic/quictransport_unittest.cc',
173 'p2p/quic/quictransportchannel_unittest.cc',
174 'p2p/quic/reliablequicstream_unittest.cc',
175 ],
176 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000177 ['OS=="android"', {
178 'dependencies': [
179 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
180 ],
181 }],
tkchin9eeb6242016-04-27 01:54:20 -0700182 ['OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7")', {
kjellander3bcedd32016-06-08 01:14:15 -0700183 'includes': [
184 'build/objc_common.gypi',
tkchin9eeb6242016-04-27 01:54:20 -0700185 ],
kjellander3bcedd32016-06-08 01:14:15 -0700186 'dependencies': [
187 'sdk/sdk.gyp:rtc_sdk_peerconnection_objc',
188 'system_wrappers/system_wrappers.gyp:metrics_default',
189 ],
190 'sources': [
191 'sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm',
192 'sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm',
193 'sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm',
194 'sdk/objc/Framework/UnitTests/RTCIceServerTest.mm',
195 'sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm',
196 'sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm',
197 ],
198 'xcode_settings': {
199 # |-ObjC| flag needed to make sure category method implementations
200 # are included:
201 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
202 'OTHER_LDFLAGS': ['-ObjC'],
203 },
tkchin9eeb6242016-04-27 01:54:20 -0700204 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000205 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000206 },
207 {
tommi32e80e42016-05-24 05:47:57 -0700208 'target_name': 'xmllite_xmpp_unittests',
209 'type': '<(gtest_target_type)',
210 'dependencies': [
211 'base/base_tests.gyp:rtc_base_tests_utils', # needed for main()
212 'libjingle/xmllite/xmllite.gyp:rtc_xmllite',
213 'libjingle/xmpp/xmpp.gyp:rtc_xmpp',
tommi32e80e42016-05-24 05:47:57 -0700214 '<(DEPTH)/testing/gtest.gyp:gtest',
215 ],
kjellander26306b12016-06-02 02:26:01 -0700216 'sources': [
217 'libjingle/xmllite/qname_unittest.cc',
218 'libjingle/xmllite/xmlbuilder_unittest.cc',
219 'libjingle/xmllite/xmlelement_unittest.cc',
220 'libjingle/xmllite/xmlnsstack_unittest.cc',
221 'libjingle/xmllite/xmlparser_unittest.cc',
222 'libjingle/xmllite/xmlprinter_unittest.cc',
223 'libjingle/xmpp/fakexmppclient.h',
224 'libjingle/xmpp/hangoutpubsubclient_unittest.cc',
225 'libjingle/xmpp/jid_unittest.cc',
226 'libjingle/xmpp/mucroomconfigtask_unittest.cc',
227 'libjingle/xmpp/mucroomdiscoverytask_unittest.cc',
228 'libjingle/xmpp/mucroomlookuptask_unittest.cc',
229 'libjingle/xmpp/mucroomuniquehangoutidtask_unittest.cc',
230 'libjingle/xmpp/pingtask_unittest.cc',
231 'libjingle/xmpp/pubsubclient_unittest.cc',
232 'libjingle/xmpp/pubsubtasks_unittest.cc',
233 'libjingle/xmpp/util_unittest.cc',
234 'libjingle/xmpp/util_unittest.h',
235 'libjingle/xmpp/xmppengine_unittest.cc',
236 'libjingle/xmpp/xmpplogintask_unittest.cc',
237 'libjingle/xmpp/xmppstanzaparser_unittest.cc',
238 ],
tommi32e80e42016-05-24 05:47:57 -0700239 },
240 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000241 'target_name': 'webrtc_tests',
242 'type': 'none',
243 'dependencies': [
244 'video_engine_tests',
245 'video_loopback',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000246 'video_replay',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000247 'webrtc_perf_tests',
Peter Boström95192fb2015-10-29 12:41:56 +0100248 'webrtc_nonparallel_tests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000249 ],
250 },
251 {
ivica5d6a06c2015-09-17 05:30:24 -0700252 'target_name': 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000253 'type': 'static_library',
254 'sources': [
ivica5d6a06c2015-09-17 05:30:24 -0700255 'video/video_quality_test.cc',
256 'video/video_quality_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000257 ],
258 'dependencies': [
259 '<(DEPTH)/testing/gtest.gyp:gtest',
ivica5d6a06c2015-09-17 05:30:24 -0700260 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000261 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
262 'webrtc',
263 ],
ivica5d6a06c2015-09-17 05:30:24 -0700264 'conditions': [
265 ['OS=="android"', {
266 'dependencies!': [
267 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
268 ],
269 }],
270 ],
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000271 },
272 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000273 'target_name': 'video_loopback',
274 'type': 'executable',
275 'sources': [
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000276 'test/mac/run_test.mm',
277 'test/run_test.cc',
278 'test/run_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000279 'video/video_loopback.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000280 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000281 'conditions': [
282 ['OS=="mac"', {
283 'sources!': [
284 'test/run_test.cc',
285 ],
286 }],
287 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000288 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700289 'video_quality_test',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000290 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org023b1012014-05-13 11:26:40 +0000291 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800292 'test/test.gyp:test_common',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000293 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800294 'test/test.gyp:test_renderer',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000295 'webrtc',
296 ],
297 },
Peter Boström4b91bd02015-06-26 06:58:16 +0200298 {
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000299 'target_name': 'screenshare_loopback',
300 'type': 'executable',
301 'sources': [
302 'test/mac/run_test.mm',
303 'test/run_test.cc',
304 'test/run_test.h',
305 'video/screenshare_loopback.cc',
306 ],
307 'conditions': [
308 ['OS=="mac"', {
309 'sources!': [
310 'test/run_test.cc',
311 ],
312 }],
313 ],
314 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700315 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000316 '<(DEPTH)/testing/gtest.gyp:gtest',
317 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800318 'test/test.gyp:test_common',
stefan@webrtc.orgb3265ac2014-11-04 14:57:14 +0000319 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800320 'test/test.gyp:test_renderer',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000321 'webrtc',
322 ],
323 },
324 {
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000325 'target_name': 'video_replay',
326 'type': 'executable',
327 'sources': [
328 'test/mac/run_test.mm',
329 'test/run_test.cc',
330 'test/run_test.h',
331 'video/replay.cc',
332 ],
333 'conditions': [
334 ['OS=="mac"', {
335 'sources!': [
336 'test/run_test.cc',
337 ],
338 }],
339 ],
340 'dependencies': [
341 '<(DEPTH)/testing/gtest.gyp:gtest',
342 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800343 'test/test.gyp:test_common',
344 'test/test.gyp:test_renderer',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000345 '<(webrtc_root)/modules/modules.gyp:video_capture',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000346 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000347 'webrtc',
348 ],
349 },
350 {
solenbergc7a8b082015-10-16 14:35:07 -0700351 # TODO(solenberg): Rename to webrtc_call_tests.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000352 'target_name': 'video_engine_tests',
353 'type': '<(gtest_target_type)',
354 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200355 'audio/audio_receive_stream_unittest.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700356 'audio/audio_send_stream_unittest.cc',
solenberg566ef242015-11-06 15:34:49 -0800357 'audio/audio_state_unittest.cc',
mflodman0e7e2592015-11-12 21:02:42 -0800358 'call/bitrate_allocator_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200359 'call/bitrate_estimator_tests.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700360 'call/call_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200361 'call/packet_injection_tests.cc',
terelius4311ba52016-04-22 12:40:37 -0700362 'call/ringbuffer_unittest.cc',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000363 'test/common_unittest.cc',
364 'test/testsupport/metrics/video_metrics_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100365 'video/call_stats_unittest.cc',
366 'video/encoder_state_feedback_unittest.cc',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000367 'video/end_to_end_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100368 'video/overuse_frame_detector_unittest.cc',
369 'video/payload_router_unittest.cc',
370 'video/report_block_stats_unittest.cc',
asapersson35151f32016-05-02 23:44:01 -0700371 'video/send_delay_stats_unittest.cc',
sprang@webrtc.orgccd42842014-01-07 09:54:34 +0000372 'video/send_statistics_proxy_unittest.cc',
asapersson0e9d6d92016-05-23 06:07:55 -0700373 'video/stats_counter_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100374 'video/stream_synchronization_unittest.cc',
Peter Boström4b91bd02015-06-26 06:58:16 +0200375 'video/video_capture_input_unittest.cc',
Peter Boström7252a2b2015-05-18 19:42:03 +0200376 'video/video_decoder_unittest.cc',
Peter Boström4d71ede2015-05-19 23:09:35 +0200377 'video/video_encoder_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000378 'video/video_send_stream_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100379 'video/vie_remb_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000380 ],
381 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000382 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000383 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000384 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000385 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000386 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000387 '<(webrtc_root)/test/test.gyp:channel_transport',
388 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +0000389 'test/metrics.gyp:metrics',
kjellander0e739342016-03-02 10:46:17 -0800390 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000391 'test/test.gyp:test_main',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000392 'webrtc',
393 ],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000394 'conditions': [
hbosbab934b2016-01-27 01:36:03 -0800395 ['rtc_use_h264==1', {
396 'defines': [
397 'WEBRTC_END_TO_END_H264_TESTS',
398 ],
399 }],
kjellander@webrtc.org76a42572014-09-02 08:40:39 +0000400 ['OS=="android"', {
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000401 'dependencies': [
402 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
403 ],
404 }],
kjellander02060002016-02-16 22:06:12 -0800405 ['OS=="ios"', {
406 'mac_bundle_resources': [
407 '<(DEPTH)/resources/foreman_cif_short.yuv',
408 '<(DEPTH)/resources/voice_engine/audio_long16.pcm',
409 ],
410 }],
Bjorn Terelius36411852015-07-30 12:45:18 +0200411 ['enable_protobuf==1', {
412 'defines': [
413 'ENABLE_RTC_EVENT_LOG',
414 ],
415 'dependencies': [
416 'webrtc.gyp:rtc_event_log',
tereliusd5c1a0b2016-05-13 00:42:59 -0700417 'webrtc.gyp:rtc_event_log_parser',
Bjorn Terelius36411852015-07-30 12:45:18 +0200418 'webrtc.gyp:rtc_event_log_proto',
419 ],
420 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200421 'call/rtc_event_log_unittest.cc',
tereliusd5c1a0b2016-05-13 00:42:59 -0700422 'call/rtc_event_log_unittest_helper.cc'
Bjorn Terelius36411852015-07-30 12:45:18 +0200423 ],
424 }],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000425 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000426 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000427 {
428 'target_name': 'webrtc_perf_tests',
429 'type': '<(gtest_target_type)',
430 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200431 'call/call_perf_tests.cc',
stefanff483612015-12-21 03:14:00 -0800432 'call/rampup_tests.cc',
433 'call/rampup_tests.h',
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000434 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
peah9fca7e12015-12-20 23:13:40 -0800435 'modules/audio_processing/audio_processing_performance_unittest.cc',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200436 'modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000437 'video/full_stack.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000438 ],
439 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000440 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000441 '<(DEPTH)/testing/gtest.gyp:gtest',
peah9fca7e12015-12-20 23:13:40 -0800442 '<(webrtc_root)/modules/modules.gyp:audio_processing',
443 '<(webrtc_root)/modules/modules.gyp:audioproc_test_utils',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000444 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000445 '<(webrtc_root)/test/test.gyp:channel_transport',
446 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
ivica5d6a06c2015-09-17 05:30:24 -0700447 'video_quality_test',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200448 'modules/modules.gyp:neteq_test_support',
449 'modules/modules.gyp:bwe_simulator',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000450 'modules/modules.gyp:rtp_rtcp',
kjellander0e739342016-03-02 10:46:17 -0800451 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000452 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800453 'test/test.gyp:test_renderer',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000454 'webrtc',
455 ],
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000456 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000457 ['OS=="android"', {
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000458 'dependencies': [
459 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
460 ],
461 }],
462 ],
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000463 },
Peter Boström95192fb2015-10-29 12:41:56 +0100464 {
465 'target_name': 'webrtc_nonparallel_tests',
466 'type': '<(gtest_target_type)',
467 'sources': [
468 'base/nullsocketserver_unittest.cc',
469 'base/physicalsocketserver_unittest.cc',
470 'base/socket_unittest.cc',
471 'base/socket_unittest.h',
472 'base/socketaddress_unittest.cc',
473 'base/virtualsocket_unittest.cc',
474 ],
phoglundc6c00b32016-05-04 01:54:35 -0700475 'defines': [
476 'GTEST_RELATIVE_PATH',
477 ],
Peter Boström95192fb2015-10-29 12:41:56 +0100478 'dependencies': [
479 '<(DEPTH)/testing/gtest.gyp:gtest',
480 'base/base.gyp:rtc_base',
481 'test/test.gyp:test_main',
482 ],
483 'conditions': [
484 ['OS=="android"', {
485 'dependencies': [
486 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
487 ],
488 }],
489 ['OS=="win"', {
490 'sources': [
491 'base/win32socketserver_unittest.cc',
492 ],
493 'sources!': [
494 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
495 # then reenable these tests.
496 # TODO(pbos): Move test disabling to ifdefs within the test files
497 # instead of here.
498 'base/physicalsocketserver_unittest.cc',
499 'base/socket_unittest.cc',
500 'base/win32socketserver_unittest.cc',
501 ],
502 }],
503 ['OS=="mac"', {
504 'sources': [
505 'base/macsocketserver_unittest.cc',
506 ],
507 }],
508 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
509 'defines': [
510 'CARBON_DEPRECATED=YES',
511 ],
512 }],
513 ],
514 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000515 ],
516 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000517 ['OS=="android"', {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000518 'targets': [
519 {
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000520 'target_name': 'rtc_unittests_apk_target',
521 'type': 'none',
522 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700523 '<(android_tests_path):rtc_unittests_apk',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000524 ],
525 },
526 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000527 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000528 'type': 'none',
529 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700530 '<(android_tests_path):video_engine_tests_apk',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000531 ],
532 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000533 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000534 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000535 'type': 'none',
536 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700537 '<(android_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000538 ],
539 },
Peter Boström95192fb2015-10-29 12:41:56 +0100540 {
541 'target_name': 'webrtc_nonparallel_tests_apk_target',
542 'type': 'none',
543 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700544 '<(android_tests_path):webrtc_nonparallel_tests_apk',
Peter Boström95192fb2015-10-29 12:41:56 +0100545 ],
546 },
magjedce17e012016-06-01 00:43:59 -0700547 {
548 'target_name': 'android_junit_tests_target',
549 'type': 'none',
550 'dependencies': [
551 '<(android_tests_path):android_junit_tests',
552 ],
553 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000554 ],
kjellandere532aec2016-04-17 20:08:20 -0700555 'conditions': [
556 ['test_isolation_mode != "noop"',
557 {
558 'targets': [
559 {
560 'target_name': 'rtc_unittests_apk_run',
561 'type': 'none',
562 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700563 '<(android_tests_path):rtc_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700564 ],
565 'includes': [
566 'build/isolate.gypi',
567 ],
568 'sources': [
569 'rtc_unittests_apk.isolate',
570 ],
571 },
572 {
573 'target_name': 'video_engine_tests_apk_run',
574 'type': 'none',
575 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700576 '<(android_tests_path):video_engine_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700577 ],
578 'includes': [
579 'build/isolate.gypi',
580 ],
581 'sources': [
582 'video_engine_tests_apk.isolate',
583 ],
584 },
585 {
586 'target_name': 'webrtc_perf_tests_apk_run',
587 'type': 'none',
588 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700589 '<(android_tests_path):webrtc_perf_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700590 ],
591 'includes': [
592 'build/isolate.gypi',
593 ],
594 'sources': [
595 'webrtc_perf_tests_apk.isolate',
596 ],
597 },
598 {
599 'target_name': 'webrtc_nonparallel_tests_apk_run',
600 'type': 'none',
601 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700602 '<(android_tests_path):webrtc_nonparallel_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700603 ],
604 'includes': [
605 'build/isolate.gypi',
606 ],
607 'sources': [
608 'webrtc_nonparallel_tests_apk.isolate',
609 ],
610 },
611 ],
612 },
613 ],
614 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000615 }],
616 ['test_isolation_mode != "noop"', {
617 'targets': [
618 {
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000619 'target_name': 'rtc_unittests_run',
620 'type': 'none',
621 'dependencies': [
622 'rtc_unittests',
623 ],
624 'includes': [
625 'build/isolate.gypi',
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000626 ],
627 'sources': [
628 'rtc_unittests.isolate',
629 ],
630 },
631 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000632 'target_name': 'video_engine_tests_run',
633 'type': 'none',
634 'dependencies': [
635 'video_engine_tests',
636 ],
637 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000638 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000639 ],
640 'sources': [
641 'video_engine_tests.isolate',
642 ],
643 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000644 {
Peter Boström4f4f7562015-10-29 15:29:04 +0100645 'target_name': 'webrtc_nonparallel_tests_run',
646 'type': 'none',
647 'dependencies': [
648 'webrtc_nonparallel_tests',
649 ],
650 'includes': [
651 'build/isolate.gypi',
652 ],
653 'sources': [
654 'webrtc_nonparallel_tests.isolate',
655 ],
656 },
657 {
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000658 'target_name': 'webrtc_perf_tests_run',
659 'type': 'none',
660 'dependencies': [
661 'webrtc_perf_tests',
662 ],
663 'includes': [
664 'build/isolate.gypi',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000665 ],
666 'sources': [
667 'webrtc_perf_tests.isolate',
668 ],
669 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000670 ],
671 }],
672 ],
673}