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

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

Issue 23691073: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compiler/unittests fix Created 7 years, 3 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_test_utils.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_test_utils.h" 5 #include "net/quic/test_tools/quic_test_utils.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/crypto/crypto_framer.h" 8 #include "net/quic/crypto/crypto_framer.h"
9 #include "net/quic/crypto/crypto_handshake.h" 9 #include "net/quic/crypto/crypto_handshake.h"
10 #include "net/quic/crypto/crypto_utils.h" 10 #include "net/quic/crypto/crypto_utils.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 PacketSavingConnection::~PacketSavingConnection() { 237 PacketSavingConnection::~PacketSavingConnection() {
238 STLDeleteElements(&packets_); 238 STLDeleteElements(&packets_);
239 STLDeleteElements(&encrypted_packets_); 239 STLDeleteElements(&encrypted_packets_);
240 } 240 }
241 241
242 bool PacketSavingConnection::SendOrQueuePacket( 242 bool PacketSavingConnection::SendOrQueuePacket(
243 EncryptionLevel level, 243 EncryptionLevel level,
244 QuicPacketSequenceNumber sequence_number, 244 QuicPacketSequenceNumber sequence_number,
245 QuicPacket* packet, 245 QuicPacket* packet,
246 QuicPacketEntropyHash entropy_hash, 246 QuicPacketEntropyHash /* entropy_hash */,
247 HasRetransmittableData retransmittable) { 247 HasRetransmittableData /* retransmittable */,
248 Force /* forced */) {
248 packets_.push_back(packet); 249 packets_.push_back(packet);
249 QuicEncryptedPacket* encrypted = 250 QuicEncryptedPacket* encrypted =
250 framer_.EncryptPacket(level, sequence_number, *packet); 251 framer_.EncryptPacket(level, sequence_number, *packet);
251 encrypted_packets_.push_back(encrypted); 252 encrypted_packets_.push_back(encrypted);
252 return true; 253 return true;
253 } 254 }
254 255
255 MockSession::MockSession(QuicConnection* connection, bool is_server) 256 MockSession::MockSession(QuicConnection* connection, bool is_server)
256 : QuicSession(connection, DefaultQuicConfig(), is_server) { 257 : QuicSession(connection, DefaultQuicConfig(), is_server) {
257 ON_CALL(*this, WritevData(_, _, _, _, _)) 258 ON_CALL(*this, WritevData(_, _, _, _, _))
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 data.AppendToString(&data_); 443 data.AppendToString(&data_);
443 return true; 444 return true;
444 } 445 }
445 446
446 void TestDecompressorVisitor::OnDecompressionError() { 447 void TestDecompressorVisitor::OnDecompressionError() {
447 error_ = true; 448 error_ = true;
448 } 449 }
449 450
450 } // namespace test 451 } // namespace test
451 } // namespace net 452 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.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