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

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

Issue 2889713002: Landing Recent QUIC changes until Fri May 12 18:23:26 2017 +0000 (Closed)
Patch Set: Created 3 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
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 "net/quic/core/congestion_control/loss_detection_interface.h" 7 #include "net/quic/core/congestion_control/loss_detection_interface.h"
8 #include "net/quic/core/congestion_control/send_algorithm_interface.h" 8 #include "net/quic/core/congestion_control/send_algorithm_interface.h"
9 #include "net/quic/core/quic_packets.h" 9 #include "net/quic/core/quic_packets.h"
10 #include "net/quic/core/quic_sent_packet_manager.h" 10 #include "net/quic/core/quic_sent_packet_manager.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return sent_packet_manager->sustained_bandwidth_recorder_; 176 return sent_packet_manager->sustained_bandwidth_recorder_;
177 } 177 }
178 178
179 // static 179 // static
180 bool QuicSentPacketManagerPeer::UsingPacing( 180 bool QuicSentPacketManagerPeer::UsingPacing(
181 const QuicSentPacketManager* sent_packet_manager) { 181 const QuicSentPacketManager* sent_packet_manager) {
182 return sent_packet_manager->using_pacing_; 182 return sent_packet_manager->using_pacing_;
183 } 183 }
184 184
185 // static 185 // static
186 void QuicSentPacketManagerPeer::SetUsingPacing(
187 QuicSentPacketManager* sent_packet_manager,
188 bool using_pacing) {
189 sent_packet_manager->using_pacing_ = using_pacing;
190 }
191
192 // static
186 bool QuicSentPacketManagerPeer::IsUnacked( 193 bool QuicSentPacketManagerPeer::IsUnacked(
187 QuicSentPacketManager* sent_packet_manager, 194 QuicSentPacketManager* sent_packet_manager,
188 QuicPacketNumber packet_number) { 195 QuicPacketNumber packet_number) {
189 return sent_packet_manager->unacked_packets_.IsUnacked(packet_number); 196 return sent_packet_manager->unacked_packets_.IsUnacked(packet_number);
190 } 197 }
191 198
192 // static 199 // static
193 bool QuicSentPacketManagerPeer::HasRetransmittableFrames( 200 bool QuicSentPacketManagerPeer::HasRetransmittableFrames(
194 QuicSentPacketManager* sent_packet_manager, 201 QuicSentPacketManager* sent_packet_manager,
195 QuicPacketNumber packet_number) { 202 QuicPacketNumber packet_number) {
196 return sent_packet_manager->unacked_packets_.HasRetransmittableFrames( 203 return sent_packet_manager->unacked_packets_.HasRetransmittableFrames(
197 packet_number); 204 packet_number);
198 } 205 }
199 206
200 // static 207 // static
201 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap( 208 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap(
202 QuicSentPacketManager* sent_packet_manager) { 209 QuicSentPacketManager* sent_packet_manager) {
203 return &sent_packet_manager->unacked_packets_; 210 return &sent_packet_manager->unacked_packets_;
204 } 211 }
205 212
206 } // namespace test 213 } // namespace test
207 } // namespace net 214 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | net/tools/quic/quic_http_response_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698