henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [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 | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 12 | 'target_name': 'rtc_base_tests_utils', |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [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 | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 18 | 'fakenetwork.h', |
| 19 | 'fakesslidentity.h', |
| 20 | 'faketaskrunner.h', |
| 21 | 'gunit.h', |
| 22 | 'testbase64.h', |
| 23 | 'testechoserver.h', |
kjellander@webrtc.org | d05de74 | 2014-06-16 07:11:19 | [diff] [blame] | 24 | 'testutils.h', |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 25 | ], |
henrike@webrtc.org | 91bac04 | 2014-08-26 22:04:04 | [diff] [blame] | 26 | 'defines': [ |
| 27 | 'GTEST_RELATIVE_PATH', |
| 28 | ], |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 29 | 'dependencies': [ |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 30 | 'base.gyp:rtc_base', |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 31 | '<(DEPTH)/testing/gtest.gyp:gtest', |
stefan | 15b2099 | 2015-10-15 14:26:07 | [diff] [blame] | 32 | '<(webrtc_root)/test/test.gyp:field_trial', |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 33 | ], |
henrike@webrtc.org | 91bac04 | 2014-08-26 22:04:04 | [diff] [blame] | 34 | 'direct_dependent_settings': { |
| 35 | 'defines': [ |
| 36 | 'GTEST_RELATIVE_PATH', |
| 37 | ], |
| 38 | }, |
henrike@webrtc.org | 9113f0a | 2014-07-01 16:39:17 | [diff] [blame] | 39 | 'export_dependent_settings': [ |
| 40 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 41 | ], |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 42 | }, |
| 43 | { |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 44 | 'target_name': 'rtc_base_tests', |
| 45 | 'type': 'none', |
| 46 | 'direct_dependent_settings': { |
| 47 | 'sources': [ |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 48 | 'atomicops_unittest.cc', |
| 49 | 'autodetectproxy_unittest.cc', |
| 50 | 'bandwidthsmoother_unittest.cc', |
| 51 | 'base64_unittest.cc', |
| 52 | 'basictypes_unittest.cc', |
| 53 | 'bind_unittest.cc', |
Noah Richards | 5ac3e5d | 2015-04-21 23:30:13 | [diff] [blame] | 54 | 'bitbuffer_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 55 | 'buffer_unittest.cc', |
Joachim Bauch | 69e4b34 | 2015-05-21 15:52:01 | [diff] [blame] | 56 | 'bufferqueue_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 57 | 'bytebuffer_unittest.cc', |
| 58 | 'byteorder_unittest.cc', |
| 59 | 'callback_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 60 | 'crc32_unittest.cc', |
| 61 | 'criticalsection_unittest.cc', |
tommi@webrtc.org | b8940a2 | 2015-03-17 14:25:37 | [diff] [blame] | 62 | 'event_tracer_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 63 | 'event_unittest.cc', |
| 64 | 'exp_filter_unittest.cc', |
tkchin | f53dd28 | 2015-07-22 19:12:17 | [diff] [blame] | 65 | 'filerotatingstream_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 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', |
Karl Wiberg | 40e1844 | 2015-10-21 10:43:56 | [diff] [blame] | 73 | 'maybe_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 74 | 'md5digest_unittest.cc', |
| 75 | 'messagedigest_unittest.cc', |
decurtis@webrtc.org | 6beab33 | 2015-01-16 17:52:53 | [diff] [blame] | 76 | 'messagequeue_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 77 | 'multipart_unittest.cc', |
| 78 | 'nat_unittest.cc', |
| 79 | 'network_unittest.cc', |
| 80 | 'nullsocketserver_unittest.cc', |
| 81 | 'optionsfile_unittest.cc', |
| 82 | 'pathutils_unittest.cc', |
| 83 | 'physicalsocketserver_unittest.cc', |
| 84 | 'profiler_unittest.cc', |
| 85 | 'proxy_unittest.cc', |
| 86 | 'proxydetect_unittest.cc', |
| 87 | 'ratelimiter_unittest.cc', |
| 88 | 'ratetracker_unittest.cc', |
| 89 | 'referencecountedsingletonfactory_unittest.cc', |
| 90 | 'rollingaccumulator_unittest.cc', |
| 91 | 'scopedptrcollection_unittest.cc', |
| 92 | 'sha1digest_unittest.cc', |
| 93 | 'sharedexclusivelock_unittest.cc', |
| 94 | 'signalthread_unittest.cc', |
| 95 | 'sigslot_unittest.cc', |
| 96 | 'sigslottester.h', |
| 97 | 'sigslottester.h.pump', |
| 98 | 'socket_unittest.cc', |
| 99 | 'socket_unittest.h', |
| 100 | 'socketaddress_unittest.cc', |
| 101 | 'stream_unittest.cc', |
| 102 | 'stringencode_unittest.cc', |
| 103 | 'stringutils_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 104 | # TODO(ronghuawu): Reenable this test. |
| 105 | # 'systeminfo_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 106 | 'task_unittest.cc', |
| 107 | 'testclient_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 108 | 'thread_checker_unittest.cc', |
henrike@webrtc.org | b5a0728 | 2014-10-09 15:41:40 | [diff] [blame] | 109 | 'thread_unittest.cc', |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 110 | 'timeutils_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 111 | 'urlencode_unittest.cc', |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 112 | 'versionparsing_unittest.cc', |
| 113 | 'virtualsocket_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 114 | # TODO(ronghuawu): Reenable this test. |
| 115 | # 'windowpicker_unittest.cc', |
| 116 | ], |
| 117 | 'conditions': [ |
| 118 | ['OS=="linux"', { |
| 119 | 'sources': [ |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 120 | 'latebindingsymboltable_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 121 | # TODO(ronghuawu): Reenable this test. |
| 122 | # 'linux_unittest.cc', |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 123 | 'linuxfdwalk_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 124 | ], |
| 125 | }], |
| 126 | ['OS=="win"', { |
| 127 | 'sources': [ |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 128 | 'win32_unittest.cc', |
| 129 | 'win32regkey_unittest.cc', |
| 130 | 'win32socketserver_unittest.cc', |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 131 | 'win32window_unittest.cc', |
| 132 | 'win32windowpicker_unittest.cc', |
| 133 | 'winfirewall_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 134 | ], |
| 135 | 'sources!': [ |
| 136 | # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot |
| 137 | # then reenable these tests. |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 138 | 'physicalsocketserver_unittest.cc', |
| 139 | 'socket_unittest.cc', |
| 140 | 'win32socketserver_unittest.cc', |
| 141 | 'win32windowpicker_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 142 | ], |
| 143 | }], |
| 144 | ['OS=="mac"', { |
| 145 | 'sources': [ |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 146 | 'macsocketserver_unittest.cc', |
| 147 | 'macutils_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 148 | ], |
| 149 | }], |
| 150 | ['os_posix==1', { |
| 151 | 'sources': [ |
henrike@webrtc.org | 91cf2bb | 2014-10-09 20:27:13 | [diff] [blame] | 152 | 'ssladapter_unittest.cc', |
| 153 | 'sslidentity_unittest.cc', |
henrike@webrtc.org | d488262 | 2014-10-08 22:17:02 | [diff] [blame] | 154 | 'sslstreamadapter_unittest.cc', |
henrike@webrtc.org | 51b64e4 | 2014-09-10 17:28:19 | [diff] [blame] | 155 | ], |
| 156 | }], |
| 157 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
| 158 | 'defines': [ |
| 159 | 'CARBON_DEPRECATED=YES', |
| 160 | ], |
| 161 | }], |
| 162 | ], # conditions |
| 163 | }, |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 164 | }, |
| 165 | ], |
| 166 | } |