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 9import("../../webrtc.gni") 10 11config("bwe_test_logging") { 12 if (rtc_enable_bwe_test_logging) { 13 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] 14 } else { 15 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] 16 } 17} 18 19rtc_library("congestion_controller") { 20 visibility = [ "*" ] 21 configs += [ ":bwe_test_logging" ] 22 sources = [ 23 "include/receive_side_congestion_controller.h", 24 "receive_side_congestion_controller.cc", 25 ] 26 27 deps = [ 28 "..:module_api", 29 "../../api/transport:field_trial_based_config", 30 "../../api/transport:network_control", 31 "../../rtc_base/synchronization:mutex", 32 "../pacing", 33 "../remote_bitrate_estimator", 34 "../rtp_rtcp:rtp_rtcp_format", 35 ] 36 37 if (!build_with_mozilla) { 38 deps += [ "../../rtc_base" ] 39 } 40} 41 42if (rtc_include_tests) { 43 rtc_library("congestion_controller_unittests") { 44 testonly = true 45 46 sources = [ "receive_side_congestion_controller_unittest.cc" ] 47 deps = [ 48 ":congestion_controller", 49 "../../system_wrappers", 50 "../../test:test_support", 51 "../../test/scenario", 52 "../pacing", 53 "goog_cc:estimators", 54 "goog_cc:goog_cc_unittests", 55 "pcc:pcc_unittests", 56 "rtp:congestion_controller_unittests", 57 ] 58 } 59} 60