blob: 5a3378e2ec7616a18c5683672881111ec71503bd [file] [log] [blame]
Stefan Holmer80e12072016-02-23 13:30:42 +01001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
Stefan Holmer80e12072016-02-23 13:30:42 +010010
Patrik Höglund76134542018-01-02 09:15:05 +010011config("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
Mirko Bonadei86d053c2019-10-17 21:32:04 +020019rtc_library("congestion_controller") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000020 visibility = [ "*" ]
Patrik Höglund76134542018-01-02 09:15:05 +010021 configs += [ ":bwe_test_logging" ]
Stefan Holmer80e12072016-02-23 13:30:42 +010022 sources = [
nisse559af382017-03-21 06:41:12 -070023 "include/receive_side_congestion_controller.h",
nisse559af382017-03-21 06:41:12 -070024 "receive_side_congestion_controller.cc",
Stefan Holmer80e12072016-02-23 13:30:42 +010025 ]
26
Stefan Holmer80e12072016-02-23 13:30:42 +010027 deps = [
mbonadei1140f972017-04-26 03:38:35 -070028 "..:module_api",
Sebastian Jansson95edb032019-01-17 16:24:12 +010029 "../../api/transport:field_trial_based_config",
Per Kjellander52f7ae72019-09-10 19:28:06 +020030 "../../api/transport:network_control",
Stefan Holmer80e12072016-02-23 13:30:42 +010031 "../pacing",
mbonadei49f465f2016-12-28 04:43:46 -080032 "../remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010033 "../rtp_rtcp:rtp_rtcp_format",
Stefan Holmer80e12072016-02-23 13:30:42 +010034 ]
Dan Minor9c686132018-01-15 10:20:00 -050035
36 if (!build_with_mozilla) {
Artem Titov94b57c02019-03-21 13:35:10 +010037 deps += [ "../../rtc_base" ]
Dan Minor9c686132018-01-15 10:20:00 -050038 }
Stefan Holmer80e12072016-02-23 13:30:42 +010039}
ehmaldonado36268652017-01-19 08:27:11 -080040
41if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020042 rtc_library("congestion_controller_unittests") {
ehmaldonado36268652017-01-19 08:27:11 -080043 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070044
ehmaldonado36268652017-01-19 08:27:11 -080045 sources = [
Niels Möller245f17e2017-08-21 10:45:07 +020046 "receive_side_congestion_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -080047 ]
48 deps = [
49 ":congestion_controller",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010050 "../../system_wrappers",
ehmaldonado36268652017-01-19 08:27:11 -080051 "../../test:test_support",
Sebastian Jansson24cf2602019-06-07 15:24:57 +020052 "../../test/scenario",
Artem Titov94b57c02019-03-21 13:35:10 +010053 "../pacing",
Sebastian Jansson9bd1af12018-03-22 15:34:01 +010054 "bbr:bbr_unittests",
Sebastian Jansson172fd852018-05-24 14:17:06 +020055 "goog_cc:estimators",
Sebastian Janssonfc7ec8e2018-02-28 16:48:00 +010056 "goog_cc:goog_cc_unittests",
Anastasia Koloskovaac50c6a2018-08-21 16:11:50 +020057 "pcc:pcc_unittests",
Sebastian Jansson56da2f72018-02-28 13:07:28 +010058 "rtp:congestion_controller_unittests",
ehmaldonado36268652017-01-19 08:27:11 -080059 ]
ehmaldonado36268652017-01-19 08:27:11 -080060 }
61}