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
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("congestion_controller") {
|
2016-02-23 13:30:42 +01:00
|
|
|
sources = [
|
2017-07-17 01:41:41 -07:00
|
|
|
"acknowledged_bitrate_estimator.cc",
|
|
|
|
|
"acknowledged_bitrate_estimator.h",
|
|
|
|
|
"bitrate_estimator.cc",
|
|
|
|
|
"bitrate_estimator.h",
|
2016-06-17 09:21:34 -07:00
|
|
|
"delay_based_bwe.cc",
|
|
|
|
|
"delay_based_bwe.h",
|
2017-03-21 06:41:12 -07:00
|
|
|
"include/receive_side_congestion_controller.h",
|
|
|
|
|
"include/send_side_congestion_controller.h",
|
2016-12-09 05:50:01 -08:00
|
|
|
"median_slope_estimator.cc",
|
|
|
|
|
"median_slope_estimator.h",
|
2016-08-01 08:49:04 -07:00
|
|
|
"probe_bitrate_estimator.cc",
|
|
|
|
|
"probe_bitrate_estimator.h",
|
2016-09-12 12:28:54 -07:00
|
|
|
"probe_controller.cc",
|
|
|
|
|
"probe_controller.h",
|
2017-03-21 06:41:12 -07:00
|
|
|
"receive_side_congestion_controller.cc",
|
|
|
|
|
"send_side_congestion_controller.cc",
|
2016-09-30 10:06:51 +02:00
|
|
|
"transport_feedback_adapter.cc",
|
|
|
|
|
"transport_feedback_adapter.h",
|
2016-11-17 03:48:18 -08:00
|
|
|
"trendline_estimator.cc",
|
|
|
|
|
"trendline_estimator.h",
|
2016-02-23 13:30:42 +01:00
|
|
|
]
|
|
|
|
|
|
2016-11-17 03:48:18 -08:00
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-02 02:09:52 -07:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-02-23 13:30:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-12-28 04:43:46 -08:00
|
|
|
"../..:webrtc_common",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../../:typedefs",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../../api:optional",
|
2017-02-17 03:38:28 -08:00
|
|
|
"../../logging:rtc_event_log_api",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rate_limiter",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_numerics",
|
2016-12-28 04:43:46 -08:00
|
|
|
"../../system_wrappers",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers:field_trial_api",
|
|
|
|
|
"../../system_wrappers:metrics_api",
|
2016-02-23 13:30:42 +01:00
|
|
|
"../bitrate_controller",
|
|
|
|
|
"../pacing",
|
2016-12-28 04:43:46 -08:00
|
|
|
"../remote_bitrate_estimator",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2016-12-28 04:43:46 -08:00
|
|
|
"../utility",
|
2016-02-23 13:30:42 +01:00
|
|
|
]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("congestion_controller_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
2017-07-17 01:41:41 -07:00
|
|
|
"acknowledged_bitrate_estimator_unittest.cc",
|
2017-03-09 06:40:08 -08:00
|
|
|
"congestion_controller_unittests_helper.cc",
|
|
|
|
|
"congestion_controller_unittests_helper.h",
|
2017-01-19 08:27:11 -08:00
|
|
|
"delay_based_bwe_unittest.cc",
|
|
|
|
|
"delay_based_bwe_unittest_helper.cc",
|
|
|
|
|
"delay_based_bwe_unittest_helper.h",
|
|
|
|
|
"median_slope_estimator_unittest.cc",
|
|
|
|
|
"probe_bitrate_estimator_unittest.cc",
|
|
|
|
|
"probe_controller_unittest.cc",
|
2017-08-21 10:45:07 +02:00
|
|
|
"receive_side_congestion_controller_unittest.cc",
|
|
|
|
|
"send_side_congestion_controller_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"transport_feedback_adapter_unittest.cc",
|
|
|
|
|
"trendline_estimator_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":congestion_controller",
|
2017-05-08 11:52:38 -07:00
|
|
|
":mock_congestion_controller",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:field_trial",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../bitrate_controller:bitrate_controller",
|
2017-09-04 04:57:11 -07:00
|
|
|
"../pacing:mock_paced_sender",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../pacing:pacing",
|
|
|
|
|
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-01-19 08:27:11 -08:00
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-08 11:52:38 -07:00
|
|
|
|
|
|
|
|
rtc_source_set("mock_congestion_controller") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"include/mock/mock_congestion_observer.h",
|
|
|
|
|
"include/mock/mock_send_side_congestion_controller.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":congestion_controller",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
}
|