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

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

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 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/quic/test_tools/simple_quic_framer.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 "base/strings/string_piece.h"
8 #include "net/quic/crypto/crypto_framer.h" 9 #include "net/quic/crypto/crypto_framer.h"
9 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
10 #include "net/quic/crypto/crypto_utils.h" 11 #include "net/quic/crypto/crypto_utils.h"
11 #include "net/quic/crypto/null_encrypter.h" 12 #include "net/quic/crypto/null_encrypter.h"
12 #include "net/quic/crypto/quic_decrypter.h" 13 #include "net/quic/crypto/quic_decrypter.h"
13 #include "net/quic/crypto/quic_encrypter.h" 14 #include "net/quic/crypto/quic_encrypter.h"
14 #include "net/quic/quic_framer.h" 15 #include "net/quic/quic_framer.h"
15 #include "net/quic/quic_packet_creator.h" 16 #include "net/quic/quic_packet_creator.h"
17 #include "net/spdy/spdy_frame_builder.h"
16 18
19 using base::StringPiece;
17 using std::max; 20 using std::max;
18 using std::min; 21 using std::min;
19 using std::string; 22 using std::string;
20 using testing::_; 23 using testing::_;
21 24
22 namespace net { 25 namespace net {
23 namespace test { 26 namespace test {
24 27
25 MockFramerVisitor::MockFramerVisitor() { 28 MockFramerVisitor::MockFramerVisitor() {
26 // By default, we want to accept packets. 29 // By default, we want to accept packets.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // or the ack frame; that all our test are configured correctly. 372 // or the ack frame; that all our test are configured correctly.
370 DCHECK_GE(packet_length, ack_length); 373 DCHECK_GE(packet_length, ack_length);
371 return packet_length; 374 return packet_length;
372 } 375 }
373 376
374 QuicPacketEntropyHash TestEntropyCalculator::ReceivedEntropyHash( 377 QuicPacketEntropyHash TestEntropyCalculator::ReceivedEntropyHash(
375 QuicPacketSequenceNumber sequence_number) const { 378 QuicPacketSequenceNumber sequence_number) const {
376 return 1u; 379 return 1u;
377 } 380 }
378 381
382 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) {
383 data.AppendToString(&data_);
384 return true;
385 }
386
379 } // namespace test 387 } // namespace test
380 } // namespace net 388 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698