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

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

Issue 1009633003: Populate RTT info in TransportConnectionStats. Moved RttStatsPeer class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Deprecate_flag_quic_enable_bandwidth_89021133
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « net/quic/test_tools/rtt_stats_peer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « net/quic/test_tools/rtt_stats_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698