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/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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 QuicVersionVector versions) { | 241 QuicVersionVector versions) { |
242 connection->framer_.SetSupportedVersions(versions); | 242 connection->framer_.SetSupportedVersions(versions); |
243 } | 243 } |
244 | 244 |
245 // static | 245 // static |
246 QuicPacketHeader* QuicConnectionPeer::GetLastHeader( | 246 QuicPacketHeader* QuicConnectionPeer::GetLastHeader( |
247 QuicConnection* connection) { | 247 QuicConnection* connection) { |
248 return &connection->last_header_; | 248 return &connection->last_header_; |
249 } | 249 } |
250 | 250 |
| 251 // static |
| 252 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( |
| 253 QuicConnection* connection, QuicPacketSequenceNumber number) { |
| 254 connection->sequence_number_of_last_sent_packet_ = number; |
| 255 } |
| 256 |
251 } // namespace test | 257 } // namespace test |
252 } // namespace net | 258 } // namespace net |
OLD | NEW |