Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 10 | |
Patrik Höglund | 7613454 | 2018-01-02 09:15:05 +0100 | [diff] [blame] | 11 | config("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 Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 19 | rtc_library("congestion_controller") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 20 | visibility = [ "*" ] |
Patrik Höglund | 7613454 | 2018-01-02 09:15:05 +0100 | [diff] [blame] | 21 | configs += [ ":bwe_test_logging" ] |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 22 | sources = [ |
nisse | 559af38 | 2017-03-21 06:41:12 -0700 | [diff] [blame] | 23 | "include/receive_side_congestion_controller.h", |
nisse | 559af38 | 2017-03-21 06:41:12 -0700 | [diff] [blame] | 24 | "receive_side_congestion_controller.cc", |
Per Kjellander | 898f091 | 2021-04-21 11:56:32 +0200 | [diff] [blame] | 25 | "remb_throttler.cc", |
| 26 | "remb_throttler.h", |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 27 | ] |
| 28 | |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 29 | deps = [ |
Sebastian Jansson | 95edb03 | 2019-01-17 16:24:12 +0100 | [diff] [blame] | 30 | "../../api/transport:field_trial_based_config", |
Per Kjellander | 52f7ae7 | 2019-09-10 19:28:06 +0200 | [diff] [blame] | 31 | "../../api/transport:network_control", |
Per Kjellander | 898f091 | 2021-04-21 11:56:32 +0200 | [diff] [blame] | 32 | "../../api/units:data_rate", |
| 33 | "../../api/units:time_delta", |
| 34 | "../../api/units:timestamp", |
Florent Castelli | 0af55ba | 2022-04-04 15:06:30 +0200 | [diff] [blame] | 35 | "../../rtc_base:logging", |
Danil Chapovalov | 56257af | 2022-07-01 16:28:55 +0200 | [diff] [blame] | 36 | "../../rtc_base:macromagic", |
Markus Handell | 9c96250 | 2020-07-07 22:03:26 +0200 | [diff] [blame] | 37 | "../../rtc_base/synchronization:mutex", |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 38 | "../pacing", |
mbonadei | 49f465f | 2016-12-28 04:43:46 -0800 | [diff] [blame] | 39 | "../remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 40 | "../rtp_rtcp:rtp_rtcp_format", |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 41 | ] |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 42 | |
| 43 | if (!build_with_mozilla) { |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 44 | deps += [ "../../rtc_base" ] |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 45 | } |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 46 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 47 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 +0000 | [diff] [blame] | 48 | if (rtc_include_tests && !build_with_chromium) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 49 | rtc_library("congestion_controller_unittests") { |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 50 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 51 | |
Per Kjellander | 898f091 | 2021-04-21 11:56:32 +0200 | [diff] [blame] | 52 | sources = [ |
| 53 | "receive_side_congestion_controller_unittest.cc", |
| 54 | "remb_throttler_unittest.cc", |
| 55 | ] |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 56 | deps = [ |
| 57 | ":congestion_controller", |
Andrey Logvin | f9ee0e0 | 2021-01-14 09:50:32 +0000 | [diff] [blame] | 58 | "../../api/test/network_emulation", |
| 59 | "../../api/test/network_emulation:create_cross_traffic", |
Per Kjellander | 898f091 | 2021-04-21 11:56:32 +0200 | [diff] [blame] | 60 | "../../api/units:data_rate", |
| 61 | "../../api/units:time_delta", |
| 62 | "../../api/units:timestamp", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 63 | "../../system_wrappers", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 64 | "../../test:test_support", |
Sebastian Jansson | 24cf260 | 2019-06-07 15:24:57 +0200 | [diff] [blame] | 65 | "../../test/scenario", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 66 | "../pacing", |
Sebastian Jansson | 172fd85 | 2018-05-24 14:17:06 +0200 | [diff] [blame] | 67 | "goog_cc:estimators", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 68 | "goog_cc:goog_cc_unittests", |
Anastasia Koloskova | ac50c6a | 2018-08-21 16:11:50 +0200 | [diff] [blame] | 69 | "pcc:pcc_unittests", |
Sebastian Jansson | 56da2f7 | 2018-02-28 13:07:28 +0100 | [diff] [blame] | 70 | "rtp:congestion_controller_unittests", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 71 | ] |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 72 | } |
| 73 | } |