| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 config->connection_migration_disabled_.SetReceivedValue(1); | 51 config->connection_migration_disabled_.SetReceivedValue(1); |
| 52 } | 52 } |
| 53 | 53 |
| 54 // static | 54 // static |
| 55 void QuicConfigPeer::SetReceivedMaxIncomingDynamicStreams( | 55 void QuicConfigPeer::SetReceivedMaxIncomingDynamicStreams( |
| 56 QuicConfig* config, | 56 QuicConfig* config, |
| 57 uint32_t max_streams) { | 57 uint32_t max_streams) { |
| 58 config->max_incoming_dynamic_streams_.SetReceivedValue(max_streams); | 58 config->max_incoming_dynamic_streams_.SetReceivedValue(max_streams); |
| 59 } | 59 } |
| 60 | 60 |
| 61 // static |
| 62 void QuicConfigPeer::SetReceivedAlternateServerAddress(QuicConfig* config, |
| 63 IPEndPoint addr) { |
| 64 config->alternate_server_address_.SetReceivedValue(addr); |
| 65 } |
| 66 |
| 61 } // namespace test | 67 } // namespace test |
| 62 } // namespace net | 68 } // namespace net |
| OLD | NEW |