blob: b5ab23f041a849235c5eb140b6dbda6df7823969 [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 ],
32 },
33 {
34 'target_name': 'webrtc_base_tests',
35 'type': 'executable',
36 'dependencies': [
37 '<(DEPTH)/testing/gtest.gyp:gtest',
38 'base.gyp:webrtc_base',
39 'webrtc_base_tests_utils',
40 ],
41 'sources': [
42 'asynchttprequest_unittest.cc',
43 'atomicops_unittest.cc',
44 'autodetectproxy_unittest.cc',
45 'bandwidthsmoother_unittest.cc',
46 'base64_unittest.cc',
47 'basictypes_unittest.cc',
48 'bind_unittest.cc',
49 'buffer_unittest.cc',
50 'bytebuffer_unittest.cc',
51 'byteorder_unittest.cc',
52 'callback_unittest.cc',
53 'cpumonitor_unittest.cc',
54 'crc32_unittest.cc',
55 'criticalsection_unittest.cc',
56 'event_unittest.cc',
57 'filelock_unittest.cc',
58 'fileutils_unittest.cc',
59 'helpers_unittest.cc',
60 'httpbase_unittest.cc',
61 'httpcommon_unittest.cc',
62 'httpserver_unittest.cc',
63 'ipaddress_unittest.cc',
64 'logging_unittest.cc',
65 'md5digest_unittest.cc',
66 'messagedigest_unittest.cc',
67 'messagequeue_unittest.cc',
68 'multipart_unittest.cc',
69 'nat_unittest.cc',
70 'network_unittest.cc',
71 'nullsocketserver_unittest.cc',
72 'optionsfile_unittest.cc',
73 'pathutils_unittest.cc',
74 'physicalsocketserver_unittest.cc',
75 'profiler_unittest.cc',
76 'proxy_unittest.cc',
77 'proxydetect_unittest.cc',
78 'ratelimiter_unittest.cc',
79 'ratetracker_unittest.cc',
80 'referencecountedsingletonfactory_unittest.cc',
81 'rollingaccumulator_unittest.cc',
82 'scopedptrcollection_unittest.cc',
83 'sha1digest_unittest.cc',
84 'sharedexclusivelock_unittest.cc',
85 'signalthread_unittest.cc',
86 'sigslot_unittest.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000087 'sigslottester.h',
88 'sigslottester.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000089 'socket_unittest.cc',
90 'socket_unittest.h',
91 'socketaddress_unittest.cc',
92 'stream_unittest.cc',
93 'stringencode_unittest.cc',
94 'stringutils_unittest.cc',
95 # TODO(ronghuawu): Reenable this test.
96 # 'systeminfo_unittest.cc',
97 'task_unittest.cc',
98 'testclient_unittest.cc',
99 'thread_unittest.cc',
100 'timeutils_unittest.cc',
101 'urlencode_unittest.cc',
102 'versionparsing_unittest.cc',
103 'virtualsocket_unittest.cc',
104 # TODO(ronghuawu): Reenable this test.
105 # 'windowpicker_unittest.cc',
106 ],
107 'conditions': [
108 ['OS=="linux"', {
109 'sources': [
110 'latebindingsymboltable_unittest.cc',
111 # TODO(ronghuawu): Reenable this test.
112 # 'linux_unittest.cc',
113 'linuxfdwalk_unittest.cc',
114 ],
115 }],
116 ['OS=="win"', {
117 'sources': [
118 'win32_unittest.cc',
119 'win32regkey_unittest.cc',
120 'win32socketserver_unittest.cc',
121 'win32toolhelp_unittest.cc',
122 'win32window_unittest.cc',
123 'win32windowpicker_unittest.cc',
124 'winfirewall_unittest.cc',
125 ],
126 'sources!': [
127 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
128 # then reenable these tests.
129 'physicalsocketserver_unittest.cc',
130 'socket_unittest.cc',
131 'win32socketserver_unittest.cc',
132 'win32windowpicker_unittest.cc',
133 ],
134 }],
135 ['OS=="mac"', {
136 'sources': [
137 'macsocketserver_unittest.cc',
138 'macutils_unittest.cc',
139 ],
140 }],
141 ['os_posix==1', {
142 'sources': [
143 'sslidentity_unittest.cc',
144 'sslstreamadapter_unittest.cc',
145 ],
146 }],
147 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
148 'defines': [
149 'CARBON_DEPRECATED=YES',
150 ],
151 }],
152 ], # conditions
153 },
154 ],
155}