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

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

Issue 605733006: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Patch Set 3 Created 6 years, 2 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') | net/quic/test_tools/quic_test_utils.cc » ('j') | 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 {
11 11
12 // static 12 // static
13 void QuicConfigPeer::SetReceivedInitialWindow(QuicConfig* config, 13 void QuicConfigPeer::SetReceivedInitialWindow(QuicConfig* config,
14 size_t initial_window) { 14 size_t initial_window) {
15 config->initial_congestion_window_.SetReceivedValue(initial_window); 15 config->initial_congestion_window_.SetReceivedValue(initial_window);
16 } 16 }
17 17
18 // static 18 // static
19 void QuicConfigPeer::SetReceivedLossDetection(QuicConfig* config,
20 QuicTag loss_detection) {
21 config->loss_detection_.SetReceivedValue(loss_detection);
22 }
23
24 // static
25 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config, 19 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config,
26 uint32 window_bytes) { 20 uint32 window_bytes) {
27 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes); 21 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes);
28 } 22 }
29 23
30 // static 24 // static
31 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow( 25 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
32 QuicConfig* config, 26 QuicConfig* config,
33 uint32 window_bytes) { 27 uint32 window_bytes) {
34 config->initial_stream_flow_control_window_bytes_.SetReceivedValue( 28 config->initial_stream_flow_control_window_bytes_.SetReceivedValue(
(...skipping 10 matching lines...) Expand all
45 39
46 // static 40 // static
47 void QuicConfigPeer::SetReceivedConnectionOptions( 41 void QuicConfigPeer::SetReceivedConnectionOptions(
48 QuicConfig* config, 42 QuicConfig* config,
49 const QuicTagVector& options) { 43 const QuicTagVector& options) {
50 config->connection_options_.SetReceivedValues(options); 44 config->connection_options_.SetReceivedValues(options);
51 } 45 }
52 46
53 } // namespace test 47 } // namespace test
54 } // namespace net 48 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698