OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |