blob: ca0d72a0441047eeec83cdb4f00109124788f28c [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +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 'includes': [ '../build/common.gypi', ],
10 'targets': [
11 {
12 'target_name': 'webrtc_base_tests_utils',
13 'type': 'static_library',
14 'sources': [
15 'unittest_main.cc',
16 # Also use this as a convenient dumping ground for misc files that are
17 # included by multiple targets below.
18 'fakecpumonitor.h',
19 'fakenetwork.h',
20 'fakesslidentity.h',
21 'faketaskrunner.h',
22 'gunit.h',
23 'testbase64.h',
24 'testechoserver.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000025 'testutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000026 'win32toolhelp.h',
27 ],
28 'dependencies': [
29 'base.gyp:webrtc_base',
30 '<(DEPTH)/testing/gtest.gyp:gtest',
31 ],
henrike@webrtc.org37b4e1b2014-07-01 16:39:17 +000032 'export_dependent_settings': [
33 '<(DEPTH)/testing/gtest.gyp:gtest',
34 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000035 },
36 {
37 'target_name': 'webrtc_base_tests',
38 'type': 'executable',
39 'dependencies': [
40 '<(DEPTH)/testing/gtest.gyp:gtest',
41 'base.gyp:webrtc_base',
42 'webrtc_base_tests_utils',
43 ],
44 'sources': [
45 'asynchttprequest_unittest.cc',
46 'atomicops_unittest.cc',
47 'autodetectproxy_unittest.cc',
48 'bandwidthsmoother_unittest.cc',
49 'base64_unittest.cc',
50 'basictypes_unittest.cc',
51 'bind_unittest.cc',
52 'buffer_unittest.cc',
53 'bytebuffer_unittest.cc',
54 'byteorder_unittest.cc',
55 'callback_unittest.cc',
56 'cpumonitor_unittest.cc',
57 'crc32_unittest.cc',
58 'criticalsection_unittest.cc',
59 'event_unittest.cc',
60 'filelock_unittest.cc',
61 'fileutils_unittest.cc',
62 'helpers_unittest.cc',
63 'httpbase_unittest.cc',
64 'httpcommon_unittest.cc',
65 'httpserver_unittest.cc',
66 'ipaddress_unittest.cc',
67 'logging_unittest.cc',
68 'md5digest_unittest.cc',
69 'messagedigest_unittest.cc',
70 'messagequeue_unittest.cc',
71 'multipart_unittest.cc',
72 'nat_unittest.cc',
73 'network_unittest.cc',
74 'nullsocketserver_unittest.cc',
75 'optionsfile_unittest.cc',
76 'pathutils_unittest.cc',
77 'physicalsocketserver_unittest.cc',
78 'profiler_unittest.cc',
79 'proxy_unittest.cc',
80 'proxydetect_unittest.cc',
81 'ratelimiter_unittest.cc',
82 'ratetracker_unittest.cc',
83 'referencecountedsingletonfactory_unittest.cc',
84 'rollingaccumulator_unittest.cc',
85 'scopedptrcollection_unittest.cc',
86 'sha1digest_unittest.cc',
87 'sharedexclusivelock_unittest.cc',
88 'signalthread_unittest.cc',
89 'sigslot_unittest.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000090 'sigslottester.h',
91 'sigslottester.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000092 'socket_unittest.cc',
93 'socket_unittest.h',
94 'socketaddress_unittest.cc',
95 'stream_unittest.cc',
96 'stringencode_unittest.cc',
97 'stringutils_unittest.cc',
98 # TODO(ronghuawu): Reenable this test.
99 # 'systeminfo_unittest.cc',
100 'task_unittest.cc',
101 'testclient_unittest.cc',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000102 'thread_checker_unittest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000103 'thread_unittest.cc',
104 'timeutils_unittest.cc',
105 'urlencode_unittest.cc',
106 'versionparsing_unittest.cc',
107 'virtualsocket_unittest.cc',
108 # TODO(ronghuawu): Reenable this test.
109 # 'windowpicker_unittest.cc',
110 ],
111 'conditions': [
112 ['OS=="linux"', {
113 'sources': [
114 'latebindingsymboltable_unittest.cc',
115 # TODO(ronghuawu): Reenable this test.
116 # 'linux_unittest.cc',
117 'linuxfdwalk_unittest.cc',
118 ],
119 }],
120 ['OS=="win"', {
121 'sources': [
122 'win32_unittest.cc',
123 'win32regkey_unittest.cc',
124 'win32socketserver_unittest.cc',
125 'win32toolhelp_unittest.cc',
126 'win32window_unittest.cc',
127 'win32windowpicker_unittest.cc',
128 'winfirewall_unittest.cc',
129 ],
130 'sources!': [
131 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
132 # then reenable these tests.
133 'physicalsocketserver_unittest.cc',
134 'socket_unittest.cc',
135 'win32socketserver_unittest.cc',
136 'win32windowpicker_unittest.cc',
137 ],
138 }],
139 ['OS=="mac"', {
140 'sources': [
141 'macsocketserver_unittest.cc',
142 'macutils_unittest.cc',
143 ],
144 }],
145 ['os_posix==1', {
146 'sources': [
147 'sslidentity_unittest.cc',
148 'sslstreamadapter_unittest.cc',
149 ],
150 }],
151 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
152 'defines': [
153 'CARBON_DEPRECATED=YES',
154 ],
155 }],
156 ], # conditions
157 },
158 ],
159}