blob: 52dee8a04d06d51252e6a0853854159fb8aa76b3 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("bitrate_controller") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000012 visibility = [ "*" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013 sources = [
Christoffer Rodbro3a837482018-11-19 15:30:23 +010014 "loss_based_bandwidth_estimation.cc",
15 "loss_based_bandwidth_estimation.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000016 "send_side_bandwidth_estimation.cc",
17 "send_side_bandwidth_estimation.h",
18 ]
19
gaetano.carlucci52a57032016-09-14 05:04:36 -070020 if (rtc_enable_bwe_test_logging) {
21 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
22 } else {
23 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
24 }
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000025
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020026 deps = [
Danil Chapovalov83bbe912019-08-07 12:24:53 +020027 "../../api/rtc_event_log",
Yves Gerey988cc082018-10-23 12:03:01 +020028 "../../api/transport:network_control",
29 "../../api/units:data_rate",
30 "../../api/units:time_delta",
31 "../../api/units:timestamp",
Qingsi Wang970b0882018-02-01 11:04:46 -080032 "../../logging:rtc_event_bwe",
Patrik Höglund76134542018-01-02 09:15:05 +010033 "../../rtc_base:checks",
Sebastian Jansson7742b212019-06-11 11:26:25 +020034 "../../rtc_base:logging",
Sebastian Jansson2e068e82018-10-08 12:49:53 +020035 "../../rtc_base/experiments:field_trial_parser",
Mirko Bonadei17f48782018-09-28 08:51:10 +020036 "../../system_wrappers:field_trial",
37 "../../system_wrappers:metrics",
Artem Titov94b57c02019-03-21 13:35:10 +010038 "../remote_bitrate_estimator",
Sebastian Jansson7c1744d2018-10-08 11:00:50 +020039 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020040 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000041}
ehmaldonado36268652017-01-19 08:27:11 -080042
43if (rtc_include_tests) {
44 rtc_source_set("bitrate_controller_unittests") {
45 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070046
ehmaldonado36268652017-01-19 08:27:11 -080047 sources = [
ehmaldonado36268652017-01-19 08:27:11 -080048 "send_side_bandwidth_estimation_unittest.cc",
49 ]
50 deps = [
51 ":bitrate_controller",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +020052 "../../api/rtc_event_log",
Patrik Höglund731082c2018-01-03 09:08:20 +010053 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -080054 "../../logging:rtc_event_bwe",
ehmaldonado36268652017-01-19 08:27:11 -080055 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -080056 ]
ehmaldonado36268652017-01-19 08:27:11 -080057 }
58}