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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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/quic_sent_packet_manager_peer.h ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/loss_detection_interface.h" 8 #include "net/quic/congestion_control/loss_detection_interface.h"
9 #include "net/quic/congestion_control/send_algorithm_interface.h" 9 #include "net/quic/congestion_control/send_algorithm_interface.h"
10 #include "net/quic/quic_protocol.h" 10 #include "net/quic/quic_protocol.h"
11 #include "net/quic/quic_sent_packet_manager.h" 11 #include "net/quic/quic_sent_packet_manager.h"
12 12
13 namespace net { 13 namespace net {
14 namespace test { 14 namespace test {
15 15
16 // static 16 // static
17 size_t QuicSentPacketManagerPeer::GetMaxTailLossProbes( 17 size_t QuicSentPacketManagerPeer::GetMaxTailLossProbes(
18 QuicSentPacketManager* sent_packet_manager) { 18 QuicSentPacketManager* sent_packet_manager) {
19 return sent_packet_manager->max_tail_loss_probes_; 19 return sent_packet_manager->max_tail_loss_probes_;
20 } 20 }
21 21
22 // static 22 // static
23 void QuicSentPacketManagerPeer::SetMaxTailLossProbes( 23 void QuicSentPacketManagerPeer::SetMaxTailLossProbes(
24 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) { 24 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) {
25 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes; 25 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes;
26 } 26 }
27 27
28 // static 28 // static
29 bool QuicSentPacketManagerPeer::GetUseNewRto(
30 QuicSentPacketManager* sent_packet_manager) {
31 return sent_packet_manager->use_new_rto_;
32 }
33
34 // static
29 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow( 35 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow(
30 QuicSentPacketManager* sent_packet_manager) { 36 QuicSentPacketManager* sent_packet_manager) {
31 return sent_packet_manager->receive_buffer_bytes_; 37 return sent_packet_manager->receive_buffer_bytes_;
32 } 38 }
33 39
34 // static 40 // static
35 void QuicSentPacketManagerPeer::SetIsServer( 41 void QuicSentPacketManagerPeer::SetIsServer(
36 QuicSentPacketManager* sent_packet_manager, 42 QuicSentPacketManager* sent_packet_manager,
37 bool is_server) { 43 bool is_server) {
38 sent_packet_manager->is_server_ = is_server; 44 sent_packet_manager->is_server_ = is_server;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 166 }
161 167
162 // static 168 // static
163 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( 169 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder(
164 QuicSentPacketManager* sent_packet_manager) { 170 QuicSentPacketManager* sent_packet_manager) {
165 return sent_packet_manager->sustained_bandwidth_recorder_; 171 return sent_packet_manager->sustained_bandwidth_recorder_;
166 } 172 }
167 173
168 } // namespace test 174 } // namespace test
169 } // namespace net 175 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698