Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: net/quic/test_tools/rtt_stats_peer.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_
7 7
8 #include "base/macros.h"
8 #include "net/quic/congestion_control/rtt_stats.h" 9 #include "net/quic/congestion_control/rtt_stats.h"
9 #include "net/quic/quic_time.h" 10 #include "net/quic/quic_time.h"
10 11
11 namespace net { 12 namespace net {
12 namespace test { 13 namespace test {
13 14
14 class RttStatsPeer { 15 class RttStatsPeer {
15 public: 16 public:
16 static QuicTime::Delta GetHalfWindowRtt(const RttStats* rtt_stats); 17 static QuicTime::Delta GetHalfWindowRtt(const RttStats* rtt_stats);
17 18
18 static QuicTime::Delta GetQuarterWindowRtt(const RttStats* rtt_stats); 19 static QuicTime::Delta GetQuarterWindowRtt(const RttStats* rtt_stats);
19 20
20 static void SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms); 21 static void SetSmoothedRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms);
21 22
22 static void SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms); 23 static void SetMinRtt(RttStats* rtt_stats, QuicTime::Delta rtt_ms);
23 24
24 private: 25 private:
25 DISALLOW_COPY_AND_ASSIGN(RttStatsPeer); 26 DISALLOW_COPY_AND_ASSIGN(RttStatsPeer);
26 }; 27 };
27 28
28 } // namespace test 29 } // namespace test
29 } // namespace net 30 } // namespace net
30 31
31 #endif // NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_ 32 #endif // NET_QUIC_TEST_TOOLS_RTT_STATS_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/reliable_quic_stream_peer.cc ('k') | net/quic/test_tools/simple_quic_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698