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

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

Issue 1807033002: Don't copy the QuicAckFrame into the QuicPacketGenerator. Protected by quic_dont_copy_acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116794514
Patch Set: Created 4 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/quic_connection_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 (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/send_algorithm_interface.h" 8 #include "net/quic/congestion_control/send_algorithm_interface.h"
9 #include "net/quic/quic_packet_writer.h" 9 #include "net/quic/quic_packet_writer.h"
10 #include "net/quic/quic_received_packet_manager.h" 10 #include "net/quic/quic_received_packet_manager.h"
(...skipping 16 matching lines...) Expand all
27 connection->sent_packet_manager_.send_algorithm_.reset(send_algorithm); 27 connection->sent_packet_manager_.send_algorithm_.reset(send_algorithm);
28 } 28 }
29 29
30 // static 30 // static
31 void QuicConnectionPeer::PopulateAckFrame(QuicConnection* connection, 31 void QuicConnectionPeer::PopulateAckFrame(QuicConnection* connection,
32 QuicAckFrame* ack) { 32 QuicAckFrame* ack) {
33 connection->PopulateAckFrame(ack); 33 connection->PopulateAckFrame(ack);
34 } 34 }
35 35
36 // static 36 // static
37 const QuicFrame QuicConnectionPeer::GetUpdatedAckFrame(
38 QuicConnection* connection) {
39 return connection->GetUpdatedAckFrame();
40 }
41
42 // static
37 void QuicConnectionPeer::PopulateStopWaitingFrame( 43 void QuicConnectionPeer::PopulateStopWaitingFrame(
38 QuicConnection* connection, 44 QuicConnection* connection,
39 QuicStopWaitingFrame* stop_waiting) { 45 QuicStopWaitingFrame* stop_waiting) {
40 connection->PopulateStopWaitingFrame(stop_waiting); 46 connection->PopulateStopWaitingFrame(stop_waiting);
41 } 47 }
42 48
43 // static 49 // static
44 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor( 50 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor(
45 QuicConnection* connection) { 51 QuicConnection* connection) {
46 return connection->visitor_; 52 return connection->visitor_;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 261 }
256 262
257 // static 263 // static
258 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, 264 void QuicConnectionPeer::SetAckMode(QuicConnection* connection,
259 QuicConnection::AckMode ack_mode) { 265 QuicConnection::AckMode ack_mode) {
260 connection->ack_mode_ = ack_mode; 266 connection->ack_mode_ = ack_mode;
261 } 267 }
262 268
263 } // namespace test 269 } // namespace test
264 } // namespace net 270 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698