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

Unified Diff: webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc

Issue 2931873002: Test and fix for huge bwe drop after alr state. (Closed)
Patch Set: Response to comments. Created 3 years, 6 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/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 62c9f881bc1ef1e92213efc871e6013bc2eddc6c..9b42364cfbe0d31bdada28fdfad0c6ea4c8de5dd 100644
--- a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc
+++ b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc
@@ -151,7 +151,8 @@ int64_t StreamGenerator::GenerateFrame(std::vector<PacketFeedback>* packets,
DelayBasedBweTest::DelayBasedBweTest()
: clock_(100000000),
acknowledged_bitrate_estimator_(
- rtc::MakeUnique<AcknowledgedBitrateEstimator>()),
+ rtc::MakeUnique<AcknowledgedBitrateEstimator>(
+ rtc::MakeUnique<BitrateEstimatorCreator>())),
bitrate_estimator_(new DelayBasedBwe(nullptr, &clock_)),
stream_generator_(new test::StreamGenerator(1e6, // Capacity.
clock_.TimeInMicroseconds())),
@@ -184,7 +185,7 @@ void DelayBasedBweTest::IncomingFeedback(int64_t arrival_time_ms,
sequence_number, payload_size, pacing_info);
std::vector<PacketFeedback> packets;
packets.push_back(packet);
- acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(packets);
+ acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(packets, false);
DelayBasedBwe::Result result =
bitrate_estimator_->IncomingPacketFeedbackVector(
packets, acknowledged_bitrate_estimator_->bitrate_bps());
@@ -219,7 +220,7 @@ bool DelayBasedBweTest::GenerateAndProcessFrame(uint32_t ssrc,
packet.arrival_time_ms += arrival_time_offset_ms_;
}
- acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(packets);
+ acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(packets, false);
DelayBasedBwe::Result result =
bitrate_estimator_->IncomingPacketFeedbackVector(
packets, acknowledged_bitrate_estimator_->bitrate_bps());

Powered by Google App Engine
This is Rietveld 408576698