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

Unified Diff: net/quic/congestion_control/inter_arrival_sender_test.cc

Issue 185053006: Refactor of QUIC's rtt storage and calculation to have a single RttStats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: net/quic/congestion_control/inter_arrival_sender_test.cc
diff --git a/net/quic/congestion_control/inter_arrival_sender_test.cc b/net/quic/congestion_control/inter_arrival_sender_test.cc
index 4a6bec447a9249ede0a188f8384bb79f0f3f54ff..048cbb04144a2e7e7f90d31034d40339c5d2ef5f 100644
--- a/net/quic/congestion_control/inter_arrival_sender_test.cc
+++ b/net/quic/congestion_control/inter_arrival_sender_test.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/stl_util.h"
+#include "net/quic/congestion_control/rtt_stats.h"
#include "net/quic/test_tools/mock_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -21,12 +22,13 @@ class InterArrivalSenderTest : public ::testing::Test {
one_s_(QuicTime::Delta::FromMilliseconds(1000)),
nine_ms_(QuicTime::Delta::FromMilliseconds(9)),
send_start_time_(send_clock_.Now()),
- sender_(&send_clock_),
+ sender_(&send_clock_, &rtt_stats_),
sequence_number_(1),
acked_sequence_number_(1),
feedback_sequence_number_(1) {
send_clock_.AdvanceTime(one_ms_);
receive_clock_.AdvanceTime(one_ms_);
+ rtt_stats_.set_initial_rtt_us(60 * base::Time::kMicrosecondsPerMillisecond);
}
virtual ~InterArrivalSenderTest() {
@@ -101,6 +103,7 @@ class InterArrivalSenderTest : public ::testing::Test {
MockClock send_clock_;
MockClock receive_clock_;
const QuicTime send_start_time_;
+ RttStats rtt_stats_;
InterArrivalSender sender_;
QuicPacketSequenceNumber sequence_number_;
QuicPacketSequenceNumber acked_sequence_number_;
« no previous file with comments | « net/quic/congestion_control/inter_arrival_sender.cc ('k') | net/quic/congestion_control/loss_detection_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698