Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / base / base_tests.gyp
1 # 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         'testutils.h',
26         'win32toolhelp.h',
27       ],
28       'dependencies': [
29         'base.gyp:webrtc_base',
30         '<(DEPTH)/testing/gtest.gyp:gtest',
31       ],
32       'export_dependent_settings': [
33         '<(DEPTH)/testing/gtest.gyp:gtest',
34       ],
35     },
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         'exp_filter_unittest.cc',
61         'filelock_unittest.cc',
62         'fileutils_unittest.cc',
63         'helpers_unittest.cc',
64         'httpbase_unittest.cc',
65         'httpcommon_unittest.cc',
66         'httpserver_unittest.cc',
67         'ipaddress_unittest.cc',
68         'logging_unittest.cc',
69         'md5digest_unittest.cc',
70         'messagedigest_unittest.cc',
71         'messagequeue_unittest.cc',
72         'multipart_unittest.cc',
73         'nat_unittest.cc',
74         'network_unittest.cc',
75         'nullsocketserver_unittest.cc',
76         'optionsfile_unittest.cc',
77         'pathutils_unittest.cc',
78         'physicalsocketserver_unittest.cc',
79         'profiler_unittest.cc',
80         'proxy_unittest.cc',
81         'proxydetect_unittest.cc',
82         'ratelimiter_unittest.cc',
83         'ratetracker_unittest.cc',
84         'referencecountedsingletonfactory_unittest.cc',
85         'rollingaccumulator_unittest.cc',
86         'scopedptrcollection_unittest.cc',
87         'sha1digest_unittest.cc',
88         'sharedexclusivelock_unittest.cc',
89         'signalthread_unittest.cc',
90         'sigslot_unittest.cc',
91         'sigslottester.h',
92         'sigslottester.h.pump',
93         'socket_unittest.cc',
94         'socket_unittest.h',
95         'socketaddress_unittest.cc',
96         'stream_unittest.cc',
97         'stringencode_unittest.cc',
98         'stringutils_unittest.cc',
99         # TODO(ronghuawu): Reenable this test.
100         # 'systeminfo_unittest.cc',
101         'task_unittest.cc',
102         'testclient_unittest.cc',
103         'thread_checker_unittest.cc',
104         'thread_unittest.cc',
105         'timeutils_unittest.cc',
106         'urlencode_unittest.cc',
107         'versionparsing_unittest.cc',
108         'virtualsocket_unittest.cc',
109         # TODO(ronghuawu): Reenable this test.
110         # 'windowpicker_unittest.cc',
111       ],
112       'conditions': [
113         ['OS=="linux"', {
114           'sources': [
115             'latebindingsymboltable_unittest.cc',
116             # TODO(ronghuawu): Reenable this test.
117             # 'linux_unittest.cc',
118             'linuxfdwalk_unittest.cc',
119           ],
120         }],
121         ['OS=="win"', {
122           'sources': [
123             'win32_unittest.cc',
124             'win32regkey_unittest.cc',
125             'win32socketserver_unittest.cc',
126             'win32toolhelp_unittest.cc',
127             'win32window_unittest.cc',
128             'win32windowpicker_unittest.cc',
129             'winfirewall_unittest.cc',
130           ],
131           'sources!': [
132             # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
133             # then reenable these tests.
134             'physicalsocketserver_unittest.cc',
135             'socket_unittest.cc',
136             'win32socketserver_unittest.cc',
137             'win32windowpicker_unittest.cc',
138           ],
139         }],
140         ['OS=="mac"', {
141           'sources': [
142             'macsocketserver_unittest.cc',
143             'macutils_unittest.cc',
144           ],
145         }],
146         ['os_posix==1', {
147           'sources': [
148             'sslidentity_unittest.cc',
149             'sslstreamadapter_unittest.cc',
150           ],
151         }],
152         ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
153           'defines': [
154             'CARBON_DEPRECATED=YES',
155           ],
156         }],
157       ],  # conditions
158     },
159   ],
160 }