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

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

Issue 648933003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with TOT Created 6 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
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.cc ('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/sha1.h" 7 #include "base/sha1.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "net/quic/crypto/crypto_framer.h" 10 #include "net/quic/crypto/crypto_framer.h"
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 QuicPacketSequenceNumber sequence_number) const { 602 QuicPacketSequenceNumber sequence_number) const {
603 return 1u; 603 return 1u;
604 } 604 }
605 605
606 MockEntropyCalculator::MockEntropyCalculator() {} 606 MockEntropyCalculator::MockEntropyCalculator() {}
607 607
608 MockEntropyCalculator::~MockEntropyCalculator() {} 608 MockEntropyCalculator::~MockEntropyCalculator() {}
609 609
610 QuicConfig DefaultQuicConfig() { 610 QuicConfig DefaultQuicConfig() {
611 QuicConfig config; 611 QuicConfig config;
612 config.SetDefaults();
613 config.SetInitialFlowControlWindowToSend( 612 config.SetInitialFlowControlWindowToSend(
614 kInitialSessionFlowControlWindowForTest); 613 kInitialSessionFlowControlWindowForTest);
615 config.SetInitialStreamFlowControlWindowToSend( 614 config.SetInitialStreamFlowControlWindowToSend(
616 kInitialStreamFlowControlWindowForTest); 615 kInitialStreamFlowControlWindowForTest);
617 config.SetInitialSessionFlowControlWindowToSend( 616 config.SetInitialSessionFlowControlWindowToSend(
618 kInitialSessionFlowControlWindowForTest); 617 kInitialSessionFlowControlWindowForTest);
619 return config; 618 return config;
620 } 619 }
621 620
622 QuicVersionVector SupportedVersions(QuicVersion version) { 621 QuicVersionVector SupportedVersions(QuicVersion version) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 // called. 668 // called.
670 factory_->current_writer_ = this; 669 factory_->current_writer_ = this;
671 return QuicPerConnectionPacketWriter::WritePacket(buffer, 670 return QuicPerConnectionPacketWriter::WritePacket(buffer,
672 buf_len, 671 buf_len,
673 self_address, 672 self_address,
674 peer_address); 673 peer_address);
675 } 674 }
676 675
677 } // namespace test 676 } // namespace test
678 } // namespace net 677 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698