Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: webrtc/p2p/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Disable Win compile warning Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ] 162 ]
163 163
164 if (!build_with_chromium && is_clang) { 164 if (!build_with_chromium && is_clang) {
165 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 165 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
166 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 166 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
167 } 167 }
168 } 168 }
169 169
170 rtc_source_set("rtc_p2p_unittests") { 170 rtc_source_set("rtc_p2p_unittests") {
171 testonly = true 171 testonly = true
172 if (!is_android && !is_ios) { # Generated targets makes this check break.
173 visibility = [ "//webrtc:rtc_unittests" ]
174 }
172 sources = [ 175 sources = [
173 "base/asyncstuntcpsocket_unittest.cc", 176 "base/asyncstuntcpsocket_unittest.cc",
174 "base/dtlstransportchannel_unittest.cc", 177 "base/dtlstransportchannel_unittest.cc",
175 "base/jseptransport_unittest.cc", 178 "base/jseptransport_unittest.cc",
176 "base/p2ptransportchannel_unittest.cc", 179 "base/p2ptransportchannel_unittest.cc",
177 "base/packetlossestimator_unittest.cc", 180 "base/packetlossestimator_unittest.cc",
178 "base/port_unittest.cc", 181 "base/port_unittest.cc",
179 "base/portallocator_unittest.cc", 182 "base/portallocator_unittest.cc",
180 "base/pseudotcp_unittest.cc", 183 "base/pseudotcp_unittest.cc",
181 "base/relayport_unittest.cc", 184 "base/relayport_unittest.cc",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 232
230 deps = [ 233 deps = [
231 "..:webrtc_common", 234 "..:webrtc_common",
232 "../base:rtc_base", 235 "../base:rtc_base",
233 ] 236 ]
234 } 237 }
235 238
236 if (rtc_include_tests) { 239 if (rtc_include_tests) {
237 rtc_source_set("libstunprober_unittests") { 240 rtc_source_set("libstunprober_unittests") {
238 testonly = true 241 testonly = true
242 if (!is_android && !is_ios) { # Generated targets makes this check break.
243 visibility = [ "//webrtc:rtc_unittests" ]
244 }
239 sources = [ 245 sources = [
240 "stunprober/stunprober_unittest.cc", 246 "stunprober/stunprober_unittest.cc",
241 ] 247 ]
242 deps = [ 248 deps = [
243 ":libstunprober", 249 ":libstunprober",
244 "//testing/gmock", 250 "//testing/gmock",
245 "//testing/gtest", 251 "//testing/gtest",
246 ] 252 ]
247 if (!build_with_chromium && is_clang) { 253 if (!build_with_chromium && is_clang) {
248 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 254 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
249 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 255 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
250 } 256 }
251 defines = [ "GTEST_RELATIVE_PATH" ] 257 defines = [ "GTEST_RELATIVE_PATH" ]
252 } 258 }
253 } 259 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698