OLD | NEW |
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 Loading... |
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 |
| 43 # Skip restricting visibility on mobile platforms since the tests on those |
| 44 # gets additional generated targets which would require many lines here to |
| 45 # cover (which would be confusing to read and hard to maintain). |
| 46 if (!is_android && !is_ios) { |
| 47 visibility = [ "//webrtc/modules:modules_unittests" ] |
| 48 } |
42 sources = [ | 49 sources = [ |
43 "alr_detector_unittest.cc", | 50 "alr_detector_unittest.cc", |
44 "bitrate_prober_unittest.cc", | 51 "bitrate_prober_unittest.cc", |
45 "paced_sender_unittest.cc", | 52 "paced_sender_unittest.cc", |
46 "packet_router_unittest.cc", | 53 "packet_router_unittest.cc", |
47 ] | 54 ] |
48 deps = [ | 55 deps = [ |
49 ":pacing", | 56 ":pacing", |
50 "../../base:rtc_base_approved", | 57 "../../base:rtc_base_approved", |
51 "../../base:rtc_base_tests_utils", | 58 "../../base:rtc_base_tests_utils", |
52 "../../system_wrappers:system_wrappers", | 59 "../../system_wrappers:system_wrappers", |
53 "../../test:test_support", | 60 "../../test:test_support", |
54 "../rtp_rtcp", | 61 "../rtp_rtcp", |
55 "../rtp_rtcp:rtp_rtcp_unittests", | 62 "../rtp_rtcp:mock_rtp_rtcp", |
56 "//testing/gmock", | 63 "//testing/gmock", |
57 ] | 64 ] |
58 | 65 |
59 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 66 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 67 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
61 if (!build_with_chromium && is_clang) { | 68 if (!build_with_chromium && is_clang) { |
62 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 69 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
63 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 70 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
64 } | 71 } |
65 } | 72 } |
66 } | 73 } |
OLD | NEW |