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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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
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 "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
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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/quic/test_tools/quic_crypto_server_config_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698