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

Side by Side Diff: webrtc/modules/pacing/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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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 21 matching lines...) Expand all
32 "../../system_wrappers", 32 "../../system_wrappers",
33 "../remote_bitrate_estimator", 33 "../remote_bitrate_estimator",
34 "../rtp_rtcp", 34 "../rtp_rtcp",
35 "../utility", 35 "../utility",
36 ] 36 ]
37 } 37 }
38 38
39 if (rtc_include_tests) { 39 if (rtc_include_tests) {
40 rtc_source_set("pacing_unittests") { 40 rtc_source_set("pacing_unittests") {
41 testonly = true 41 testonly = true
42 if (!is_android && !is_ios) { # Generated targets makes this check break.
43 visibility = [ "//webrtc/modules:modules_unittests" ]
44 }
42 sources = [ 45 sources = [
43 "alr_detector_unittest.cc", 46 "alr_detector_unittest.cc",
44 "bitrate_prober_unittest.cc", 47 "bitrate_prober_unittest.cc",
45 "paced_sender_unittest.cc", 48 "paced_sender_unittest.cc",
46 "packet_router_unittest.cc", 49 "packet_router_unittest.cc",
47 ] 50 ]
48 deps = [ 51 deps = [
49 ":pacing", 52 ":pacing",
50 "../../base:rtc_base_approved", 53 "../../base:rtc_base_approved",
51 "../../base:rtc_base_tests_utils", 54 "../../base:rtc_base_tests_utils",
52 "../../system_wrappers:system_wrappers", 55 "../../system_wrappers:system_wrappers",
53 "../../test:test_support", 56 "../../test:test_support",
54 "../rtp_rtcp", 57 "../rtp_rtcp",
55 "../rtp_rtcp:rtp_rtcp_unittests", 58 "../rtp_rtcp:mock_rtp_rtcp",
56 "//testing/gmock", 59 "//testing/gmock",
57 ] 60 ]
58 61
59 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. 62 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 63 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
61 if (!build_with_chromium && is_clang) { 64 if (!build_with_chromium && is_clang) {
62 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 65 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
63 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 66 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
64 } 67 }
65 } 68 }
66 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698