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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/quic_config_peer.cc ('k') | net/sdch/sdch_owner.h » ('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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 QuicPacketSequenceNumber sequence_number) const { 612 QuicPacketSequenceNumber sequence_number) const {
613 return 1u; 613 return 1u;
614 } 614 }
615 615
616 MockEntropyCalculator::MockEntropyCalculator() {} 616 MockEntropyCalculator::MockEntropyCalculator() {}
617 617
618 MockEntropyCalculator::~MockEntropyCalculator() {} 618 MockEntropyCalculator::~MockEntropyCalculator() {}
619 619
620 QuicConfig DefaultQuicConfig() { 620 QuicConfig DefaultQuicConfig() {
621 QuicConfig config; 621 QuicConfig config;
622 config.SetInitialFlowControlWindowToSend(
623 kInitialSessionFlowControlWindowForTest);
624 config.SetInitialStreamFlowControlWindowToSend( 622 config.SetInitialStreamFlowControlWindowToSend(
625 kInitialStreamFlowControlWindowForTest); 623 kInitialStreamFlowControlWindowForTest);
626 config.SetInitialSessionFlowControlWindowToSend( 624 config.SetInitialSessionFlowControlWindowToSend(
627 kInitialSessionFlowControlWindowForTest); 625 kInitialSessionFlowControlWindowForTest);
628 return config; 626 return config;
629 } 627 }
630 628
631 QuicVersionVector SupportedVersions(QuicVersion version) { 629 QuicVersionVector SupportedVersions(QuicVersion version) {
632 QuicVersionVector versions; 630 QuicVersionVector versions;
633 versions.push_back(version); 631 versions.push_back(version);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 // called. 676 // called.
679 factory_->current_writer_ = this; 677 factory_->current_writer_ = this;
680 return QuicPerConnectionPacketWriter::WritePacket(buffer, 678 return QuicPerConnectionPacketWriter::WritePacket(buffer,
681 buf_len, 679 buf_len,
682 self_address, 680 self_address,
683 peer_address); 681 peer_address);
684 } 682 }
685 683
686 } // namespace test 684 } // namespace test
687 } // namespace net 685 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_peer.cc ('k') | net/sdch/sdch_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698