OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "net/quic/test_tools/rtt_stats_peer.h" |
| 6 |
| 7 namespace net { |
| 8 namespace test { |
| 9 |
| 10 // static |
| 11 QuicTime::Delta RttStatsPeer::GetHalfWindowRtt(const RttStats* rtt_stats) { |
| 12 return rtt_stats->half_window_rtt_.rtt; |
| 13 } |
| 14 |
| 15 // static |
| 16 QuicTime::Delta RttStatsPeer::GetQuarterWindowRtt(const RttStats* rtt_stats) { |
| 17 return rtt_stats->quarter_window_rtt_.rtt; |
| 18 } |
| 19 |
| 20 // static |
| 21 void RttStatsPeer::SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) { |
| 22 rtt_stats->smoothed_rtt_ = rtt_ms; |
| 23 } |
| 24 |
| 25 // static |
| 26 void RttStatsPeer::SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) { |
| 27 rtt_stats->min_rtt_ = rtt_ms; |
| 28 } |
| 29 |
| 30 } // namespace test |
| 31 } // namespace net |
OLD | NEW |