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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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') | net/quic/test_tools/quic_session_peer.h » ('j') | 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/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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 connection->self_address_ = self_address; 147 connection->self_address_ = self_address;
148 } 148 }
149 149
150 // static 150 // static
151 void QuicConnectionPeer::SetPeerAddress(QuicConnection* connection, 151 void QuicConnectionPeer::SetPeerAddress(QuicConnection* connection,
152 const IPEndPoint& peer_address) { 152 const IPEndPoint& peer_address) {
153 connection->peer_address_ = peer_address; 153 connection->peer_address_ = peer_address;
154 } 154 }
155 155
156 // static 156 // static
157 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) {
158 return connection->silent_close_enabled_;
159 }
160
161 // static
157 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, 162 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection,
158 QuicFramer* framer) { 163 QuicFramer* framer) {
159 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); 164 QuicFramerPeer::SwapCrypters(framer, &connection->framer_);
160 } 165 }
161 166
162 // static 167 // static
163 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( 168 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper(
164 QuicConnection* connection) { 169 QuicConnection* connection) {
165 return connection->helper_; 170 return connection->helper_;
166 } 171 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } 254 }
250 255
251 // static 256 // static
252 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( 257 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket(
253 QuicConnection* connection, QuicPacketSequenceNumber number) { 258 QuicConnection* connection, QuicPacketSequenceNumber number) {
254 connection->sequence_number_of_last_sent_packet_ = number; 259 connection->sequence_number_of_last_sent_packet_ = number;
255 } 260 }
256 261
257 } // namespace test 262 } // namespace test
258 } // namespace net 263 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/quic/test_tools/quic_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698