1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Workerconfig("bwe_test_logging") { 12*d9f75844SAndroid Build Coastguard Worker if (rtc_enable_bwe_test_logging) { 13*d9f75844SAndroid Build Coastguard Worker defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] 14*d9f75844SAndroid Build Coastguard Worker } else { 15*d9f75844SAndroid Build Coastguard Worker defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] 16*d9f75844SAndroid Build Coastguard Worker } 17*d9f75844SAndroid Build Coastguard Worker} 18*d9f75844SAndroid Build Coastguard Worker 19*d9f75844SAndroid Build Coastguard Workerrtc_library("congestion_controller") { 20*d9f75844SAndroid Build Coastguard Worker visibility = [ "*" ] 21*d9f75844SAndroid Build Coastguard Worker configs += [ ":bwe_test_logging" ] 22*d9f75844SAndroid Build Coastguard Worker sources = [ 23*d9f75844SAndroid Build Coastguard Worker "include/receive_side_congestion_controller.h", 24*d9f75844SAndroid Build Coastguard Worker "receive_side_congestion_controller.cc", 25*d9f75844SAndroid Build Coastguard Worker "remb_throttler.cc", 26*d9f75844SAndroid Build Coastguard Worker "remb_throttler.h", 27*d9f75844SAndroid Build Coastguard Worker ] 28*d9f75844SAndroid Build Coastguard Worker 29*d9f75844SAndroid Build Coastguard Worker deps = [ 30*d9f75844SAndroid Build Coastguard Worker "../../api/transport:network_control", 31*d9f75844SAndroid Build Coastguard Worker "../../api/units:data_rate", 32*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 33*d9f75844SAndroid Build Coastguard Worker "../../api/units:timestamp", 34*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:logging", 35*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:macromagic", 36*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/synchronization:mutex", 37*d9f75844SAndroid Build Coastguard Worker "../pacing", 38*d9f75844SAndroid Build Coastguard Worker "../remote_bitrate_estimator", 39*d9f75844SAndroid Build Coastguard Worker "../rtp_rtcp:rtp_rtcp_format", 40*d9f75844SAndroid Build Coastguard Worker ] 41*d9f75844SAndroid Build Coastguard Worker 42*d9f75844SAndroid Build Coastguard Worker if (!build_with_mozilla) { 43*d9f75844SAndroid Build Coastguard Worker deps += [ "../../rtc_base" ] 44*d9f75844SAndroid Build Coastguard Worker } 45*d9f75844SAndroid Build Coastguard Worker} 46*d9f75844SAndroid Build Coastguard Worker 47*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests && !build_with_chromium) { 48*d9f75844SAndroid Build Coastguard Worker rtc_library("congestion_controller_unittests") { 49*d9f75844SAndroid Build Coastguard Worker testonly = true 50*d9f75844SAndroid Build Coastguard Worker 51*d9f75844SAndroid Build Coastguard Worker sources = [ 52*d9f75844SAndroid Build Coastguard Worker "receive_side_congestion_controller_unittest.cc", 53*d9f75844SAndroid Build Coastguard Worker "remb_throttler_unittest.cc", 54*d9f75844SAndroid Build Coastguard Worker ] 55*d9f75844SAndroid Build Coastguard Worker deps = [ 56*d9f75844SAndroid Build Coastguard Worker ":congestion_controller", 57*d9f75844SAndroid Build Coastguard Worker "../../api/test/network_emulation", 58*d9f75844SAndroid Build Coastguard Worker "../../api/test/network_emulation:create_cross_traffic", 59*d9f75844SAndroid Build Coastguard Worker "../../api/units:data_rate", 60*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 61*d9f75844SAndroid Build Coastguard Worker "../../api/units:timestamp", 62*d9f75844SAndroid Build Coastguard Worker "../../system_wrappers", 63*d9f75844SAndroid Build Coastguard Worker "../../test:test_support", 64*d9f75844SAndroid Build Coastguard Worker "../../test/scenario", 65*d9f75844SAndroid Build Coastguard Worker "../pacing", 66*d9f75844SAndroid Build Coastguard Worker "goog_cc:estimators", 67*d9f75844SAndroid Build Coastguard Worker "goog_cc:goog_cc_unittests", 68*d9f75844SAndroid Build Coastguard Worker "pcc:pcc_unittests", 69*d9f75844SAndroid Build Coastguard Worker "rtp:congestion_controller_unittests", 70*d9f75844SAndroid Build Coastguard Worker ] 71*d9f75844SAndroid Build Coastguard Worker } 72*d9f75844SAndroid Build Coastguard Worker} 73