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")
|
2016-09-02 04:10:34 -07:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("pacing") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2014-10-23 11:57:05 +00:00
|
|
|
"bitrate_prober.cc",
|
|
|
|
|
"bitrate_prober.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"paced_sender.cc",
|
2015-11-16 11:12:24 +01:00
|
|
|
"paced_sender.h",
|
2017-08-20 09:19:58 -07:00
|
|
|
"pacer.h",
|
2015-03-26 11:11:06 +01:00
|
|
|
"packet_router.cc",
|
2015-11-16 11:12:24 +01:00
|
|
|
"packet_router.h",
|
2018-02-07 13:26:38 +01:00
|
|
|
"round_robin_packet_queue.cc",
|
|
|
|
|
"round_robin_packet_queue.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2018-06-25 17:56:08 +02:00
|
|
|
":interval_budget",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-03-15 07:45:36 -07:00
|
|
|
"../../:webrtc_common",
|
2018-09-17 13:11:50 +02:00
|
|
|
"../../api/transport:network_control",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_bwe",
|
2017-03-29 01:23:13 -07:00
|
|
|
"../../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_pacing",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-01-12 10:54:18 +01:00
|
|
|
"../../rtc_base/experiments:alr_experiment",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../../system_wrappers:field_trial",
|
2018-06-25 17:56:08 +02:00
|
|
|
"../congestion_controller/goog_cc:alr_detector",
|
2017-04-18 23:38:35 -07:00
|
|
|
"../remote_bitrate_estimator",
|
2015-09-21 15:11:14 -07:00
|
|
|
"../rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-03-15 07:45:36 -07:00
|
|
|
"../utility",
|
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-06-18 10:48:16 +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
|
|
|
|
2018-06-25 17:56:08 +02:00
|
|
|
rtc_source_set("interval_budget") {
|
|
|
|
|
sources = [
|
|
|
|
|
"interval_budget.cc",
|
|
|
|
|
"interval_budget.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../../:webrtc_common",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("pacing_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"bitrate_prober_unittest.cc",
|
2017-07-11 06:56:04 -07:00
|
|
|
"interval_budget_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"paced_sender_unittest.cc",
|
|
|
|
|
"packet_router_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-06-25 17:56:08 +02:00
|
|
|
":interval_budget",
|
2017-01-19 08:27:11 -08:00
|
|
|
":pacing",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
2018-01-12 10:54:18 +01:00
|
|
|
"../../rtc_base/experiments:alr_experiment",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../../system_wrappers:field_trial",
|
2017-10-02 13:25:38 +02:00
|
|
|
"../../test:field_trial",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
|
|
|
|
"../rtp_rtcp",
|
2017-04-25 04:04:50 -07:00
|
|
|
"../rtp_rtcp:mock_rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
}
|
2017-09-04 04:57:11 -07:00
|
|
|
|
|
|
|
|
rtc_source_set("mock_paced_sender") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"mock/mock_paced_sender.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":pacing",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
}
|