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 #include "net/quic/test_tools/quic_config_peer.h" | 5 #include "net/quic/test_tools/quic_config_peer.h" |
6 | 6 |
7 #include "net/quic/quic_config.h" | 7 #include "net/quic/quic_config.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 namespace test { | 10 namespace test { |
(...skipping 23 matching lines...) Expand all Loading... |
34 window_bytes); | 34 window_bytes); |
35 } | 35 } |
36 | 36 |
37 // static | 37 // static |
38 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow( | 38 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow( |
39 QuicConfig* config, uint32 window_bytes) { | 39 QuicConfig* config, uint32 window_bytes) { |
40 config->initial_session_flow_control_window_bytes_.SetReceivedValue( | 40 config->initial_session_flow_control_window_bytes_.SetReceivedValue( |
41 window_bytes); | 41 window_bytes); |
42 } | 42 } |
43 | 43 |
| 44 // static |
| 45 void QuicConfigPeer::SetReceivedConnectionOptions(QuicConfig* config, |
| 46 const QuicTagVector options) { |
| 47 config->connection_options_.SetReceivedValues(options); |
| 48 } |
| 49 |
44 } // namespace test | 50 } // namespace test |
45 } // namespace net | 51 } // namespace net |
OLD | NEW |