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

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

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Move out fec_test_helper from rtc_include_tests Created 3 years, 7 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
« no previous file with comments | « webrtc/modules/video_processing/BUILD.gn ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 "../base:rtc_base", 158 "../base:rtc_base",
159 "../base:rtc_base_approved", 159 "../base:rtc_base_approved",
160 "../base:rtc_base_tests_utils", 160 "../base:rtc_base_tests_utils",
161 "../test:test_support", 161 "../test:test_support",
162 "//testing/gmock", 162 "//testing/gmock",
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
169 # Skip restricting visibility on mobile platforms since the tests on those
170 # gets additional generated targets which would require many lines here to
171 # cover (which would be confusing to read and hard to maintain).
172 if (!is_android && !is_ios) {
173 visibility = [ "//webrtc:rtc_unittests" ]
174 }
168 sources = [ 175 sources = [
169 "base/asyncstuntcpsocket_unittest.cc", 176 "base/asyncstuntcpsocket_unittest.cc",
170 "base/dtlstransportchannel_unittest.cc", 177 "base/dtlstransportchannel_unittest.cc",
171 "base/jseptransport_unittest.cc", 178 "base/jseptransport_unittest.cc",
172 "base/p2ptransportchannel_unittest.cc", 179 "base/p2ptransportchannel_unittest.cc",
173 "base/packetlossestimator_unittest.cc", 180 "base/packetlossestimator_unittest.cc",
174 "base/port_unittest.cc", 181 "base/port_unittest.cc",
175 "base/portallocator_unittest.cc", 182 "base/portallocator_unittest.cc",
176 "base/pseudotcp_unittest.cc", 183 "base/pseudotcp_unittest.cc",
177 "base/relayport_unittest.cc", 184 "base/relayport_unittest.cc",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 deps = [ 238 deps = [
232 ":rtc_p2p", 239 ":rtc_p2p",
233 "..:webrtc_common", 240 "..:webrtc_common",
234 "../base:rtc_base", 241 "../base:rtc_base",
235 ] 242 ]
236 } 243 }
237 244
238 if (rtc_include_tests) { 245 if (rtc_include_tests) {
239 rtc_source_set("libstunprober_unittests") { 246 rtc_source_set("libstunprober_unittests") {
240 testonly = true 247 testonly = true
248
249 # Skip restricting visibility on mobile platforms since the tests on those
250 # gets additional generated targets which would require many lines here to
251 # cover (which would be confusing to read and hard to maintain).
252 if (!is_android && !is_ios) {
253 visibility = [ "//webrtc:rtc_unittests" ]
254 }
241 sources = [ 255 sources = [
242 "stunprober/stunprober_unittest.cc", 256 "stunprober/stunprober_unittest.cc",
243 ] 257 ]
244 deps = [ 258 deps = [
245 ":libstunprober", 259 ":libstunprober",
246 ":p2p_test_utils", 260 ":p2p_test_utils",
247 ":rtc_p2p", 261 ":rtc_p2p",
248 "../base:rtc_base", 262 "../base:rtc_base",
249 "../base:rtc_base_tests_utils", 263 "../base:rtc_base_tests_utils",
250 "//testing/gmock", 264 "//testing/gmock",
251 "//testing/gtest", 265 "//testing/gtest",
252 ] 266 ]
253 if (!build_with_chromium && is_clang) { 267 if (!build_with_chromium && is_clang) {
254 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
255 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
256 } 270 }
257 defines = [ "GTEST_RELATIVE_PATH" ] 271 defines = [ "GTEST_RELATIVE_PATH" ]
258 } 272 }
259 } 273 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/BUILD.gn ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698