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

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

Issue 839163003: Adds an alarm for sending a QUIC FEC packet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Tell_QUIC_AckNotifierManager_83525991
Patch Set: Created 5 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_connection_peer.h" 5 #include "net/quic/test_tools/quic_connection_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/receive_algorithm_interface.h" 8 #include "net/quic/congestion_control/receive_algorithm_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_connection.h" 10 #include "net/quic/quic_connection.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { 186 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) {
187 return connection->ack_alarm_.get(); 187 return connection->ack_alarm_.get();
188 } 188 }
189 189
190 // static 190 // static
191 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { 191 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) {
192 return connection->ping_alarm_.get(); 192 return connection->ping_alarm_.get();
193 } 193 }
194 194
195 // static 195 // static
196 QuicAlarm* QuicConnectionPeer::GetFecAlarm(QuicConnection* connection) {
197 return connection->fec_alarm_.get();
198 }
199
200 // static
196 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm( 201 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm(
197 QuicConnection* connection) { 202 QuicConnection* connection) {
198 return connection->resume_writes_alarm_.get(); 203 return connection->resume_writes_alarm_.get();
199 } 204 }
200 205
201 // static 206 // static
202 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm( 207 QuicAlarm* QuicConnectionPeer::GetRetransmissionAlarm(
203 QuicConnection* connection) { 208 QuicConnection* connection) {
204 return connection->retransmission_alarm_.get(); 209 return connection->retransmission_alarm_.get();
205 } 210 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 connection->sequence_number_of_last_sent_packet_ = number; 264 connection->sequence_number_of_last_sent_packet_ = number;
260 } 265 }
261 266
262 // static 267 // static
263 QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) { 268 QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) {
264 return &connection->stats_; 269 return &connection->stats_;
265 } 270 }
266 271
267 } // namespace test 272 } // namespace test
268 } // namespace net 273 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/quic/test_tools/quic_packet_generator_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698