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 "net/quic/core/congestion_control/send_algorithm_interface.h" | 7 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
8 #include "net/quic/core/quic_flags.h" | 8 #include "net/quic/core/quic_flags.h" |
9 #include "net/quic/core/quic_packet_writer.h" | 9 #include "net/quic/core/quic_packet_writer.h" |
10 #include "net/quic/core/quic_received_packet_manager.h" | 10 #include "net/quic/core/quic_received_packet_manager.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 | 110 |
111 // static | 111 // static |
112 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, | 112 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, |
113 QuicFramer* framer) { | 113 QuicFramer* framer) { |
114 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); | 114 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); |
115 } | 115 } |
116 | 116 |
117 // static | 117 // static |
118 void QuicConnectionPeer::SetCurrentPacket(QuicConnection* connection, | 118 void QuicConnectionPeer::SetCurrentPacket(QuicConnection* connection, |
119 base::StringPiece current_packet) { | 119 QuicStringPiece current_packet) { |
120 connection->current_packet_data_ = current_packet.data(); | 120 connection->current_packet_data_ = current_packet.data(); |
121 connection->last_size_ = current_packet.size(); | 121 connection->last_size_ = current_packet.size(); |
122 } | 122 } |
123 | 123 |
124 // static | 124 // static |
125 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( | 125 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( |
126 QuicConnection* connection) { | 126 QuicConnection* connection) { |
127 return connection->helper_; | 127 return connection->helper_; |
128 } | 128 } |
129 | 129 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 258 } |
259 | 259 |
260 // static | 260 // static |
261 void QuicConnectionPeer::SetNoStopWaitingFrames(QuicConnection* connection, | 261 void QuicConnectionPeer::SetNoStopWaitingFrames(QuicConnection* connection, |
262 bool no_stop_waiting_frames) { | 262 bool no_stop_waiting_frames) { |
263 connection->no_stop_waiting_frames_ = no_stop_waiting_frames; | 263 connection->no_stop_waiting_frames_ = no_stop_waiting_frames; |
264 } | 264 } |
265 | 265 |
266 } // namespace test | 266 } // namespace test |
267 } // namespace net | 267 } // namespace net |
OLD | NEW |