Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: net/quic/test_tools/quic_config_peer.cc

Issue 2124753005: Implements migration of a QUIC connection to a different destination address if specified by the se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write-error
Patch Set: fixing linker error. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 61 // static
62
63 void QuicConfigPeer::SetConnectionOptionsToSend(QuicConfig* config, 62 void QuicConfigPeer::SetConnectionOptionsToSend(QuicConfig* config,
64 const QuicTagVector& options) { 63 const QuicTagVector& options) {
65 config->SetConnectionOptionsToSend(options); 64 config->SetConnectionOptionsToSend(options);
66 } 65 }
67 66
67 // static
68 void QuicConfigPeer::SetReceivedForceHolBlocking(QuicConfig* config) { 68 void QuicConfigPeer::SetReceivedForceHolBlocking(QuicConfig* config) {
69 config->force_hol_blocking_.SetReceivedValue(1); 69 config->force_hol_blocking_.SetReceivedValue(1);
70 } 70 }
71 71
72 // static
73 void QuicConfigPeer::SetReceivedAlternateServerAddress(QuicConfig* config,
74 IPEndPoint addr) {
75 config->alternate_server_address_.SetReceivedValue(addr);
76 }
77
72 } // namespace test 78 } // namespace test
73 } // namespace net 79 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698