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