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