henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 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 | { |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 12 | 'target_name': 'rtc_base_tests_utils', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 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. |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 18 | 'fakenetwork.h', |
| 19 | 'fakesslidentity.h', |
| 20 | 'faketaskrunner.h', |
| 21 | 'gunit.h', |
| 22 | 'testbase64.h', |
| 23 | 'testechoserver.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 +0000 | [diff] [blame] | 24 | 'testutils.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 25 | ], |
| 26 | 'dependencies': [ |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 27 | 'base.gyp:rtc_base', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 28 | '<(DEPTH)/testing/gtest.gyp:gtest', |
stefan | c1aeaf0 | 2015-10-15 07:26:07 -0700 | [diff] [blame] | 29 | '<(webrtc_root)/test/test.gyp:field_trial', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 30 | ], |
henrike@webrtc.org | 37b4e1b | 2014-07-01 16:39:17 +0000 | [diff] [blame] | 31 | 'export_dependent_settings': [ |
| 32 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 33 | ], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 34 | }, |
| 35 | { |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 36 | 'target_name': 'rtc_base_tests', |
| 37 | 'type': 'none', |
| 38 | 'direct_dependent_settings': { |
| 39 | 'sources': [ |
Karl Wiberg | e2a83ee | 2015-10-26 19:51:29 +0100 | [diff] [blame] | 40 | 'array_view_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 41 | 'atomicops_unittest.cc', |
| 42 | 'autodetectproxy_unittest.cc', |
| 43 | 'bandwidthsmoother_unittest.cc', |
| 44 | 'base64_unittest.cc', |
| 45 | 'basictypes_unittest.cc', |
| 46 | 'bind_unittest.cc', |
Noah Richards | bbf7c86 | 2015-04-21 16:30:13 -0700 | [diff] [blame] | 47 | 'bitbuffer_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 48 | 'buffer_unittest.cc', |
Joachim Bauch | 6f2ef74 | 2015-05-21 17:52:01 +0200 | [diff] [blame] | 49 | 'bufferqueue_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 50 | 'bytebuffer_unittest.cc', |
| 51 | 'byteorder_unittest.cc', |
| 52 | 'callback_unittest.cc', |
jbauch | 13041cf | 2016-02-25 06:16:52 -0800 | [diff] [blame] | 53 | 'copyonwritebuffer_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 54 | 'crc32_unittest.cc', |
| 55 | 'criticalsection_unittest.cc', |
tommi@webrtc.org | 7c64ed2 | 2015-03-17 14:25:37 +0000 | [diff] [blame] | 56 | 'event_tracer_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 57 | 'event_unittest.cc', |
| 58 | 'exp_filter_unittest.cc', |
tkchin | 9341191 | 2015-07-22 12:12:17 -0700 | [diff] [blame] | 59 | 'filerotatingstream_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 60 | 'fileutils_unittest.cc', |
| 61 | 'helpers_unittest.cc', |
| 62 | 'httpbase_unittest.cc', |
| 63 | 'httpcommon_unittest.cc', |
| 64 | 'httpserver_unittest.cc', |
| 65 | 'ipaddress_unittest.cc', |
| 66 | 'logging_unittest.cc', |
| 67 | 'md5digest_unittest.cc', |
| 68 | 'messagedigest_unittest.cc', |
decurtis@webrtc.org | d7de120 | 2015-01-16 17:52:53 +0000 | [diff] [blame] | 69 | 'messagequeue_unittest.cc', |
philipel | 5ab4c6d | 2016-03-08 03:36:15 -0800 | [diff] [blame] | 70 | 'mod_ops_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 71 | 'multipart_unittest.cc', |
| 72 | 'nat_unittest.cc', |
| 73 | 'network_unittest.cc', |
skvlad | 98bb664 | 2016-04-07 15:36:45 -0700 | [diff] [blame] | 74 | 'onetimeevent_unittest.cc', |
Karl Wiberg | be57983 | 2015-11-10 22:34:18 +0100 | [diff] [blame] | 75 | 'optional_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 76 | 'optionsfile_unittest.cc', |
| 77 | 'pathutils_unittest.cc', |
pbos | 12411ef | 2015-11-23 14:47:56 -0800 | [diff] [blame] | 78 | 'platform_thread_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 79 | 'profiler_unittest.cc', |
| 80 | 'proxy_unittest.cc', |
| 81 | 'proxydetect_unittest.cc', |
terelius | 84e78f9 | 2015-12-10 01:50:55 -0800 | [diff] [blame] | 82 | 'random_unittest.cc', |
tkchin | f75d008 | 2016-02-23 22:49:42 -0800 | [diff] [blame] | 83 | 'rate_statistics_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 84 | 'ratelimiter_unittest.cc', |
| 85 | 'ratetracker_unittest.cc', |
| 86 | 'referencecountedsingletonfactory_unittest.cc', |
| 87 | 'rollingaccumulator_unittest.cc', |
hbos | 6b470a9 | 2016-04-28 05:14:21 -0700 | [diff] [blame^] | 88 | 'rtccertificate_unittest.cc', |
Henrik Boström | da3a1da | 2016-04-15 17:55:21 +0200 | [diff] [blame] | 89 | 'rtccertificategenerator_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 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', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 97 | 'stream_unittest.cc', |
| 98 | 'stringencode_unittest.cc', |
| 99 | 'stringutils_unittest.cc', |
terelius | 85fa7d5 | 2016-03-24 01:51:52 -0700 | [diff] [blame] | 100 | 'swap_queue_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 101 | # TODO(ronghuawu): Reenable this test. |
| 102 | # 'systeminfo_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 103 | 'task_unittest.cc', |
| 104 | 'testclient_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 105 | 'thread_checker_unittest.cc', |
henrike@webrtc.org | e30dab7 | 2014-10-09 15:41:40 +0000 | [diff] [blame] | 106 | 'thread_unittest.cc', |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 107 | 'timeutils_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 108 | 'urlencode_unittest.cc', |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 109 | 'versionparsing_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 110 | # TODO(ronghuawu): Reenable this test. |
| 111 | # 'windowpicker_unittest.cc', |
| 112 | ], |
| 113 | 'conditions': [ |
| 114 | ['OS=="linux"', { |
| 115 | 'sources': [ |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 116 | 'latebindingsymboltable_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 117 | # TODO(ronghuawu): Reenable this test. |
| 118 | # 'linux_unittest.cc', |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 119 | 'linuxfdwalk_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 120 | ], |
| 121 | }], |
| 122 | ['OS=="win"', { |
| 123 | 'sources': [ |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 124 | 'win32_unittest.cc', |
| 125 | 'win32regkey_unittest.cc', |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 126 | 'win32window_unittest.cc', |
| 127 | 'win32windowpicker_unittest.cc', |
| 128 | 'winfirewall_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 129 | ], |
| 130 | 'sources!': [ |
Peter Boström | 95192fb | 2015-10-29 12:41:56 +0100 | [diff] [blame] | 131 | # TODO(pbos): Reenable this test. |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 132 | 'win32windowpicker_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 133 | ], |
| 134 | }], |
kjellander | 7cae30c | 2015-12-16 14:05:29 -0800 | [diff] [blame] | 135 | ['OS=="win" and clang==1', { |
| 136 | 'msvs_settings': { |
| 137 | 'VCCLCompilerTool': { |
| 138 | 'AdditionalOptions': [ |
| 139 | # Disable warnings failing when compiling with Clang on Windows. |
| 140 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 141 | '-Wno-missing-braces', |
kjellander | 3c85cad | 2016-01-19 04:47:17 -0800 | [diff] [blame] | 142 | '-Wno-sign-compare', |
kjellander | 7cae30c | 2015-12-16 14:05:29 -0800 | [diff] [blame] | 143 | '-Wno-unused-const-variable', |
| 144 | ], |
| 145 | }, |
| 146 | }, |
| 147 | }], |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 148 | ['OS=="mac"', { |
| 149 | 'sources': [ |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 150 | 'macutils_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 151 | ], |
| 152 | }], |
| 153 | ['os_posix==1', { |
| 154 | 'sources': [ |
henrike@webrtc.org | 4a73519 | 2014-10-09 20:27:13 +0000 | [diff] [blame] | 155 | 'ssladapter_unittest.cc', |
| 156 | 'sslidentity_unittest.cc', |
henrike@webrtc.org | 536eb98 | 2014-10-08 22:17:02 +0000 | [diff] [blame] | 157 | 'sslstreamadapter_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 158 | ], |
| 159 | }], |
| 160 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
| 161 | 'defines': [ |
| 162 | 'CARBON_DEPRECATED=YES', |
| 163 | ], |
| 164 | }], |
| 165 | ], # conditions |
| 166 | }, |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 167 | }, |
| 168 | ], |
| 169 | } |