| 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 |
| 11 rtc_static_library("pacing") { | 11 rtc_static_library("pacing") { |
| 12 sources = [ | 12 sources = [ |
| 13 "alr_detector.cc", | 13 "alr_detector.cc", |
| 14 "alr_detector.h", | 14 "alr_detector.h", |
| 15 "bitrate_prober.cc", | 15 "bitrate_prober.cc", |
| 16 "bitrate_prober.h", | 16 "bitrate_prober.h", |
| 17 "interval_budget.cc", |
| 18 "interval_budget.h", |
| 17 "paced_sender.cc", | 19 "paced_sender.cc", |
| 18 "paced_sender.h", | 20 "paced_sender.h", |
| 19 "packet_router.cc", | 21 "packet_router.cc", |
| 20 "packet_router.h", | 22 "packet_router.h", |
| 21 ] | 23 ] |
| 22 | 24 |
| 23 if (!build_with_chromium && is_clang) { | 25 if (!build_with_chromium && is_clang) { |
| 24 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 26 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 25 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 27 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 26 } | 28 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 43 | 45 |
| 44 # Skip restricting visibility on mobile platforms since the tests on those | 46 # Skip restricting visibility on mobile platforms since the tests on those |
| 45 # gets additional generated targets which would require many lines here to | 47 # gets additional generated targets which would require many lines here to |
| 46 # cover (which would be confusing to read and hard to maintain). | 48 # cover (which would be confusing to read and hard to maintain). |
| 47 if (!is_android && !is_ios) { | 49 if (!is_android && !is_ios) { |
| 48 visibility = [ "//webrtc/modules:modules_unittests" ] | 50 visibility = [ "//webrtc/modules:modules_unittests" ] |
| 49 } | 51 } |
| 50 sources = [ | 52 sources = [ |
| 51 "alr_detector_unittest.cc", | 53 "alr_detector_unittest.cc", |
| 52 "bitrate_prober_unittest.cc", | 54 "bitrate_prober_unittest.cc", |
| 55 "interval_budget_unittest.cc", |
| 53 "paced_sender_unittest.cc", | 56 "paced_sender_unittest.cc", |
| 54 "packet_router_unittest.cc", | 57 "packet_router_unittest.cc", |
| 55 ] | 58 ] |
| 56 deps = [ | 59 deps = [ |
| 57 ":pacing", | 60 ":pacing", |
| 58 "../../base:rtc_base_approved", | 61 "../../base:rtc_base_approved", |
| 59 "../../base:rtc_base_tests_utils", | 62 "../../base:rtc_base_tests_utils", |
| 60 "../../system_wrappers:system_wrappers", | 63 "../../system_wrappers:system_wrappers", |
| 61 "../../test:test_support", | 64 "../../test:test_support", |
| 62 "../rtp_rtcp", | 65 "../rtp_rtcp", |
| 63 "../rtp_rtcp:mock_rtp_rtcp", | 66 "../rtp_rtcp:mock_rtp_rtcp", |
| 64 "//testing/gmock", | 67 "//testing/gmock", |
| 65 ] | 68 ] |
| 66 | 69 |
| 67 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 70 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 68 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 71 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 69 if (!build_with_chromium && is_clang) { | 72 if (!build_with_chromium && is_clang) { |
| 70 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 73 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 71 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 74 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 72 } | 75 } |
| 73 } | 76 } |
| 74 } | 77 } |
| OLD | NEW |