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