| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ |
| 7 | 7 |
| 8 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 class QuicConfig; | 12 class QuicConfig; |
| 13 | 13 |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 class QuicConfigPeer { | 16 class QuicConfigPeer { |
| 17 public: | 17 public: |
| 18 static void SetReceivedSocketReceiveBuffer(QuicConfig* config, | 18 static void SetReceivedSocketReceiveBuffer(QuicConfig* config, |
| 19 uint32 receive_buffer_bytes); | 19 uint32 receive_buffer_bytes); |
| 20 | 20 |
| 21 // TODO(rjshade): Remove when removing QUIC_VERSION_19. | |
| 22 static void SetReceivedInitialFlowControlWindow(QuicConfig* config, | |
| 23 uint32 window_bytes); | |
| 24 | |
| 25 static void SetReceivedInitialStreamFlowControlWindow(QuicConfig* config, | 21 static void SetReceivedInitialStreamFlowControlWindow(QuicConfig* config, |
| 26 uint32 window_bytes); | 22 uint32 window_bytes); |
| 27 | 23 |
| 28 static void SetReceivedInitialSessionFlowControlWindow(QuicConfig* config, | 24 static void SetReceivedInitialSessionFlowControlWindow(QuicConfig* config, |
| 29 uint32 window_bytes); | 25 uint32 window_bytes); |
| 30 | 26 |
| 31 static void SetReceivedConnectionOptions(QuicConfig* config, | 27 static void SetReceivedConnectionOptions(QuicConfig* config, |
| 32 const QuicTagVector& options); | 28 const QuicTagVector& options); |
| 33 | 29 |
| 34 static void SetReceivedBytesForConnectionId(QuicConfig* config, uint32 bytes); | 30 static void SetReceivedBytesForConnectionId(QuicConfig* config, uint32 bytes); |
| 35 | 31 |
| 36 private: | 32 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(QuicConfigPeer); | 33 DISALLOW_COPY_AND_ASSIGN(QuicConfigPeer); |
| 38 }; | 34 }; |
| 39 | 35 |
| 40 } // namespace test | 36 } // namespace test |
| 41 | 37 |
| 42 } // namespace net | 38 } // namespace net |
| 43 | 39 |
| 44 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ | 40 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ |
| OLD | NEW |