Index: webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc |
diff --git a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc |
index 479ecb457b30b19f7cb4a02475ad19f1bcad6f17..6bcafc465d32e132fa644f6a4a02d98a6f1584b0 100644 |
--- a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc |
+++ b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc |
@@ -14,6 +14,7 @@ |
#include <utility> |
#include "webrtc/base/checks.h" |
+#include "webrtc/base/ptr_util.h" |
#include "webrtc/modules/congestion_controller/delay_based_bwe.h" |
namespace webrtc { |
@@ -149,7 +150,10 @@ int64_t StreamGenerator::GenerateFrame(std::vector<PacketFeedback>* packets, |
DelayBasedBweTest::DelayBasedBweTest() |
: clock_(100000000), |
- bitrate_estimator_(new DelayBasedBwe(nullptr, &clock_)), |
+ incoming_bitrate_estimator_(rtc::MakeUnique<IncomingBitrateEstimator>()), |
+ bitrate_estimator_(new DelayBasedBwe(nullptr, |
+ incoming_bitrate_estimator_.get(), |
+ &clock_)), |
stream_generator_(new test::StreamGenerator(1e6, // Capacity. |
clock_.TimeInMicroseconds())), |
arrival_time_offset_ms_(0), |