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" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_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",
|
|
|
|
|
"include/send_side_congestion_controller.h",
|
2018-02-05 17:15:09 +01:00
|
|
|
"pacer_controller.cc",
|
|
|
|
|
"pacer_controller.h",
|
2017-03-21 06:41:12 -07:00
|
|
|
"receive_side_congestion_controller.cc",
|
|
|
|
|
"send_side_congestion_controller.cc",
|
2016-02-23 13:30:42 +01:00
|
|
|
]
|
|
|
|
|
|
2017-12-20 13:13:32 +00:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
2017-12-19 09:33:40 +01:00
|
|
|
|
|
|
|
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-01-26 15:09:41 +01:00
|
|
|
":transport_feedback",
|
2017-12-20 13:13:32 +00:00
|
|
|
"..:module_api",
|
|
|
|
|
"../..:webrtc_common",
|
2017-12-19 09:33:40 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-12-20 13:13:32 +00:00
|
|
|
"../../rtc_base:rate_limiter",
|
2018-02-05 17:15:09 +01:00
|
|
|
"../../rtc_base:rtc_task_queue_api",
|
|
|
|
|
"../../rtc_base:sequenced_task_checker",
|
2017-12-20 13:13:32 +00:00
|
|
|
"../../system_wrappers",
|
2017-12-19 09:33:40 +01:00
|
|
|
"../../system_wrappers:field_trial_api",
|
|
|
|
|
"../../system_wrappers:metrics_api",
|
2018-01-17 19:57:24 +00:00
|
|
|
"../../system_wrappers:runtime_enabled_features_api",
|
2017-12-20 13:13:32 +00:00
|
|
|
"../bitrate_controller",
|
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",
|
2018-02-07 10:00:51 +01:00
|
|
|
"goog_cc",
|
|
|
|
|
"network_control",
|
2017-12-19 09:33:40 +01:00
|
|
|
]
|
2018-01-15 10:20:00 -05:00
|
|
|
|
|
|
|
|
if (!build_with_mozilla) {
|
|
|
|
|
deps += [ "../../rtc_base:rtc_base" ]
|
|
|
|
|
}
|
2017-12-19 09:33:40 +01:00
|
|
|
}
|
|
|
|
|
|
2018-01-26 15:09:41 +01:00
|
|
|
rtc_static_library("transport_feedback") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"send_time_history.cc",
|
|
|
|
|
"send_time_history.h",
|
|
|
|
|
"transport_feedback_adapter.cc",
|
|
|
|
|
"transport_feedback_adapter.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-02-05 17:15:09 +01:00
|
|
|
"..:module_api",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
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-03-09 06:40:08 -08:00
|
|
|
"congestion_controller_unittests_helper.cc",
|
|
|
|
|
"congestion_controller_unittests_helper.h",
|
2017-08-21 10:45:07 +02:00
|
|
|
"receive_side_congestion_controller_unittest.cc",
|
|
|
|
|
"send_side_congestion_controller_unittest.cc",
|
2018-01-26 15:09:41 +01:00
|
|
|
"send_time_history_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"transport_feedback_adapter_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":congestion_controller",
|
2017-05-08 11:52:38 -07:00
|
|
|
":mock_congestion_controller",
|
2018-01-26 15:09:41 +01:00
|
|
|
":transport_feedback",
|
2018-01-03 09:08:20 +01:00
|
|
|
"../../logging:mocks",
|
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",
|
2018-01-02 14:20:17 +01:00
|
|
|
"../bitrate_controller:mocks",
|
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",
|
2018-02-07 10:00:51 +01:00
|
|
|
"goog_cc:goog_cc_unittests",
|
|
|
|
|
"network_control",
|
|
|
|
|
"network_control:network_control_unittests",
|
2018-02-05 17:15:09 +01:00
|
|
|
"//testing/gmock",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
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
|
|
|
}
|