xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/rtt_stats_peer.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 "quiche/quic/test_tools/rtt_stats_peer.h"
6 
7 namespace quic {
8 namespace test {
9 
10 // static
SetSmoothedRtt(RttStats * rtt_stats,QuicTime::Delta rtt_ms)11 void RttStatsPeer::SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) {
12   rtt_stats->smoothed_rtt_ = rtt_ms;
13 }
14 
15 // static
SetMinRtt(RttStats * rtt_stats,QuicTime::Delta rtt_ms)16 void RttStatsPeer::SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms) {
17   rtt_stats->min_rtt_ = rtt_ms;
18 }
19 
20 }  // namespace test
21 }  // namespace quic
22