• 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        'fakenetwork.h',
19        'fakesslidentity.h',
20        'faketaskrunner.h',
21        'gunit.h',
22        'testbase64.h',
23        'testechoserver.h',
24        'testutils.h',
25      ],
26      'defines': [
27        'GTEST_RELATIVE_PATH',
28      ],
29      'dependencies': [
30        'base.gyp:rtc_base',
31        '<(DEPTH)/testing/gtest.gyp:gtest',
32        '<(webrtc_root)/test/test.gyp:field_trial',
33      ],
34      'direct_dependent_settings': {
35        'defines': [
36          'GTEST_RELATIVE_PATH',
37        ],
38      },
39      'export_dependent_settings': [
40        '<(DEPTH)/testing/gtest.gyp:gtest',
41      ],
42    },
43    {
44      'target_name': 'rtc_base_tests',
45      'type': 'none',
46      'direct_dependent_settings': {
47        'sources': [
48          'array_view_unittest.cc',
49          'atomicops_unittest.cc',
50          'autodetectproxy_unittest.cc',
51          'bandwidthsmoother_unittest.cc',
52          'base64_unittest.cc',
53          'basictypes_unittest.cc',
54          'bind_unittest.cc',
55          'bitbuffer_unittest.cc',
56          'buffer_unittest.cc',
57          'bufferqueue_unittest.cc',
58          'bytebuffer_unittest.cc',
59          'byteorder_unittest.cc',
60          'callback_unittest.cc',
61          'crc32_unittest.cc',
62          'criticalsection_unittest.cc',
63          'event_tracer_unittest.cc',
64          'event_unittest.cc',
65          'exp_filter_unittest.cc',
66          'filerotatingstream_unittest.cc',
67          'fileutils_unittest.cc',
68          'helpers_unittest.cc',
69          'httpbase_unittest.cc',
70          'httpcommon_unittest.cc',
71          'httpserver_unittest.cc',
72          'ipaddress_unittest.cc',
73          'logging_unittest.cc',
74          'md5digest_unittest.cc',
75          'messagedigest_unittest.cc',
76          'messagequeue_unittest.cc',
77          'multipart_unittest.cc',
78          'nat_unittest.cc',
79          'network_unittest.cc',
80          'optional_unittest.cc',
81          'optionsfile_unittest.cc',
82          'pathutils_unittest.cc',
83          'platform_thread_unittest.cc',
84          'profiler_unittest.cc',
85          'proxy_unittest.cc',
86          'proxydetect_unittest.cc',
87          'random_unittest.cc',
88          'ratelimiter_unittest.cc',
89          'ratetracker_unittest.cc',
90          'referencecountedsingletonfactory_unittest.cc',
91          'rollingaccumulator_unittest.cc',
92          'rtccertificate_unittests.cc',
93          'scopedptrcollection_unittest.cc',
94          'sha1digest_unittest.cc',
95          'sharedexclusivelock_unittest.cc',
96          'signalthread_unittest.cc',
97          'sigslot_unittest.cc',
98          'sigslottester.h',
99          'sigslottester.h.pump',
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          # TODO(ronghuawu): Reenable this test.
113          # 'windowpicker_unittest.cc',
114        ],
115        'conditions': [
116          ['OS=="linux"', {
117            'sources': [
118              'latebindingsymboltable_unittest.cc',
119              # TODO(ronghuawu): Reenable this test.
120              # 'linux_unittest.cc',
121              'linuxfdwalk_unittest.cc',
122            ],
123          }],
124          ['OS=="win"', {
125            'sources': [
126              'win32_unittest.cc',
127              'win32regkey_unittest.cc',
128              'win32window_unittest.cc',
129              'win32windowpicker_unittest.cc',
130              'winfirewall_unittest.cc',
131            ],
132            'sources!': [
133              # TODO(pbos): Reenable this test.
134              'win32windowpicker_unittest.cc',
135            ],
136          }],
137          ['OS=="win" and clang==1', {
138            'msvs_settings': {
139              'VCCLCompilerTool': {
140                'AdditionalOptions': [
141                  # Disable warnings failing when compiling with Clang on Windows.
142                  # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
143                  '-Wno-missing-braces',
144                  '-Wno-unused-const-variable',
145                ],
146              },
147            },
148          }],
149          ['OS=="mac"', {
150            'sources': [
151              'macutils_unittest.cc',
152            ],
153          }],
154          ['os_posix==1', {
155            'sources': [
156              'ssladapter_unittest.cc',
157              'sslidentity_unittest.cc',
158              'sslstreamadapter_unittest.cc',
159            ],
160          }],
161          ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
162            'defines': [
163              'CARBON_DEPRECATED=YES',
164            ],
165          }],
166        ],  # conditions
167      },
168    },
169  ],
170}
171