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