| 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |