| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |