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

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

Issue 339803004: Introduce QUIC_VERSION_20: allowing endpoints to set different (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 return 1u; 579 return 1u;
580 } 580 }
581 581
582 MockEntropyCalculator::MockEntropyCalculator() {} 582 MockEntropyCalculator::MockEntropyCalculator() {}
583 583
584 MockEntropyCalculator::~MockEntropyCalculator() {} 584 MockEntropyCalculator::~MockEntropyCalculator() {}
585 585
586 QuicConfig DefaultQuicConfig() { 586 QuicConfig DefaultQuicConfig() {
587 QuicConfig config; 587 QuicConfig config;
588 config.SetDefaults(); 588 config.SetDefaults();
589 config.SetInitialFlowControlWindowToSend(kInitialFlowControlWindowForTest); 589 config.SetInitialFlowControlWindowToSend(
590 kInitialSessionFlowControlWindowForTest);
591 config.SetInitialStreamFlowControlWindowToSend(
592 kInitialStreamFlowControlWindowForTest);
593 config.SetInitialSessionFlowControlWindowToSend(
594 kInitialSessionFlowControlWindowForTest);
590 return config; 595 return config;
591 } 596 }
592 597
593 QuicVersionVector SupportedVersions(QuicVersion version) { 598 QuicVersionVector SupportedVersions(QuicVersion version) {
594 QuicVersionVector versions; 599 QuicVersionVector versions;
595 versions.push_back(version); 600 versions.push_back(version);
596 return versions; 601 return versions;
597 } 602 }
598 603
599 } // namespace test 604 } // namespace test
600 } // namespace net 605 } // 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