From b749e5e1f591fa804fb3493aec819ff39a881fc5 Mon Sep 17 00:00:00 2001 From: tschumim Date: Tue, 13 Jun 2017 22:58:21 -0700 Subject: [PATCH] Fix for broken test BweFeedbackTest. BUG=webrtc:7746 Review-Url: https://codereview.webrtc.org/2930323004 Cr-Commit-Position: refs/heads/master@{#18582} --- .../remote_bitrate_estimator/test/estimators/send_side.cc | 2 ++ 1 file changed, 2 insertions(+) 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 290f0cb125..905659d0ee 100644 --- a/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc +++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc @@ -75,6 +75,8 @@ void SendSideBweSender::GiveFeedback(const FeedbackPacket& feedback) { bwe_->OnRttUpdate(rtt_ms, rtt_ms); BWE_TEST_LOGGING_PLOT(1, "RTT", clock_->TimeInMilliseconds(), rtt_ms); + std::sort(packet_feedback_vector.begin(), packet_feedback_vector.end(), + PacketFeedbackComparator()); acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector( packet_feedback_vector); DelayBasedBwe::Result result = bwe_->IncomingPacketFeedbackVector(