blob: 56ae1cc97872439e229676f9cda3f4eecdf5ca9b [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',
perkj9c16fe82016-07-12 15:04:07 -070074 'base/sequenced_task_checker_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070075 'base/sha1digest_unittest.cc',
76 'base/sharedexclusivelock_unittest.cc',
77 'base/signalthread_unittest.cc',
78 'base/sigslot_unittest.cc',
79 'base/sigslottester.h',
80 'base/sigslottester.h.pump',
81 'base/stream_unittest.cc',
82 'base/stringencode_unittest.cc',
83 'base/stringutils_unittest.cc',
84 'base/swap_queue_unittest.cc',
85 # TODO(ronghuawu): Reenable this test.
86 # 'systeminfo_unittest.cc',
87 'base/task_queue_unittest.cc',
88 'base/task_unittest.cc',
89 'base/testclient_unittest.cc',
90 'base/thread_checker_unittest.cc',
91 'base/thread_unittest.cc',
nisse191b3592016-06-22 08:36:53 -070092 'base/timestampaligner_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070093 'base/timeutils_unittest.cc',
94 'base/urlencode_unittest.cc',
95 'base/versionparsing_unittest.cc',
96 # TODO(ronghuawu): Reenable this test.
97 # 'windowpicker_unittest.cc',
98 'p2p/base/dtlstransportchannel_unittest.cc',
99 'p2p/base/fakeportallocator.h',
100 'p2p/base/faketransportcontroller.h',
101 'p2p/base/p2ptransportchannel_unittest.cc',
102 'p2p/base/port_unittest.cc',
103 'p2p/base/portallocator_unittest.cc',
104 'p2p/base/pseudotcp_unittest.cc',
105 'p2p/base/relayport_unittest.cc',
106 'p2p/base/relayserver_unittest.cc',
107 'p2p/base/stun_unittest.cc',
108 'p2p/base/stunport_unittest.cc',
109 'p2p/base/stunrequest_unittest.cc',
110 'p2p/base/stunserver_unittest.cc',
111 'p2p/base/testrelayserver.h',
112 'p2p/base/teststunserver.h',
113 'p2p/base/testturnserver.h',
114 'p2p/base/transport_unittest.cc',
115 'p2p/base/transportcontroller_unittest.cc',
116 'p2p/base/transportdescriptionfactory_unittest.cc',
117 'p2p/base/tcpport_unittest.cc',
118 'p2p/base/turnport_unittest.cc',
119 'p2p/client/basicportallocator_unittest.cc',
120 'p2p/stunprober/stunprober_unittest.cc',
121 ],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000122 'conditions': [
kjellander26306b12016-06-02 02:26:01 -0700123 ['OS=="linux"', {
124 'sources': [
125 'base/latebindingsymboltable_unittest.cc',
126 # TODO(ronghuawu): Reenable this test.
127 # 'linux_unittest.cc',
128 'base/linuxfdwalk_unittest.cc',
129 ],
130 }],
131 ['OS=="win"', {
132 'sources': [
133 'base/win32_unittest.cc',
134 'base/win32regkey_unittest.cc',
135 'base/win32window_unittest.cc',
136 'base/win32windowpicker_unittest.cc',
137 'base/winfirewall_unittest.cc',
138 ],
kjellander26306b12016-06-02 02:26:01 -0700139 }],
140 ['OS=="win" and clang==1', {
141 'msvs_settings': {
142 'VCCLCompilerTool': {
143 'AdditionalOptions': [
144 # Disable warnings failing when compiling with Clang on Windows.
145 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
146 '-Wno-missing-braces',
147 '-Wno-sign-compare',
148 '-Wno-unused-const-variable',
149 ],
150 },
151 },
152 }],
153 ['OS=="mac"', {
154 'sources': [
155 'base/macutils_unittest.cc',
156 ],
157 }],
158 ['os_posix==1', {
159 'sources': [
160 'base/ssladapter_unittest.cc',
161 'base/sslidentity_unittest.cc',
162 'base/sslstreamadapter_unittest.cc',
163 ],
164 }],
165 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
166 'defines': [
167 'CARBON_DEPRECATED=YES',
168 ],
169 }],
170 ['use_quic==1', {
171 'sources': [
172 'p2p/quic/quicconnectionhelper_unittest.cc',
173 'p2p/quic/quicsession_unittest.cc',
174 'p2p/quic/quictransport_unittest.cc',
175 'p2p/quic/quictransportchannel_unittest.cc',
176 'p2p/quic/reliablequicstream_unittest.cc',
177 ],
178 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000179 ['OS=="android"', {
180 'dependencies': [
181 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
182 ],
183 }],
tkchin9eeb6242016-04-27 01:54:20 -0700184 ['OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7")', {
kjellander3bcedd32016-06-08 01:14:15 -0700185 'includes': [
186 'build/objc_common.gypi',
tkchin9eeb6242016-04-27 01:54:20 -0700187 ],
kjellander3bcedd32016-06-08 01:14:15 -0700188 'dependencies': [
189 'sdk/sdk.gyp:rtc_sdk_peerconnection_objc',
190 'system_wrappers/system_wrappers.gyp:metrics_default',
191 ],
192 'sources': [
193 'sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm',
194 'sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm',
195 'sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm',
196 'sdk/objc/Framework/UnitTests/RTCIceServerTest.mm',
197 'sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm',
198 'sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm',
199 ],
200 'xcode_settings': {
201 # |-ObjC| flag needed to make sure category method implementations
202 # are included:
203 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
204 'OTHER_LDFLAGS': ['-ObjC'],
205 },
tkchin9eeb6242016-04-27 01:54:20 -0700206 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000207 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000208 },
209 {
tommi32e80e42016-05-24 05:47:57 -0700210 'target_name': 'xmllite_xmpp_unittests',
211 'type': '<(gtest_target_type)',
212 'dependencies': [
213 'base/base_tests.gyp:rtc_base_tests_utils', # needed for main()
214 'libjingle/xmllite/xmllite.gyp:rtc_xmllite',
215 'libjingle/xmpp/xmpp.gyp:rtc_xmpp',
tommi32e80e42016-05-24 05:47:57 -0700216 '<(DEPTH)/testing/gtest.gyp:gtest',
217 ],
kjellander26306b12016-06-02 02:26:01 -0700218 'sources': [
219 'libjingle/xmllite/qname_unittest.cc',
220 'libjingle/xmllite/xmlbuilder_unittest.cc',
221 'libjingle/xmllite/xmlelement_unittest.cc',
222 'libjingle/xmllite/xmlnsstack_unittest.cc',
223 'libjingle/xmllite/xmlparser_unittest.cc',
224 'libjingle/xmllite/xmlprinter_unittest.cc',
225 'libjingle/xmpp/fakexmppclient.h',
226 'libjingle/xmpp/hangoutpubsubclient_unittest.cc',
227 'libjingle/xmpp/jid_unittest.cc',
228 'libjingle/xmpp/mucroomconfigtask_unittest.cc',
229 'libjingle/xmpp/mucroomdiscoverytask_unittest.cc',
230 'libjingle/xmpp/mucroomlookuptask_unittest.cc',
231 'libjingle/xmpp/mucroomuniquehangoutidtask_unittest.cc',
232 'libjingle/xmpp/pingtask_unittest.cc',
233 'libjingle/xmpp/pubsubclient_unittest.cc',
234 'libjingle/xmpp/pubsubtasks_unittest.cc',
235 'libjingle/xmpp/util_unittest.cc',
236 'libjingle/xmpp/util_unittest.h',
237 'libjingle/xmpp/xmppengine_unittest.cc',
238 'libjingle/xmpp/xmpplogintask_unittest.cc',
239 'libjingle/xmpp/xmppstanzaparser_unittest.cc',
240 ],
tommi32e80e42016-05-24 05:47:57 -0700241 },
242 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000243 'target_name': 'webrtc_tests',
244 'type': 'none',
245 'dependencies': [
246 'video_engine_tests',
247 'video_loopback',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000248 'video_replay',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000249 'webrtc_perf_tests',
Peter Boström95192fb2015-10-29 12:41:56 +0100250 'webrtc_nonparallel_tests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000251 ],
252 },
253 {
ivica5d6a06c2015-09-17 05:30:24 -0700254 'target_name': 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000255 'type': 'static_library',
256 'sources': [
ivica5d6a06c2015-09-17 05:30:24 -0700257 'video/video_quality_test.cc',
258 'video/video_quality_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000259 ],
260 'dependencies': [
261 '<(DEPTH)/testing/gtest.gyp:gtest',
ivica5d6a06c2015-09-17 05:30:24 -0700262 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000263 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
264 'webrtc',
265 ],
ivica5d6a06c2015-09-17 05:30:24 -0700266 'conditions': [
267 ['OS=="android"', {
268 'dependencies!': [
269 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
270 ],
271 }],
272 ],
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000273 },
274 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000275 'target_name': 'video_loopback',
276 'type': 'executable',
277 'sources': [
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000278 'test/mac/run_test.mm',
279 'test/run_test.cc',
280 'test/run_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000281 'video/video_loopback.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000282 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000283 'conditions': [
284 ['OS=="mac"', {
285 'sources!': [
286 'test/run_test.cc',
287 ],
288 }],
289 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000290 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700291 'video_quality_test',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000292 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org023b1012014-05-13 11:26:40 +0000293 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800294 'test/test.gyp:test_common',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000295 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800296 'test/test.gyp:test_renderer',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000297 'webrtc',
298 ],
299 },
Peter Boström4b91bd02015-06-26 06:58:16 +0200300 {
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000301 'target_name': 'screenshare_loopback',
302 'type': 'executable',
303 'sources': [
304 'test/mac/run_test.mm',
305 'test/run_test.cc',
306 'test/run_test.h',
307 'video/screenshare_loopback.cc',
308 ],
309 'conditions': [
310 ['OS=="mac"', {
311 'sources!': [
312 'test/run_test.cc',
313 ],
314 }],
315 ],
316 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700317 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000318 '<(DEPTH)/testing/gtest.gyp:gtest',
319 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800320 'test/test.gyp:test_common',
stefan@webrtc.orgb3265ac2014-11-04 14:57:14 +0000321 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800322 'test/test.gyp:test_renderer',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000323 'webrtc',
324 ],
325 },
326 {
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000327 'target_name': 'video_replay',
328 'type': 'executable',
329 'sources': [
330 'test/mac/run_test.mm',
331 'test/run_test.cc',
332 'test/run_test.h',
333 'video/replay.cc',
334 ],
335 'conditions': [
336 ['OS=="mac"', {
337 'sources!': [
338 'test/run_test.cc',
339 ],
340 }],
341 ],
342 'dependencies': [
343 '<(DEPTH)/testing/gtest.gyp:gtest',
344 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800345 'test/test.gyp:test_common',
346 'test/test.gyp:test_renderer',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000347 '<(webrtc_root)/modules/modules.gyp:video_capture',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000348 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000349 'webrtc',
350 ],
351 },
352 {
solenbergc7a8b082015-10-16 14:35:07 -0700353 # TODO(solenberg): Rename to webrtc_call_tests.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000354 'target_name': 'video_engine_tests',
355 'type': '<(gtest_target_type)',
356 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200357 'audio/audio_receive_stream_unittest.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700358 'audio/audio_send_stream_unittest.cc',
solenberg566ef242015-11-06 15:34:49 -0800359 'audio/audio_state_unittest.cc',
mflodman0e7e2592015-11-12 21:02:42 -0800360 'call/bitrate_allocator_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200361 'call/bitrate_estimator_tests.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700362 'call/call_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200363 'call/packet_injection_tests.cc',
terelius4311ba52016-04-22 12:40:37 -0700364 'call/ringbuffer_unittest.cc',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000365 'test/common_unittest.cc',
366 'test/testsupport/metrics/video_metrics_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100367 'video/call_stats_unittest.cc',
368 'video/encoder_state_feedback_unittest.cc',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000369 'video/end_to_end_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100370 'video/overuse_frame_detector_unittest.cc',
371 'video/payload_router_unittest.cc',
372 'video/report_block_stats_unittest.cc',
asapersson35151f32016-05-02 23:44:01 -0700373 'video/send_delay_stats_unittest.cc',
sprang@webrtc.orgccd42842014-01-07 09:54:34 +0000374 'video/send_statistics_proxy_unittest.cc',
asapersson0e9d6d92016-05-23 06:07:55 -0700375 'video/stats_counter_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100376 'video/stream_synchronization_unittest.cc',
Peter Boström4b91bd02015-06-26 06:58:16 +0200377 'video/video_capture_input_unittest.cc',
Peter Boström7252a2b2015-05-18 19:42:03 +0200378 'video/video_decoder_unittest.cc',
Peter Boström4d71ede2015-05-19 23:09:35 +0200379 'video/video_encoder_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000380 'video/video_send_stream_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100381 'video/vie_remb_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000382 ],
383 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000384 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000385 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000386 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000387 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000388 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000389 '<(webrtc_root)/test/test.gyp:channel_transport',
390 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +0000391 'test/metrics.gyp:metrics',
kjellander0e739342016-03-02 10:46:17 -0800392 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000393 'test/test.gyp:test_main',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000394 'webrtc',
395 ],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000396 'conditions': [
hbosbab934b2016-01-27 01:36:03 -0800397 ['rtc_use_h264==1', {
398 'defines': [
399 'WEBRTC_END_TO_END_H264_TESTS',
400 ],
401 }],
kjellander@webrtc.org76a42572014-09-02 08:40:39 +0000402 ['OS=="android"', {
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000403 'dependencies': [
404 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
405 ],
406 }],
kjellander02060002016-02-16 22:06:12 -0800407 ['OS=="ios"', {
408 'mac_bundle_resources': [
409 '<(DEPTH)/resources/foreman_cif_short.yuv',
410 '<(DEPTH)/resources/voice_engine/audio_long16.pcm',
411 ],
412 }],
Bjorn Terelius36411852015-07-30 12:45:18 +0200413 ['enable_protobuf==1', {
414 'defines': [
415 'ENABLE_RTC_EVENT_LOG',
416 ],
417 'dependencies': [
418 'webrtc.gyp:rtc_event_log',
tereliusd5c1a0b2016-05-13 00:42:59 -0700419 'webrtc.gyp:rtc_event_log_parser',
Bjorn Terelius36411852015-07-30 12:45:18 +0200420 'webrtc.gyp:rtc_event_log_proto',
421 ],
422 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200423 'call/rtc_event_log_unittest.cc',
tereliusd5c1a0b2016-05-13 00:42:59 -0700424 'call/rtc_event_log_unittest_helper.cc'
Bjorn Terelius36411852015-07-30 12:45:18 +0200425 ],
426 }],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000427 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000428 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000429 {
430 'target_name': 'webrtc_perf_tests',
431 'type': '<(gtest_target_type)',
432 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200433 'call/call_perf_tests.cc',
stefanff483612015-12-21 03:14:00 -0800434 'call/rampup_tests.cc',
435 'call/rampup_tests.h',
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000436 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
peah9fca7e12015-12-20 23:13:40 -0800437 'modules/audio_processing/audio_processing_performance_unittest.cc',
peahca4cac72016-06-29 15:26:12 -0700438 'modules/audio_processing/level_controller/level_controller_complexity_unittest.cc',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200439 'modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000440 'video/full_stack.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000441 ],
442 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000443 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000444 '<(DEPTH)/testing/gtest.gyp:gtest',
peah9fca7e12015-12-20 23:13:40 -0800445 '<(webrtc_root)/modules/modules.gyp:audio_processing',
446 '<(webrtc_root)/modules/modules.gyp:audioproc_test_utils',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000447 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000448 '<(webrtc_root)/test/test.gyp:channel_transport',
449 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
ivica5d6a06c2015-09-17 05:30:24 -0700450 'video_quality_test',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200451 'modules/modules.gyp:neteq_test_support',
452 'modules/modules.gyp:bwe_simulator',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000453 'modules/modules.gyp:rtp_rtcp',
kjellander0e739342016-03-02 10:46:17 -0800454 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000455 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800456 'test/test.gyp:test_renderer',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000457 'webrtc',
458 ],
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000459 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000460 ['OS=="android"', {
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000461 'dependencies': [
462 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
463 ],
464 }],
465 ],
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000466 },
Peter Boström95192fb2015-10-29 12:41:56 +0100467 {
468 'target_name': 'webrtc_nonparallel_tests',
469 'type': '<(gtest_target_type)',
470 'sources': [
471 'base/nullsocketserver_unittest.cc',
472 'base/physicalsocketserver_unittest.cc',
473 'base/socket_unittest.cc',
474 'base/socket_unittest.h',
475 'base/socketaddress_unittest.cc',
476 'base/virtualsocket_unittest.cc',
477 ],
phoglundc6c00b32016-05-04 01:54:35 -0700478 'defines': [
479 'GTEST_RELATIVE_PATH',
480 ],
Peter Boström95192fb2015-10-29 12:41:56 +0100481 'dependencies': [
482 '<(DEPTH)/testing/gtest.gyp:gtest',
483 'base/base.gyp:rtc_base',
484 'test/test.gyp:test_main',
485 ],
486 'conditions': [
487 ['OS=="android"', {
488 'dependencies': [
489 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
490 ],
491 }],
492 ['OS=="win"', {
493 'sources': [
494 'base/win32socketserver_unittest.cc',
495 ],
496 'sources!': [
497 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
498 # then reenable these tests.
499 # TODO(pbos): Move test disabling to ifdefs within the test files
500 # instead of here.
501 'base/physicalsocketserver_unittest.cc',
502 'base/socket_unittest.cc',
503 'base/win32socketserver_unittest.cc',
504 ],
505 }],
506 ['OS=="mac"', {
507 'sources': [
508 'base/macsocketserver_unittest.cc',
509 ],
510 }],
511 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
512 'defines': [
513 'CARBON_DEPRECATED=YES',
514 ],
515 }],
516 ],
517 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000518 ],
519 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000520 ['OS=="android"', {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000521 'targets': [
522 {
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000523 'target_name': 'rtc_unittests_apk_target',
524 'type': 'none',
525 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700526 '<(android_tests_path):rtc_unittests_apk',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000527 ],
528 },
529 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000530 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000531 'type': 'none',
532 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700533 '<(android_tests_path):video_engine_tests_apk',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000534 ],
535 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000536 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000537 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000538 'type': 'none',
539 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700540 '<(android_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000541 ],
542 },
Peter Boström95192fb2015-10-29 12:41:56 +0100543 {
544 'target_name': 'webrtc_nonparallel_tests_apk_target',
545 'type': 'none',
546 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700547 '<(android_tests_path):webrtc_nonparallel_tests_apk',
Peter Boström95192fb2015-10-29 12:41:56 +0100548 ],
549 },
magjedce17e012016-06-01 00:43:59 -0700550 {
551 'target_name': 'android_junit_tests_target',
552 'type': 'none',
553 'dependencies': [
554 '<(android_tests_path):android_junit_tests',
555 ],
556 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000557 ],
kjellandere532aec2016-04-17 20:08:20 -0700558 'conditions': [
559 ['test_isolation_mode != "noop"',
560 {
561 'targets': [
562 {
563 'target_name': 'rtc_unittests_apk_run',
564 'type': 'none',
565 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700566 '<(android_tests_path):rtc_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700567 ],
568 'includes': [
569 'build/isolate.gypi',
570 ],
571 'sources': [
572 'rtc_unittests_apk.isolate',
573 ],
574 },
575 {
576 'target_name': 'video_engine_tests_apk_run',
577 'type': 'none',
578 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700579 '<(android_tests_path):video_engine_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700580 ],
581 'includes': [
582 'build/isolate.gypi',
583 ],
584 'sources': [
585 'video_engine_tests_apk.isolate',
586 ],
587 },
588 {
589 'target_name': 'webrtc_perf_tests_apk_run',
590 'type': 'none',
591 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700592 '<(android_tests_path):webrtc_perf_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700593 ],
594 'includes': [
595 'build/isolate.gypi',
596 ],
597 'sources': [
598 'webrtc_perf_tests_apk.isolate',
599 ],
600 },
601 {
602 'target_name': 'webrtc_nonparallel_tests_apk_run',
603 'type': 'none',
604 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700605 '<(android_tests_path):webrtc_nonparallel_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700606 ],
607 'includes': [
608 'build/isolate.gypi',
609 ],
610 'sources': [
611 'webrtc_nonparallel_tests_apk.isolate',
612 ],
613 },
614 ],
615 },
616 ],
617 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000618 }],
619 ['test_isolation_mode != "noop"', {
620 'targets': [
621 {
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000622 'target_name': 'rtc_unittests_run',
623 'type': 'none',
624 'dependencies': [
625 'rtc_unittests',
626 ],
627 'includes': [
628 'build/isolate.gypi',
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000629 ],
630 'sources': [
631 'rtc_unittests.isolate',
632 ],
633 },
634 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000635 'target_name': 'video_engine_tests_run',
636 'type': 'none',
637 'dependencies': [
638 'video_engine_tests',
639 ],
640 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000641 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000642 ],
643 'sources': [
644 'video_engine_tests.isolate',
645 ],
646 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000647 {
Peter Boström4f4f7562015-10-29 15:29:04 +0100648 'target_name': 'webrtc_nonparallel_tests_run',
649 'type': 'none',
650 'dependencies': [
651 'webrtc_nonparallel_tests',
652 ],
653 'includes': [
654 'build/isolate.gypi',
655 ],
656 'sources': [
657 'webrtc_nonparallel_tests.isolate',
658 ],
659 },
660 {
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000661 'target_name': 'webrtc_perf_tests_run',
662 'type': 'none',
663 'dependencies': [
664 'webrtc_perf_tests',
665 ],
666 'includes': [
667 'build/isolate.gypi',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000668 ],
669 'sources': [
670 'webrtc_perf_tests.isolate',
671 ],
672 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000673 ],
674 }],
675 ],
676}