OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ] | 163 ] |
164 } | 164 } |
165 | 165 |
166 rtc_source_set("rtc_p2p_unittests") { | 166 rtc_source_set("rtc_p2p_unittests") { |
167 testonly = true | 167 testonly = true |
168 | 168 |
169 # Skip restricting visibility on mobile platforms since the tests on those | 169 # Skip restricting visibility on mobile platforms since the tests on those |
170 # gets additional generated targets which would require many lines here to | 170 # gets additional generated targets which would require many lines here to |
171 # cover (which would be confusing to read and hard to maintain). | 171 # cover (which would be confusing to read and hard to maintain). |
172 if (!is_android && !is_ios) { | 172 if (!is_android && !is_ios) { |
173 visibility = [ "//webrtc:rtc_unittests" ] | 173 visibility = [ "..:rtc_unittests" ] |
174 } | 174 } |
175 sources = [ | 175 sources = [ |
176 "base/asyncstuntcpsocket_unittest.cc", | 176 "base/asyncstuntcpsocket_unittest.cc", |
177 "base/dtlstransportchannel_unittest.cc", | 177 "base/dtlstransportchannel_unittest.cc", |
178 "base/jseptransport_unittest.cc", | 178 "base/jseptransport_unittest.cc", |
179 "base/p2ptransportchannel_unittest.cc", | 179 "base/p2ptransportchannel_unittest.cc", |
180 "base/packetlossestimator_unittest.cc", | 180 "base/packetlossestimator_unittest.cc", |
181 "base/port_unittest.cc", | 181 "base/port_unittest.cc", |
182 "base/portallocator_unittest.cc", | 182 "base/portallocator_unittest.cc", |
183 "base/pseudotcp_unittest.cc", | 183 "base/pseudotcp_unittest.cc", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 243 } |
244 | 244 |
245 if (rtc_include_tests) { | 245 if (rtc_include_tests) { |
246 rtc_source_set("libstunprober_unittests") { | 246 rtc_source_set("libstunprober_unittests") { |
247 testonly = true | 247 testonly = true |
248 | 248 |
249 # Skip restricting visibility on mobile platforms since the tests on those | 249 # Skip restricting visibility on mobile platforms since the tests on those |
250 # gets additional generated targets which would require many lines here to | 250 # gets additional generated targets which would require many lines here to |
251 # cover (which would be confusing to read and hard to maintain). | 251 # cover (which would be confusing to read and hard to maintain). |
252 if (!is_android && !is_ios) { | 252 if (!is_android && !is_ios) { |
253 visibility = [ "//webrtc:rtc_unittests" ] | 253 visibility = [ "..:rtc_unittests" ] |
254 } | 254 } |
255 sources = [ | 255 sources = [ |
256 "stunprober/stunprober_unittest.cc", | 256 "stunprober/stunprober_unittest.cc", |
257 ] | 257 ] |
258 deps = [ | 258 deps = [ |
259 ":libstunprober", | 259 ":libstunprober", |
260 ":p2p_test_utils", | 260 ":p2p_test_utils", |
261 ":rtc_p2p", | 261 ":rtc_p2p", |
262 "../base:rtc_base", | 262 "../base:rtc_base", |
263 "../base:rtc_base_tests_utils", | 263 "../base:rtc_base_tests_utils", |
264 "//testing/gmock", | 264 "//testing/gmock", |
265 "//testing/gtest", | 265 "//testing/gtest", |
266 ] | 266 ] |
267 if (!build_with_chromium && is_clang) { | 267 if (!build_with_chromium && is_clang) { |
268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
270 } | 270 } |
271 defines = [ "GTEST_RELATIVE_PATH" ] | 271 defines = [ "GTEST_RELATIVE_PATH" ] |
272 } | 272 } |
273 } | 273 } |
OLD | NEW |