Lines Matching defs:rtt_stats_
26 RttStats rtt_stats_;
30 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(100),
33 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(100), rtt_stats_.min_rtt());
35 rtt_stats_.recent_min_rtt());
36 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(10),
40 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
41 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
42 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(50),
46 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
47 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
48 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(50),
52 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
53 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
54 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(50),
58 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
59 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
63 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(10),
66 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
67 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
69 rtt_stats_.SampleNewRecentMinRtt(4);
71 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(50),
74 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
76 rtt_stats_.recent_min_rtt());
78 rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(50),
81 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
82 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(50), rtt_stats_.recent_min_rtt());
87 rtt_stats_.set_recent_min_rtt_window(QuicTime::Delta::FromMilliseconds(99));
91 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
92 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
93 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.recent_min_rtt());
100 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
101 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
102 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_));
104 RttStatsPeer::GetHalfWindowRtt(&rtt_stats_));
107 rtt_stats_.recent_min_rtt());
110 rtt_stats_.recent_min_rtt());
113 rtt_stats_.recent_min_rtt());
116 rtt_stats_.recent_min_rtt());
122 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
123 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
124 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_));
126 RttStatsPeer::GetHalfWindowRtt(&rtt_stats_));
128 rtt_stats_.recent_min_rtt());
132 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
133 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
134 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_));
135 EXPECT_EQ(rtt_sample, RttStatsPeer::GetHalfWindowRtt(&rtt_stats_));
137 rtt_stats_.recent_min_rtt());
141 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
142 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(10), rtt_stats_.min_rtt());
143 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_));
144 EXPECT_EQ(rtt_sample, RttStatsPeer::GetHalfWindowRtt(&rtt_stats_));
145 EXPECT_EQ(rtt_sample, rtt_stats_.recent_min_rtt());
149 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now);
151 EXPECT_EQ(rtt_sample, rtt_stats_.min_rtt());
152 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_));
153 EXPECT_EQ(rtt_sample, RttStatsPeer::GetHalfWindowRtt(&rtt_stats_));
154 EXPECT_EQ(rtt_sample, rtt_stats_.recent_min_rtt());