blob: f1217eba1cb828c144a75deb722c318dbcf20a11 [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',
sprangcd349d92016-07-13 09:11:28 -070066 'base/rate_limiter_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070067 'base/rate_statistics_unittest.cc',
68 'base/ratelimiter_unittest.cc',
69 'base/ratetracker_unittest.cc',
70 'base/referencecountedsingletonfactory_unittest.cc',
71 'base/rollingaccumulator_unittest.cc',
72 'base/rtccertificate_unittest.cc',
73 'base/rtccertificategenerator_unittest.cc',
74 'base/scopedptrcollection_unittest.cc',
perkj9c16fe82016-07-12 15:04:07 -070075 'base/sequenced_task_checker_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070076 'base/sha1digest_unittest.cc',
77 'base/sharedexclusivelock_unittest.cc',
78 'base/signalthread_unittest.cc',
79 'base/sigslot_unittest.cc',
80 'base/sigslottester.h',
81 'base/sigslottester.h.pump',
82 'base/stream_unittest.cc',
83 'base/stringencode_unittest.cc',
84 'base/stringutils_unittest.cc',
85 'base/swap_queue_unittest.cc',
86 # TODO(ronghuawu): Reenable this test.
87 # 'systeminfo_unittest.cc',
88 'base/task_queue_unittest.cc',
89 'base/task_unittest.cc',
90 'base/testclient_unittest.cc',
91 'base/thread_checker_unittest.cc',
92 'base/thread_unittest.cc',
nisse191b3592016-06-22 08:36:53 -070093 'base/timestampaligner_unittest.cc',
kjellander26306b12016-06-02 02:26:01 -070094 'base/timeutils_unittest.cc',
95 'base/urlencode_unittest.cc',
96 'base/versionparsing_unittest.cc',
97 # TODO(ronghuawu): Reenable this test.
98 # 'windowpicker_unittest.cc',
99 'p2p/base/dtlstransportchannel_unittest.cc',
100 'p2p/base/fakeportallocator.h',
101 'p2p/base/faketransportcontroller.h',
102 'p2p/base/p2ptransportchannel_unittest.cc',
103 'p2p/base/port_unittest.cc',
104 'p2p/base/portallocator_unittest.cc',
105 'p2p/base/pseudotcp_unittest.cc',
106 'p2p/base/relayport_unittest.cc',
107 'p2p/base/relayserver_unittest.cc',
108 'p2p/base/stun_unittest.cc',
109 'p2p/base/stunport_unittest.cc',
110 'p2p/base/stunrequest_unittest.cc',
111 'p2p/base/stunserver_unittest.cc',
112 'p2p/base/testrelayserver.h',
113 'p2p/base/teststunserver.h',
114 'p2p/base/testturnserver.h',
115 'p2p/base/transport_unittest.cc',
116 'p2p/base/transportcontroller_unittest.cc',
117 'p2p/base/transportdescriptionfactory_unittest.cc',
118 'p2p/base/tcpport_unittest.cc',
119 'p2p/base/turnport_unittest.cc',
120 'p2p/client/basicportallocator_unittest.cc',
121 'p2p/stunprober/stunprober_unittest.cc',
122 ],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000123 'conditions': [
kjellander26306b12016-06-02 02:26:01 -0700124 ['OS=="linux"', {
125 'sources': [
126 'base/latebindingsymboltable_unittest.cc',
127 # TODO(ronghuawu): Reenable this test.
128 # 'linux_unittest.cc',
129 'base/linuxfdwalk_unittest.cc',
130 ],
131 }],
132 ['OS=="win"', {
133 'sources': [
134 'base/win32_unittest.cc',
135 'base/win32regkey_unittest.cc',
136 'base/win32window_unittest.cc',
137 'base/win32windowpicker_unittest.cc',
138 'base/winfirewall_unittest.cc',
139 ],
kjellander26306b12016-06-02 02:26:01 -0700140 }],
141 ['OS=="win" and clang==1', {
142 'msvs_settings': {
143 'VCCLCompilerTool': {
144 'AdditionalOptions': [
145 # Disable warnings failing when compiling with Clang on Windows.
146 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
147 '-Wno-missing-braces',
148 '-Wno-sign-compare',
149 '-Wno-unused-const-variable',
150 ],
151 },
152 },
153 }],
154 ['OS=="mac"', {
155 'sources': [
156 'base/macutils_unittest.cc',
157 ],
158 }],
159 ['os_posix==1', {
160 'sources': [
161 'base/ssladapter_unittest.cc',
162 'base/sslidentity_unittest.cc',
163 'base/sslstreamadapter_unittest.cc',
164 ],
165 }],
166 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
167 'defines': [
168 'CARBON_DEPRECATED=YES',
169 ],
170 }],
171 ['use_quic==1', {
172 'sources': [
173 'p2p/quic/quicconnectionhelper_unittest.cc',
174 'p2p/quic/quicsession_unittest.cc',
175 'p2p/quic/quictransport_unittest.cc',
176 'p2p/quic/quictransportchannel_unittest.cc',
177 'p2p/quic/reliablequicstream_unittest.cc',
178 ],
179 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000180 ['OS=="android"', {
181 'dependencies': [
182 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
183 ],
184 }],
tkchin9eeb6242016-04-27 01:54:20 -0700185 ['OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7")', {
kjellander3bcedd32016-06-08 01:14:15 -0700186 'includes': [
187 'build/objc_common.gypi',
tkchin9eeb6242016-04-27 01:54:20 -0700188 ],
kjellander3bcedd32016-06-08 01:14:15 -0700189 'dependencies': [
190 'sdk/sdk.gyp:rtc_sdk_peerconnection_objc',
191 'system_wrappers/system_wrappers.gyp:metrics_default',
192 ],
193 'sources': [
194 'sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm',
195 'sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm',
196 'sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm',
197 'sdk/objc/Framework/UnitTests/RTCIceServerTest.mm',
198 'sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm',
199 'sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm',
200 ],
201 'xcode_settings': {
202 # |-ObjC| flag needed to make sure category method implementations
203 # are included:
204 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
205 'OTHER_LDFLAGS': ['-ObjC'],
206 },
tkchin9eeb6242016-04-27 01:54:20 -0700207 }],
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000208 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000209 },
210 {
tommi32e80e42016-05-24 05:47:57 -0700211 'target_name': 'xmllite_xmpp_unittests',
212 'type': '<(gtest_target_type)',
213 'dependencies': [
214 'base/base_tests.gyp:rtc_base_tests_utils', # needed for main()
215 'libjingle/xmllite/xmllite.gyp:rtc_xmllite',
216 'libjingle/xmpp/xmpp.gyp:rtc_xmpp',
tommi32e80e42016-05-24 05:47:57 -0700217 '<(DEPTH)/testing/gtest.gyp:gtest',
218 ],
kjellander26306b12016-06-02 02:26:01 -0700219 'sources': [
220 'libjingle/xmllite/qname_unittest.cc',
221 'libjingle/xmllite/xmlbuilder_unittest.cc',
222 'libjingle/xmllite/xmlelement_unittest.cc',
223 'libjingle/xmllite/xmlnsstack_unittest.cc',
224 'libjingle/xmllite/xmlparser_unittest.cc',
225 'libjingle/xmllite/xmlprinter_unittest.cc',
226 'libjingle/xmpp/fakexmppclient.h',
227 'libjingle/xmpp/hangoutpubsubclient_unittest.cc',
228 'libjingle/xmpp/jid_unittest.cc',
229 'libjingle/xmpp/mucroomconfigtask_unittest.cc',
230 'libjingle/xmpp/mucroomdiscoverytask_unittest.cc',
231 'libjingle/xmpp/mucroomlookuptask_unittest.cc',
232 'libjingle/xmpp/mucroomuniquehangoutidtask_unittest.cc',
233 'libjingle/xmpp/pingtask_unittest.cc',
234 'libjingle/xmpp/pubsubclient_unittest.cc',
235 'libjingle/xmpp/pubsubtasks_unittest.cc',
236 'libjingle/xmpp/util_unittest.cc',
237 'libjingle/xmpp/util_unittest.h',
238 'libjingle/xmpp/xmppengine_unittest.cc',
239 'libjingle/xmpp/xmpplogintask_unittest.cc',
240 'libjingle/xmpp/xmppstanzaparser_unittest.cc',
241 ],
tommi32e80e42016-05-24 05:47:57 -0700242 },
243 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000244 'target_name': 'webrtc_tests',
245 'type': 'none',
246 'dependencies': [
247 'video_engine_tests',
248 'video_loopback',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000249 'video_replay',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000250 'webrtc_perf_tests',
Peter Boström95192fb2015-10-29 12:41:56 +0100251 'webrtc_nonparallel_tests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000252 ],
253 },
254 {
ivica5d6a06c2015-09-17 05:30:24 -0700255 'target_name': 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000256 'type': 'static_library',
257 'sources': [
ivica5d6a06c2015-09-17 05:30:24 -0700258 'video/video_quality_test.cc',
259 'video/video_quality_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000260 ],
261 'dependencies': [
262 '<(DEPTH)/testing/gtest.gyp:gtest',
ivica5d6a06c2015-09-17 05:30:24 -0700263 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000264 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
265 'webrtc',
266 ],
ivica5d6a06c2015-09-17 05:30:24 -0700267 'conditions': [
268 ['OS=="android"', {
269 'dependencies!': [
270 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
271 ],
272 }],
273 ],
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000274 },
275 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000276 'target_name': 'video_loopback',
277 'type': 'executable',
278 'sources': [
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000279 'test/mac/run_test.mm',
280 'test/run_test.cc',
281 'test/run_test.h',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000282 'video/video_loopback.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000283 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000284 'conditions': [
285 ['OS=="mac"', {
286 'sources!': [
287 'test/run_test.cc',
288 ],
289 }],
290 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000291 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700292 'video_quality_test',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000293 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org023b1012014-05-13 11:26:40 +0000294 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800295 'test/test.gyp:test_common',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000296 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800297 'test/test.gyp:test_renderer',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000298 'webrtc',
299 ],
300 },
Peter Boström4b91bd02015-06-26 06:58:16 +0200301 {
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000302 'target_name': 'screenshare_loopback',
303 'type': 'executable',
304 'sources': [
305 'test/mac/run_test.mm',
306 'test/run_test.cc',
307 'test/run_test.h',
308 'video/screenshare_loopback.cc',
309 ],
310 'conditions': [
311 ['OS=="mac"', {
312 'sources!': [
313 'test/run_test.cc',
314 ],
315 }],
316 ],
317 'dependencies': [
ivica5d6a06c2015-09-17 05:30:24 -0700318 'video_quality_test',
sprang@webrtc.org131bea82015-02-18 12:46:06 +0000319 '<(DEPTH)/testing/gtest.gyp:gtest',
320 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800321 'test/test.gyp:test_common',
stefan@webrtc.orgb3265ac2014-11-04 14:57:14 +0000322 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800323 'test/test.gyp:test_renderer',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000324 'webrtc',
325 ],
326 },
327 {
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000328 'target_name': 'video_replay',
329 'type': 'executable',
330 'sources': [
331 'test/mac/run_test.mm',
332 'test/run_test.cc',
333 'test/run_test.h',
334 'video/replay.cc',
335 ],
336 'conditions': [
337 ['OS=="mac"', {
338 'sources!': [
339 'test/run_test.cc',
340 ],
341 }],
342 ],
343 'dependencies': [
344 '<(DEPTH)/testing/gtest.gyp:gtest',
345 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander0e739342016-03-02 10:46:17 -0800346 'test/test.gyp:test_common',
347 'test/test.gyp:test_renderer',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000348 '<(webrtc_root)/modules/modules.gyp:video_capture',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000349 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000350 'webrtc',
351 ],
352 },
353 {
solenbergc7a8b082015-10-16 14:35:07 -0700354 # TODO(solenberg): Rename to webrtc_call_tests.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000355 'target_name': 'video_engine_tests',
356 'type': '<(gtest_target_type)',
357 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200358 'audio/audio_receive_stream_unittest.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700359 'audio/audio_send_stream_unittest.cc',
solenberg566ef242015-11-06 15:34:49 -0800360 'audio/audio_state_unittest.cc',
mflodman0e7e2592015-11-12 21:02:42 -0800361 'call/bitrate_allocator_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200362 'call/bitrate_estimator_tests.cc',
solenbergc7a8b082015-10-16 14:35:07 -0700363 'call/call_unittest.cc',
Peter Boström5c389d32015-09-25 13:58:30 +0200364 'call/packet_injection_tests.cc',
terelius4311ba52016-04-22 12:40:37 -0700365 'call/ringbuffer_unittest.cc',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000366 'test/common_unittest.cc',
367 'test/testsupport/metrics/video_metrics_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100368 'video/call_stats_unittest.cc',
369 'video/encoder_state_feedback_unittest.cc',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +0000370 'video/end_to_end_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100371 'video/overuse_frame_detector_unittest.cc',
372 'video/payload_router_unittest.cc',
373 'video/report_block_stats_unittest.cc',
asapersson35151f32016-05-02 23:44:01 -0700374 'video/send_delay_stats_unittest.cc',
sprang@webrtc.orgccd42842014-01-07 09:54:34 +0000375 'video/send_statistics_proxy_unittest.cc',
asapersson0e9d6d92016-05-23 06:07:55 -0700376 'video/stats_counter_unittest.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100377 'video/stream_synchronization_unittest.cc',
Peter Boström4b91bd02015-06-26 06:58:16 +0200378 'video/video_capture_input_unittest.cc',
Peter Boström7252a2b2015-05-18 19:42:03 +0200379 'video/video_decoder_unittest.cc',
Peter Boström4d71ede2015-05-19 23:09:35 +0200380 'video/video_encoder_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000381 'video/video_send_stream_tests.cc',
Peter Boström7623ce42015-12-09 12:13:30 +0100382 'video/vie_remb_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000383 ],
384 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000385 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000386 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000387 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000388 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000389 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000390 '<(webrtc_root)/test/test.gyp:channel_transport',
391 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +0000392 'test/metrics.gyp:metrics',
kjellander0e739342016-03-02 10:46:17 -0800393 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000394 'test/test.gyp:test_main',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000395 'webrtc',
396 ],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000397 'conditions': [
hbosbab934b2016-01-27 01:36:03 -0800398 ['rtc_use_h264==1', {
399 'defines': [
400 'WEBRTC_END_TO_END_H264_TESTS',
401 ],
402 }],
kjellander@webrtc.org76a42572014-09-02 08:40:39 +0000403 ['OS=="android"', {
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000404 'dependencies': [
405 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
406 ],
407 }],
kjellander02060002016-02-16 22:06:12 -0800408 ['OS=="ios"', {
409 'mac_bundle_resources': [
410 '<(DEPTH)/resources/foreman_cif_short.yuv',
411 '<(DEPTH)/resources/voice_engine/audio_long16.pcm',
412 ],
413 }],
Bjorn Terelius36411852015-07-30 12:45:18 +0200414 ['enable_protobuf==1', {
415 'defines': [
416 'ENABLE_RTC_EVENT_LOG',
417 ],
418 'dependencies': [
419 'webrtc.gyp:rtc_event_log',
tereliusd5c1a0b2016-05-13 00:42:59 -0700420 'webrtc.gyp:rtc_event_log_parser',
Bjorn Terelius36411852015-07-30 12:45:18 +0200421 'webrtc.gyp:rtc_event_log_proto',
422 ],
423 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200424 'call/rtc_event_log_unittest.cc',
tereliusd5c1a0b2016-05-13 00:42:59 -0700425 'call/rtc_event_log_unittest_helper.cc'
Bjorn Terelius36411852015-07-30 12:45:18 +0200426 ],
427 }],
fischman@webrtc.org033aa222014-05-27 18:44:59 +0000428 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000429 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000430 {
431 'target_name': 'webrtc_perf_tests',
432 'type': '<(gtest_target_type)',
433 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200434 'call/call_perf_tests.cc',
stefanff483612015-12-21 03:14:00 -0800435 'call/rampup_tests.cc',
436 'call/rampup_tests.h',
henrik.lundin@webrtc.org9c55f0f2014-06-09 08:10:28 +0000437 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
peah9fca7e12015-12-20 23:13:40 -0800438 'modules/audio_processing/audio_processing_performance_unittest.cc',
peahca4cac72016-06-29 15:26:12 -0700439 'modules/audio_processing/level_controller/level_controller_complexity_unittest.cc',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200440 'modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000441 'video/full_stack.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000442 ],
443 'dependencies': [
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000444 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000445 '<(DEPTH)/testing/gtest.gyp:gtest',
peah9fca7e12015-12-20 23:13:40 -0800446 '<(webrtc_root)/modules/modules.gyp:audio_processing',
447 '<(webrtc_root)/modules/modules.gyp:audioproc_test_utils',
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000448 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org451a1332014-12-16 14:48:47 +0000449 '<(webrtc_root)/test/test.gyp:channel_transport',
450 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
ivica5d6a06c2015-09-17 05:30:24 -0700451 'video_quality_test',
Stefan Holmer09bdc1e2015-04-16 20:20:36 +0200452 'modules/modules.gyp:neteq_test_support',
453 'modules/modules.gyp:bwe_simulator',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000454 'modules/modules.gyp:rtp_rtcp',
kjellander0e739342016-03-02 10:46:17 -0800455 'test/test.gyp:test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000456 'test/test.gyp:test_main',
kjellander0e739342016-03-02 10:46:17 -0800457 'test/test.gyp:test_renderer',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000458 'webrtc',
459 ],
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000460 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000461 ['OS=="android"', {
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +0000462 'dependencies': [
463 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
464 ],
465 }],
466 ],
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000467 },
Peter Boström95192fb2015-10-29 12:41:56 +0100468 {
469 'target_name': 'webrtc_nonparallel_tests',
470 'type': '<(gtest_target_type)',
471 'sources': [
472 'base/nullsocketserver_unittest.cc',
473 'base/physicalsocketserver_unittest.cc',
474 'base/socket_unittest.cc',
475 'base/socket_unittest.h',
476 'base/socketaddress_unittest.cc',
477 'base/virtualsocket_unittest.cc',
478 ],
phoglundc6c00b32016-05-04 01:54:35 -0700479 'defines': [
480 'GTEST_RELATIVE_PATH',
481 ],
Peter Boström95192fb2015-10-29 12:41:56 +0100482 'dependencies': [
483 '<(DEPTH)/testing/gtest.gyp:gtest',
484 'base/base.gyp:rtc_base',
485 'test/test.gyp:test_main',
486 ],
487 'conditions': [
488 ['OS=="android"', {
489 'dependencies': [
490 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
491 ],
492 }],
493 ['OS=="win"', {
494 'sources': [
495 'base/win32socketserver_unittest.cc',
496 ],
497 'sources!': [
498 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
499 # then reenable these tests.
500 # TODO(pbos): Move test disabling to ifdefs within the test files
501 # instead of here.
502 'base/physicalsocketserver_unittest.cc',
503 'base/socket_unittest.cc',
504 'base/win32socketserver_unittest.cc',
505 ],
506 }],
507 ['OS=="mac"', {
508 'sources': [
509 'base/macsocketserver_unittest.cc',
510 ],
511 }],
512 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
513 'defines': [
514 'CARBON_DEPRECATED=YES',
515 ],
516 }],
517 ],
518 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000519 ],
520 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000521 ['OS=="android"', {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000522 'targets': [
523 {
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000524 'target_name': 'rtc_unittests_apk_target',
525 'type': 'none',
526 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700527 '<(android_tests_path):rtc_unittests_apk',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000528 ],
529 },
530 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000531 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000532 'type': 'none',
533 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700534 '<(android_tests_path):video_engine_tests_apk',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000535 ],
536 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000537 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000538 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000539 'type': 'none',
540 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700541 '<(android_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000542 ],
543 },
Peter Boström95192fb2015-10-29 12:41:56 +0100544 {
545 'target_name': 'webrtc_nonparallel_tests_apk_target',
546 'type': 'none',
547 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700548 '<(android_tests_path):webrtc_nonparallel_tests_apk',
Peter Boström95192fb2015-10-29 12:41:56 +0100549 ],
550 },
magjedce17e012016-06-01 00:43:59 -0700551 {
552 'target_name': 'android_junit_tests_target',
553 'type': 'none',
554 'dependencies': [
555 '<(android_tests_path):android_junit_tests',
556 ],
557 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000558 ],
kjellandere532aec2016-04-17 20:08:20 -0700559 'conditions': [
560 ['test_isolation_mode != "noop"',
561 {
562 'targets': [
563 {
564 'target_name': 'rtc_unittests_apk_run',
565 'type': 'none',
566 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700567 '<(android_tests_path):rtc_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700568 ],
569 'includes': [
570 'build/isolate.gypi',
571 ],
572 'sources': [
573 'rtc_unittests_apk.isolate',
574 ],
575 },
576 {
577 'target_name': 'video_engine_tests_apk_run',
578 'type': 'none',
579 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700580 '<(android_tests_path):video_engine_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700581 ],
582 'includes': [
583 'build/isolate.gypi',
584 ],
585 'sources': [
586 'video_engine_tests_apk.isolate',
587 ],
588 },
589 {
590 'target_name': 'webrtc_perf_tests_apk_run',
591 'type': 'none',
592 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700593 '<(android_tests_path):webrtc_perf_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700594 ],
595 'includes': [
596 'build/isolate.gypi',
597 ],
598 'sources': [
599 'webrtc_perf_tests_apk.isolate',
600 ],
601 },
602 {
603 'target_name': 'webrtc_nonparallel_tests_apk_run',
604 'type': 'none',
605 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700606 '<(android_tests_path):webrtc_nonparallel_tests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700607 ],
608 'includes': [
609 'build/isolate.gypi',
610 ],
611 'sources': [
612 'webrtc_nonparallel_tests_apk.isolate',
613 ],
614 },
615 ],
616 },
617 ],
618 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000619 }],
620 ['test_isolation_mode != "noop"', {
621 'targets': [
622 {
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000623 'target_name': 'rtc_unittests_run',
624 'type': 'none',
625 'dependencies': [
626 'rtc_unittests',
627 ],
628 'includes': [
629 'build/isolate.gypi',
henrike@webrtc.org792d1a02014-09-30 14:21:10 +0000630 ],
631 'sources': [
632 'rtc_unittests.isolate',
633 ],
634 },
635 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000636 'target_name': 'video_engine_tests_run',
637 'type': 'none',
638 'dependencies': [
639 'video_engine_tests',
640 ],
641 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000642 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000643 ],
644 'sources': [
645 'video_engine_tests.isolate',
646 ],
647 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000648 {
Peter Boström4f4f7562015-10-29 15:29:04 +0100649 'target_name': 'webrtc_nonparallel_tests_run',
650 'type': 'none',
651 'dependencies': [
652 'webrtc_nonparallel_tests',
653 ],
654 'includes': [
655 'build/isolate.gypi',
656 ],
657 'sources': [
658 'webrtc_nonparallel_tests.isolate',
659 ],
660 },
661 {
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000662 'target_name': 'webrtc_perf_tests_run',
663 'type': 'none',
664 'dependencies': [
665 'webrtc_perf_tests',
666 ],
667 'includes': [
668 'build/isolate.gypi',
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000669 ],
670 'sources': [
671 'webrtc_perf_tests.isolate',
672 ],
673 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000674 ],
675 }],
676 ],
677}