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

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

Issue 25443002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix to change SendAlarm crash Created 7 years, 2 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // static 103 // static
104 QuicPacketEntropyHash QuicConnectionPeer::ReceivedEntropyHash( 104 QuicPacketEntropyHash QuicConnectionPeer::ReceivedEntropyHash(
105 QuicConnection* connection, 105 QuicConnection* connection,
106 QuicPacketSequenceNumber sequence_number) { 106 QuicPacketSequenceNumber sequence_number) {
107 return connection->received_packet_manager_.EntropyHash( 107 return connection->received_packet_manager_.EntropyHash(
108 sequence_number); 108 sequence_number);
109 } 109 }
110 110
111 // static 111 // static
112 bool QuicConnectionPeer::IsWriteBlocked(QuicConnection* connection) {
113 return connection->write_blocked_;
114 }
115
116 // static
117 void QuicConnectionPeer::SetIsWriteBlocked(QuicConnection* connection,
118 bool write_blocked) {
119 connection->write_blocked_ = write_blocked;
120 }
121
122 // static
112 bool QuicConnectionPeer::IsServer(QuicConnection* connection) { 123 bool QuicConnectionPeer::IsServer(QuicConnection* connection) {
113 return connection->is_server_; 124 return connection->is_server_;
114 } 125 }
115 126
116 // static 127 // static
117 void QuicConnectionPeer::SetIsServer(QuicConnection* connection, 128 void QuicConnectionPeer::SetIsServer(QuicConnection* connection,
118 bool is_server) { 129 bool is_server) {
119 connection->is_server_ = is_server; 130 connection->is_server_ = is_server;
120 QuicFramerPeer::SetIsServer(&connection->framer_, is_server); 131 QuicFramerPeer::SetIsServer(&connection->framer_, is_server);
121 } 132 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 QuicConnection* connection) { 176 QuicConnection* connection) {
166 return connection->retransmission_alarm_.get(); 177 return connection->retransmission_alarm_.get();
167 } 178 }
168 179
169 // static 180 // static
170 QuicAlarm* QuicConnectionPeer::GetSendAlarm(QuicConnection* connection) { 181 QuicAlarm* QuicConnectionPeer::GetSendAlarm(QuicConnection* connection) {
171 return connection->send_alarm_.get(); 182 return connection->send_alarm_.get();
172 } 183 }
173 184
174 // static 185 // static
186 QuicAlarm* QuicConnectionPeer::GetResumeWritesAlarm(
187 QuicConnection* connection) {
188 return connection->resume_writes_alarm_.get();
189 }
190
191 // static
175 QuicAlarm* QuicConnectionPeer::GetTimeoutAlarm(QuicConnection* connection) { 192 QuicAlarm* QuicConnectionPeer::GetTimeoutAlarm(QuicConnection* connection) {
176 return connection->timeout_alarm_.get(); 193 return connection->timeout_alarm_.get();
177 } 194 }
178 195
179 } // namespace test 196 } // namespace test
180 } // namespace net 197 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/tools/quic/quic_epoll_connection_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698