BUILD.gn (2565B)
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 # 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 5 # tree. An additional intellectual property rights grant can be found 6 # in the file PATENTS. All contributing project authors may 7 # be found in the AUTHORS file in the root of the source tree. 8 9 import("../../webrtc.gni") 10 11 rtc_library("congestion_controller") { 12 visibility = [ "*" ] 13 sources = [ 14 "include/receive_side_congestion_controller.h", 15 "receive_side_congestion_controller.cc", 16 "remb_throttler.cc", 17 "remb_throttler.h", 18 ] 19 20 deps = [ 21 "..:module_api", 22 "../../api:rtp_parameters", 23 "../../api:sequence_checker", 24 "../../api/environment", 25 "../../api/transport:network_control", 26 "../../api/units:data_rate", 27 "../../api/units:data_size", 28 "../../api/units:time_delta", 29 "../../api/units:timestamp", 30 "../../rtc_base:logging", 31 "../../rtc_base:macromagic", 32 "../../rtc_base/experiments:field_trial_parser", 33 "../../rtc_base/synchronization:mutex", 34 "../../system_wrappers", 35 "../pacing", 36 "../remote_bitrate_estimator", 37 "../remote_bitrate_estimator:congestion_control_feedback_generator", 38 "../remote_bitrate_estimator:transport_sequence_number_feedback_generator", 39 "../rtp_rtcp:rtp_rtcp_format", 40 "//third_party/abseil-cpp/absl/base:core_headers", 41 "//third_party/abseil-cpp/absl/base:nullability", 42 ] 43 } 44 45 if (rtc_include_tests && !build_with_chromium) { 46 rtc_library("congestion_controller_unittests") { 47 testonly = true 48 49 sources = [ 50 "receive_side_congestion_controller_unittest.cc", 51 "remb_throttler_unittest.cc", 52 ] 53 deps = [ 54 ":congestion_controller", 55 "../../api:field_trials", 56 "../../api:rtp_parameters", 57 "../../api/environment:environment_factory", 58 "../../api/test/network_emulation", 59 "../../api/test/network_emulation:create_cross_traffic", 60 "../../api/units:data_rate", 61 "../../api/units:data_size", 62 "../../api/units:time_delta", 63 "../../api/units:timestamp", 64 "../../rtc_base:buffer", 65 "../../system_wrappers", 66 "../../test:create_test_field_trials", 67 "../../test:test_support", 68 "../../test/scenario", 69 "../pacing", 70 "../rtp_rtcp:rtp_rtcp_format", 71 "goog_cc:estimators", 72 "goog_cc:goog_cc_unittests", 73 "pcc:pcc_unittests", 74 "rtp:congestion_controller_unittests", 75 "scream/test:cc_feedback_generator_unittests", 76 ] 77 } 78 }