1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/quic/test_tools/rtt_stats_peer.h"
11 QuicTime::Delta
RttStatsPeer::GetHalfWindowRtt(const RttStats
* rtt_stats
) {
12 return rtt_stats
->half_window_rtt_
.rtt
;
16 QuicTime::Delta
RttStatsPeer::GetQuarterWindowRtt(const RttStats
* rtt_stats
) {
17 return rtt_stats
->quarter_window_rtt_
.rtt
;
21 void RttStatsPeer::SetSmoothedRtt(RttStats
* rtt_stats
, QuicTime::Delta rtt_ms
) {
22 rtt_stats
->smoothed_rtt_
= rtt_ms
;
26 void RttStatsPeer::SetMinRtt(RttStats
* rtt_stats
, QuicTime::Delta rtt_ms
) {
27 rtt_stats
->min_rtt_
= rtt_ms
;