Re-land: C++ readability review
[chromium-blink-merge.git] / net / quic / test_tools / rtt_stats_peer.cc
blob7edb313c2d7476f01c14a1ed516088bbbcaa5d5e
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"
7 namespace net {
8 namespace test {
10 // static
11 QuicTime::Delta RttStatsPeer::GetHalfWindowRtt(const RttStats* rtt_stats) {
12 return rtt_stats->half_window_rtt_.rtt;
15 // static
16 QuicTime::Delta RttStatsPeer::GetQuarterWindowRtt(const RttStats* rtt_stats) {
17 return rtt_stats->quarter_window_rtt_.rtt;
20 // static
21 void RttStatsPeer::SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) {
22 rtt_stats->smoothed_rtt_ = rtt_ms;
25 // static
26 void RttStatsPeer::SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) {
27 rtt_stats->min_rtt_ = rtt_ms;
30 } // namespace test
31 } // namespace net