Searched refs:rtt_sample (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/net/quic/congestion_control/ |
D | rtt_stats.cc | 56 QuicTime::Delta rtt_sample(QuicTime::Delta::Zero()); in UpdateRtt() local 58 rtt_sample = send_delta.Subtract(ack_delay); in UpdateRtt() 63 rtt_sample = send_delta; in UpdateRtt() 66 if (rtt_sample.IsInfinite() || rtt_sample.IsZero()) { in UpdateRtt() 68 << (rtt_sample.IsZero() ? "Zero" : "Infinite"); in UpdateRtt() 72 DCHECK_LT(0, rtt_sample.ToMicroseconds()); in UpdateRtt() 74 latest_rtt_ = rtt_sample; in UpdateRtt() 76 if (min_rtt_.IsZero() || min_rtt_ > rtt_sample) { in UpdateRtt() 77 min_rtt_ = rtt_sample; in UpdateRtt() 79 UpdateRecentMinRtt(rtt_sample, now); in UpdateRtt() [all …]
|
D | rtt_stats_test.cc | 90 QuicTime::Delta rtt_sample = QuicTime::Delta::FromMilliseconds(10); in TEST_F() local 91 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now); in TEST_F() 99 rtt_sample = rtt_sample.Add(QuicTime::Delta::FromMilliseconds(10)); in TEST_F() 100 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now); in TEST_F() 102 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_)); in TEST_F() 103 EXPECT_EQ(rtt_sample.Subtract(QuicTime::Delta::FromMilliseconds(10)), in TEST_F() 121 rtt_sample = rtt_sample.Subtract(QuicTime::Delta::FromMilliseconds(5)); in TEST_F() 122 rtt_stats_.UpdateRtt(rtt_sample, QuicTime::Delta::Zero(), now); in TEST_F() 124 EXPECT_EQ(rtt_sample, RttStatsPeer::GetQuarterWindowRtt(&rtt_stats_)); in TEST_F() 125 EXPECT_EQ(rtt_sample.Subtract(QuicTime::Delta::FromMilliseconds(5)), in TEST_F() [all …]
|
D | rtt_stats.h | 92 void UpdateRecentMinRtt(QuicTime::Delta rtt_sample, QuicTime now);
|