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
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("pacing") {
|
2018-10-04 13:41:03 +02:00
|
|
|
# Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
|
|
|
|
|
# because there exists client code that uses it.
|
|
|
|
|
# TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
|
|
|
|
|
# client code gets updated.
|
|
|
|
|
visibility = [ "*" ]
|
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",
|
2019-08-14 10:43:47 +02:00
|
|
|
"pacing_controller.cc",
|
|
|
|
|
"pacing_controller.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",
|
2019-07-29 16:38:27 +02:00
|
|
|
"rtp_packet_pacer.h",
|
2019-11-26 17:48:49 +01:00
|
|
|
"task_queue_paced_sender.cc",
|
|
|
|
|
"task_queue_paced_sender.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",
|
2019-07-05 16:53:43 +02:00
|
|
|
"../../api:function_view",
|
2019-08-07 12:24:53 +02:00
|
|
|
"../../api/rtc_event_log",
|
2019-11-26 17:48:49 +01:00
|
|
|
"../../api/task_queue:task_queue",
|
2019-02-22 13:09:32 +01:00
|
|
|
"../../api/transport:field_trial_based_config",
|
2018-09-17 13:11:50 +02:00
|
|
|
"../../api/transport:network_control",
|
2019-02-22 13:09:32 +01:00
|
|
|
"../../api/transport:webrtc_key_value_config",
|
2019-07-29 16:38:27 +02:00
|
|
|
"../../api/units:data_rate",
|
|
|
|
|
"../../api/units:data_size",
|
|
|
|
|
"../../api/units:time_delta",
|
|
|
|
|
"../../api/units:timestamp",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_bwe",
|
|
|
|
|
"../../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",
|
2019-11-26 17:48:49 +01:00
|
|
|
"../../rtc_base:rtc_task_queue",
|
2018-12-20 15:46:03 +01:00
|
|
|
"../../rtc_base/experiments:field_trial_parser",
|
2020-06-10 15:12:15 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2019-11-26 17:48:49 +01:00
|
|
|
"../../rtc_base/synchronization:sequence_checker",
|
|
|
|
|
"../../rtc_base/task_utils:to_queued_task",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
2019-03-25 10:10:31 +01:00
|
|
|
"../../system_wrappers:metrics",
|
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",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
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",
|
2020-04-01 13:43:08 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
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
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("interval_budget") {
|
2018-06-25 17:56:08 +02:00
|
|
|
sources = [
|
|
|
|
|
"interval_budget.cc",
|
|
|
|
|
"interval_budget.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("pacing_unittests") {
|
2017-01-19 08:27:11 -08:00
|
|
|
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",
|
2019-08-14 10:43:47 +02:00
|
|
|
"pacing_controller_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"packet_router_unittest.cc",
|
2019-11-26 17:48:49 +01:00
|
|
|
"task_queue_paced_sender_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-06-25 17:56:08 +02:00
|
|
|
":interval_budget",
|
2017-01-19 08:27:11 -08:00
|
|
|
":pacing",
|
2020-07-19 12:48:16 +02:00
|
|
|
"../../api/transport:network_control",
|
2019-08-14 10:43:47 +02:00
|
|
|
"../../api/units:data_rate",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../../api/units:time_delta",
|
2019-08-29 18:32:31 +02:00
|
|
|
"../../modules/utility:mock_process_thread",
|
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",
|
2020-07-17 12:06:12 +02:00
|
|
|
"../../test:explicit_key_value_config",
|
2017-10-02 13:25:38 +02:00
|
|
|
"../../test:field_trial",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
2019-11-26 17:48:49 +01:00
|
|
|
"../../test/time_controller:time_controller",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../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
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|