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

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

Issue 17302002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/tools/quic/end_to_end_test.cc » ('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/quic_congestion_manager.h" 8 #include "net/quic/congestion_control/quic_congestion_manager.h"
9 #include "net/quic/congestion_control/receive_algorithm_interface.h" 9 #include "net/quic/congestion_control/receive_algorithm_interface.h"
10 #include "net/quic/congestion_control/send_algorithm_interface.h" 10 #include "net/quic/congestion_control/send_algorithm_interface.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 // static 117 // static
118 void QuicConnectionPeer::SetIsServer(QuicConnection* connection, 118 void QuicConnectionPeer::SetIsServer(QuicConnection* connection,
119 bool is_server) { 119 bool is_server) {
120 connection->is_server_ = is_server; 120 connection->is_server_ = is_server;
121 QuicFramerPeer::SetIsServer(&connection->framer_, is_server); 121 QuicFramerPeer::SetIsServer(&connection->framer_, is_server);
122 } 122 }
123 123
124 // static 124 // static
125 void QuicConnectionPeer::SetSelfAddress(QuicConnection* connection,
126 const IPEndPoint& self_address) {
127 connection->self_address_ = self_address;
128 }
129
130 // static
125 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, 131 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection,
126 QuicFramer* framer) { 132 QuicFramer* framer) {
127 framer->SwapCryptersForTest(&connection->framer_); 133 framer->SwapCryptersForTest(&connection->framer_);
128 } 134 }
129 135
130 // static 136 // static
131 void QuicConnectionPeer:: SetMaxPacketsPerRetransmissionAlarm( 137 void QuicConnectionPeer:: SetMaxPacketsPerRetransmissionAlarm(
132 QuicConnection* connection, 138 QuicConnection* connection,
133 int max_packets) { 139 int max_packets) {
134 connection->max_packets_per_retransmission_alarm_ = max_packets; 140 connection->max_packets_per_retransmission_alarm_ = max_packets;
135 } 141 }
136 142
137 // static 143 // static
138 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( 144 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper(
139 QuicConnection* connection) { 145 QuicConnection* connection) {
140 return connection->helper_.get(); 146 return connection->helper_.get();
141 } 147 }
142 148
143 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, 149 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection,
144 int fec_group) { 150 int fec_group) {
145 connection->last_header_.fec_group = fec_group; 151 connection->last_header_.fec_group = fec_group;
146 return connection->GetFecGroup(); 152 return connection->GetFecGroup();
147 } 153 }
148 154
149 } // namespace test 155 } // namespace test
150 } // namespace net 156 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698