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