mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-15 06:40:43 +01:00

This reverts commit e6cefdf9c5
.
Reason for revert: conflicts with reverting https://webrtc-review.googlesource.com/c/src/+/52980
Original change's description:
> Moved congestion controller to goog_cc folder.
>
> Bug: webrtc:8415
> Change-Id: I2070da0cacf1dbfc4b6a89285af3e68fd03497ab
> Reviewed-on: https://webrtc-review.googlesource.com/43841
> Commit-Queue: Sebastian Jansson <srte@webrtc.org>
> Reviewed-by: Björn Terelius <terelius@webrtc.org>
> Reviewed-by: Stefan Holmer <stefan@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#21928}
TBR=terelius@webrtc.org,stefan@webrtc.org,srte@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: webrtc:8415
Change-Id: If8965e1e745e57694192b9ca2a69503c722658d9
Reviewed-on: https://webrtc-review.googlesource.com/53020
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22012}
86 lines
2.5 KiB
Text
86 lines
2.5 KiB
Text
# 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.
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
rtc_static_library("bitrate_controller") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"bitrate_controller_impl.cc",
|
|
"bitrate_controller_impl.h",
|
|
"include/bitrate_controller.h",
|
|
"send_side_bandwidth_estimation.cc",
|
|
"send_side_bandwidth_estimation.h",
|
|
]
|
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
|
} else {
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
|
}
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
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 = [
|
|
"..:module_api",
|
|
"../../logging:rtc_event_bwe",
|
|
"../../logging:rtc_event_log_api",
|
|
"../../rtc_base:checks",
|
|
"../../rtc_base:rtc_base_approved",
|
|
"../../system_wrappers",
|
|
"../../system_wrappers:field_trial_api",
|
|
"../../system_wrappers:metrics_api",
|
|
"../congestion_controller:delay_based_bwe",
|
|
"../pacing",
|
|
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
|
"../rtp_rtcp",
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
|
]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("mocks") {
|
|
testonly = true
|
|
sources = [
|
|
"include/mock/mock_bitrate_controller.h",
|
|
]
|
|
deps = [
|
|
":bitrate_controller",
|
|
"../../test:test_support",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("bitrate_controller_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"bitrate_controller_unittest.cc",
|
|
"send_side_bandwidth_estimation_unittest.cc",
|
|
]
|
|
deps = [
|
|
":bitrate_controller",
|
|
"../../logging:mocks",
|
|
"../../logging:rtc_event_bwe",
|
|
"../../logging:rtc_event_log_api",
|
|
"../../test:field_trial",
|
|
"../../test:test_support",
|
|
"../pacing:mock_paced_sender",
|
|
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
|
]
|
|
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" ]
|
|
}
|
|
}
|
|
}
|