blob: c5cc7b809abf52dda56eeea24bab12766d576e55 [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',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +000099 'thread_checker_unittest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000100 'thread_unittest.cc',
101 'timeutils_unittest.cc',
102 'urlencode_unittest.cc',
103 'versionparsing_unittest.cc',
104 'virtualsocket_unittest.cc',
105 # TODO(ronghuawu): Reenable this test.
106 # 'windowpicker_unittest.cc',
107 ],
108 'conditions': [
109 ['OS=="linux"', {
110 'sources': [
111 'latebindingsymboltable_unittest.cc',
112 # TODO(ronghuawu): Reenable this test.
113 # 'linux_unittest.cc',
114 'linuxfdwalk_unittest.cc',
115 ],
116 }],
117 ['OS=="win"', {
118 'sources': [
119 'win32_unittest.cc',
120 'win32regkey_unittest.cc',
121 'win32socketserver_unittest.cc',
122 'win32toolhelp_unittest.cc',
123 'win32window_unittest.cc',
124 'win32windowpicker_unittest.cc',
125 'winfirewall_unittest.cc',
126 ],
127 'sources!': [
128 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
129 # then reenable these tests.
130 'physicalsocketserver_unittest.cc',
131 'socket_unittest.cc',
132 'win32socketserver_unittest.cc',
133 'win32windowpicker_unittest.cc',
134 ],
135 }],
136 ['OS=="mac"', {
137 'sources': [
138 'macsocketserver_unittest.cc',
139 'macutils_unittest.cc',
140 ],
141 }],
142 ['os_posix==1', {
143 'sources': [
144 'sslidentity_unittest.cc',
145 'sslstreamadapter_unittest.cc',
146 ],
147 }],
148 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
149 'defines': [
150 'CARBON_DEPRECATED=YES',
151 ],
152 }],
153 ], # conditions
154 },
155 ],
156}