Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / net / quic / test_tools / rtt_stats_peer.h
blob640d9b6cc8a7ba2cc08e9043d55fcd4155217cf1
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 #ifndef NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_
8 #include "net/quic/congestion_control/rtt_stats.h"
9 #include "net/quic/quic_time.h"
11 namespace net {
12 namespace test {
14 class RttStatsPeer {
15 public:
16 static QuicTime::Delta GetHalfWindowRtt(const RttStats* rtt_stats);
18 static QuicTime::Delta GetQuarterWindowRtt(const RttStats* rtt_stats);
20 static void SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms);
22 static void SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms);
24 private:
25 DISALLOW_COPY_AND_ASSIGN(RttStatsPeer);
28 } // namespace test
29 } // namespace net
31 #endif // NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_