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. |
| 18 | 'fakecpumonitor.h', |
| 19 | 'fakenetwork.h', |
| 20 | 'fakesslidentity.h', |
| 21 | 'faketaskrunner.h', |
| 22 | 'gunit.h', |
| 23 | 'testbase64.h', |
| 24 | 'testechoserver.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 +0000 | [diff] [blame] | 25 | 'testutils.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 26 | 'win32toolhelp.h', |
| 27 | ], |
henrike@webrtc.org | 66a3582 | 2014-08-26 22:04:04 +0000 | [diff] [blame] | 28 | 'defines': [ |
| 29 | 'GTEST_RELATIVE_PATH', |
| 30 | ], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 31 | 'dependencies': [ |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 32 | 'base.gyp:rtc_base', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 33 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 34 | ], |
henrike@webrtc.org | 66a3582 | 2014-08-26 22:04:04 +0000 | [diff] [blame] | 35 | 'direct_dependent_settings': { |
| 36 | 'defines': [ |
| 37 | 'GTEST_RELATIVE_PATH', |
| 38 | ], |
| 39 | }, |
henrike@webrtc.org | 37b4e1b | 2014-07-01 16:39:17 +0000 | [diff] [blame] | 40 | 'export_dependent_settings': [ |
| 41 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 42 | ], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 43 | }, |
| 44 | { |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 45 | 'target_name': 'rtc_base_tests', |
| 46 | 'type': 'none', |
| 47 | 'direct_dependent_settings': { |
| 48 | 'sources': [ |
| 49 | 'asynchttprequest_unittest.cc', |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 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', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 103 | # TODO(ronghuawu): Reenable this test. |
| 104 | # 'systeminfo_unittest.cc', |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 105 | #'task_unittest.cc', |
| 106 | #'testclient_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 107 | 'thread_checker_unittest.cc', |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 108 | #'thread_unittest.cc', |
| 109 | #'timeutils_unittest.cc', |
| 110 | #'urlencode_unittest.cc', |
| 111 | #'versionparsing_unittest.cc', |
| 112 | #'virtualsocket_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 113 | # TODO(ronghuawu): Reenable this test. |
| 114 | # 'windowpicker_unittest.cc', |
| 115 | ], |
| 116 | 'conditions': [ |
| 117 | ['OS=="linux"', { |
| 118 | 'sources': [ |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 119 | #'latebindingsymboltable_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 120 | # TODO(ronghuawu): Reenable this test. |
| 121 | # 'linux_unittest.cc', |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 122 | #'linuxfdwalk_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 123 | ], |
| 124 | }], |
| 125 | ['OS=="win"', { |
| 126 | 'sources': [ |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 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', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 134 | ], |
| 135 | 'sources!': [ |
| 136 | # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot |
| 137 | # then reenable these tests. |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 138 | #'physicalsocketserver_unittest.cc', |
| 139 | #'socket_unittest.cc', |
| 140 | #'win32socketserver_unittest.cc', |
| 141 | #'win32windowpicker_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 142 | ], |
| 143 | }], |
| 144 | ['OS=="mac"', { |
| 145 | 'sources': [ |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 146 | #'macsocketserver_unittest.cc', |
| 147 | #'macutils_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 148 | ], |
| 149 | }], |
| 150 | ['os_posix==1', { |
| 151 | 'sources': [ |
tkchin@webrtc.org | c569a49 | 2014-09-23 05:56:44 +0000 | [diff] [blame] | 152 | #'ssladapter_unittest.cc', |
henrike@webrtc.org | 8877287 | 2014-09-22 07:30:48 +0000 | [diff] [blame] | 153 | #'sslidentity_unittest.cc', |
| 154 | #'sslstreamadapter_unittest.cc', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [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 | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 164 | }, |
| 165 | ], |
| 166 | } |