2016-02-23 13:30:42 +01:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2016-02-23 13:30:42 +01:00
|
|
|
|
2018-01-02 09:15:05 +01:00
|
|
|
config("bwe_test_logging") {
|
|
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("congestion_controller") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2018-01-02 09:15:05 +01:00
|
|
|
configs += [ ":bwe_test_logging" ]
|
2016-02-23 13:30:42 +01:00
|
|
|
sources = [
|
2017-03-21 06:41:12 -07:00
|
|
|
"include/receive_side_congestion_controller.h",
|
|
|
|
|
"receive_side_congestion_controller.cc",
|
2016-02-23 13:30:42 +01:00
|
|
|
]
|
|
|
|
|
|
2017-12-19 09:33:40 +01:00
|
|
|
deps = [
|
2017-12-20 13:13:32 +00:00
|
|
|
"..:module_api",
|
2019-01-17 16:24:12 +01:00
|
|
|
"../../api/transport:field_trial_based_config",
|
2019-09-10 19:28:06 +02:00
|
|
|
"../../api/transport:network_control",
|
2020-07-07 22:03:26 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2017-12-19 09:33:40 +01:00
|
|
|
"../pacing",
|
|
|
|
|
"../remote_bitrate_estimator",
|
2017-12-20 13:13:32 +00:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-12-19 09:33:40 +01:00
|
|
|
]
|
2018-01-15 10:20:00 -05:00
|
|
|
|
|
|
|
|
if (!build_with_mozilla) {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "../../rtc_base" ]
|
2018-01-15 10:20:00 -05:00
|
|
|
}
|
2017-12-19 09:33:40 +01:00
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("congestion_controller_unittests") {
|
2017-01-19 08:27:11 -08:00
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "receive_side_congestion_controller_unittest.cc" ]
|
2017-01-19 08:27:11 -08:00
|
|
|
deps = [
|
|
|
|
|
":congestion_controller",
|
2021-01-14 09:50:32 +00:00
|
|
|
"../../api/test/network_emulation",
|
|
|
|
|
"../../api/test/network_emulation:create_cross_traffic",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
2019-06-07 15:24:57 +02:00
|
|
|
"../../test/scenario",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../pacing",
|
2018-05-24 14:17:06 +02:00
|
|
|
"goog_cc:estimators",
|
2018-02-28 16:48:00 +01:00
|
|
|
"goog_cc:goog_cc_unittests",
|
2018-08-21 16:11:50 +02:00
|
|
|
"pcc:pcc_unittests",
|
2018-02-28 13:07:28 +01:00
|
|
|
"rtp:congestion_controller_unittests",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|