2014-06-23 19:21:07 +00: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")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("bitrate_controller") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2018-07-18 15:37:01 +02:00
|
|
|
"bitrate_controller.cc",
|
2014-06-23 19:21:07 +00:00
|
|
|
"bitrate_controller_impl.cc",
|
|
|
|
|
"bitrate_controller_impl.h",
|
|
|
|
|
"include/bitrate_controller.h",
|
2018-11-19 15:30:23 +01:00
|
|
|
"loss_based_bandwidth_estimation.cc",
|
|
|
|
|
"loss_based_bandwidth_estimation.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"send_side_bandwidth_estimation.cc",
|
|
|
|
|
"send_side_bandwidth_estimation.h",
|
|
|
|
|
]
|
|
|
|
|
|
2016-09-14 05:04:36 -07: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-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" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2018-01-02 09:15:05 +01:00
|
|
|
"..:module_api",
|
2018-10-23 12:03:01 +02:00
|
|
|
"../../api/transport:network_control",
|
|
|
|
|
"../../api/units:data_rate",
|
|
|
|
|
"../../api/units:time_delta",
|
|
|
|
|
"../../api/units:timestamp",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_bwe",
|
2018-01-02 09:15:05 +01:00
|
|
|
"../../logging:rtc_event_log_api",
|
|
|
|
|
"../../rtc_base:checks",
|
2018-10-23 12:03:01 +02:00
|
|
|
"../../rtc_base:deprecation",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-10-08 12:49:53 +02:00
|
|
|
"../../rtc_base/experiments:field_trial_parser",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../../system_wrappers:field_trial",
|
|
|
|
|
"../../system_wrappers:metrics",
|
2018-07-02 09:25:25 +02:00
|
|
|
"../congestion_controller/goog_cc:delay_based_bwe",
|
2018-01-02 09:15:05 +01:00
|
|
|
"../pacing",
|
|
|
|
|
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
2016-12-28 04:43:46 -08:00
|
|
|
"../rtp_rtcp",
|
2018-01-02 09:15:05 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-10-08 11:00:50 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2015-05-25 12:55:39 +02:00
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2018-01-02 14:20:17 +01:00
|
|
|
rtc_source_set("mocks") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"include/mock/mock_bitrate_controller.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":bitrate_controller",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
rtc_source_set("bitrate_controller_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"bitrate_controller_unittest.cc",
|
|
|
|
|
"send_side_bandwidth_estimation_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":bitrate_controller",
|
2018-01-03 09:08:20 +01:00
|
|
|
"../../logging:mocks",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_bwe",
|
2017-10-03 16:11:34 +02:00
|
|
|
"../../logging:rtc_event_log_api",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../../system_wrappers:system_wrappers",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:field_trial",
|
|
|
|
|
"../../test:test_support",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../congestion_controller/goog_cc:delay_based_bwe",
|
2017-09-04 04:57:11 -07:00
|
|
|
"../pacing:mock_paced_sender",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../pacing:pacing",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|