| 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_config.h" |
| 8 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
| 9 | 10 |
| 10 namespace net { | 11 namespace net { |
| 11 | 12 |
| 12 class QuicConfig; | 13 class QuicConfig; |
| 13 | 14 |
| 14 namespace test { | 15 namespace test { |
| 15 | 16 |
| 16 class QuicConfigPeer { | 17 class QuicConfigPeer { |
| 17 public: | 18 public: |
| 18 static void SetReceivedSocketReceiveBuffer(QuicConfig* config, | 19 static void SetReceivedSocketReceiveBuffer(QuicConfig* config, |
| 19 uint32 receive_buffer_bytes); | 20 uint32 receive_buffer_bytes); |
| 20 | 21 |
| 21 static void SetReceivedInitialStreamFlowControlWindow(QuicConfig* config, | 22 static void SetReceivedInitialStreamFlowControlWindow(QuicConfig* config, |
| 22 uint32 window_bytes); | 23 uint32 window_bytes); |
| 23 | 24 |
| 24 static void SetReceivedInitialSessionFlowControlWindow(QuicConfig* config, | 25 static void SetReceivedInitialSessionFlowControlWindow(QuicConfig* config, |
| 25 uint32 window_bytes); | 26 uint32 window_bytes); |
| 26 | 27 |
| 27 static void SetReceivedConnectionOptions(QuicConfig* config, | 28 static void SetReceivedConnectionOptions(QuicConfig* config, |
| 28 const QuicTagVector& options); | 29 const QuicTagVector& options); |
| 29 | 30 |
| 30 static void SetReceivedBytesForConnectionId(QuicConfig* config, uint32 bytes); | 31 static void SetReceivedBytesForConnectionId(QuicConfig* config, uint32 bytes); |
| 31 | 32 |
| 33 static QuicTag CongestionFeedback(QuicConfig* config); |
| 34 |
| 32 private: | 35 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(QuicConfigPeer); | 36 DISALLOW_COPY_AND_ASSIGN(QuicConfigPeer); |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } // namespace test | 39 } // namespace test |
| 37 | 40 |
| 38 } // namespace net | 41 } // namespace net |
| 39 | 42 |
| 40 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ | 43 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_ |
| OLD | NEW |