Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc

Issue 2917873002: Refactored incoming bitrate estimator. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc b/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc
index 338c4d8e4d38f8d95da4fddf665247a70c301c02..df6228283633d1345efbc1b54fcdf3772f89b82f 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc
@@ -13,6 +13,7 @@
#include <algorithm>
#include "webrtc/base/logging.h"
+#include "webrtc/base/ptr_util.h"
#include "webrtc/modules/congestion_controller/delay_based_bwe.h"
#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
@@ -29,7 +30,9 @@ SendSideBweSender::SendSideBweSender(int kbps,
BitrateController::CreateBitrateController(clock,
observer,
&event_log_)),
- bwe_(new DelayBasedBwe(nullptr, clock)),
+ incoming_bitrate_estimator_(rtc::MakeUnique<IncomingBitrateEstimator>()),
+ bwe_(
+ new DelayBasedBwe(nullptr, incoming_bitrate_estimator_.get(), clock)),
feedback_observer_(bitrate_controller_->CreateRtcpBandwidthObserver()),
clock_(clock),
send_time_history_(clock_, 10000),

Powered by Google App Engine
This is Rietveld 408576698