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

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

Issue 1982103002: Cancel pending retransmissions which are greater than the largest newly acked packet when using the… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121845603
Patch Set: Created 4 years, 7 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') | 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
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_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 22 matching lines...) Expand all
33 return sent_packet_manager->enable_half_rtt_tail_loss_probe_; 33 return sent_packet_manager->enable_half_rtt_tail_loss_probe_;
34 } 34 }
35 35
36 // static 36 // static
37 bool QuicSentPacketManagerPeer::GetUseNewRto( 37 bool QuicSentPacketManagerPeer::GetUseNewRto(
38 QuicSentPacketManager* sent_packet_manager) { 38 QuicSentPacketManager* sent_packet_manager) {
39 return sent_packet_manager->use_new_rto_; 39 return sent_packet_manager->use_new_rto_;
40 } 40 }
41 41
42 // static 42 // static
43 bool QuicSentPacketManagerPeer::GetUndoRetransmits(
44 QuicSentPacketManager* sent_packet_manager) {
45 return sent_packet_manager->undo_pending_retransmits_;
46 }
47
48 // static
43 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow( 49 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow(
44 QuicSentPacketManager* sent_packet_manager) { 50 QuicSentPacketManager* sent_packet_manager) {
45 return sent_packet_manager->receive_buffer_bytes_; 51 return sent_packet_manager->receive_buffer_bytes_;
46 } 52 }
47 53
48 // static 54 // static
49 void QuicSentPacketManagerPeer::SetPerspective( 55 void QuicSentPacketManagerPeer::SetPerspective(
50 QuicSentPacketManager* sent_packet_manager, 56 QuicSentPacketManager* sent_packet_manager,
51 Perspective perspective) { 57 Perspective perspective) {
52 sent_packet_manager->perspective_ = perspective; 58 sent_packet_manager->perspective_ = perspective;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 185 }
180 186
181 // static 187 // static
182 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( 188 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder(
183 QuicSentPacketManager* sent_packet_manager) { 189 QuicSentPacketManager* sent_packet_manager) {
184 return sent_packet_manager->sustained_bandwidth_recorder_; 190 return sent_packet_manager->sustained_bandwidth_recorder_;
185 } 191 }
186 192
187 } // namespace test 193 } // namespace test
188 } // namespace net 194 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698