| 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 26 matching lines...) Expand all Loading... |
| 37 window_bytes); | 37 window_bytes); |
| 38 } | 38 } |
| 39 | 39 |
| 40 // static | 40 // static |
| 41 void QuicConfigPeer::SetReceivedConnectionOptions( | 41 void QuicConfigPeer::SetReceivedConnectionOptions( |
| 42 QuicConfig* config, | 42 QuicConfig* config, |
| 43 const QuicTagVector& options) { | 43 const QuicTagVector& options) { |
| 44 config->connection_options_.SetReceivedValues(options); | 44 config->connection_options_.SetReceivedValues(options); |
| 45 } | 45 } |
| 46 | 46 |
| 47 // static |
| 48 void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig* config, |
| 49 uint32 bytes) { |
| 50 config->bytes_for_connection_id_.SetReceivedValue(bytes); |
| 51 } |
| 52 |
| 47 } // namespace test | 53 } // namespace test |
| 48 } // namespace net | 54 } // namespace net |
| OLD | NEW |