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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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.h » ('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,
14 size_t initial_window) {
15 config->initial_congestion_window_.SetReceivedValue(initial_window);
16 }
17
18 // static
19 void QuicConfigPeer::SetReceivedSocketReceiveBuffer( 13 void QuicConfigPeer::SetReceivedSocketReceiveBuffer(
20 QuicConfig* config, 14 QuicConfig* config,
21 uint32 receive_buffer_bytes) { 15 uint32 receive_buffer_bytes) {
22 config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes); 16 config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes);
23 } 17 }
24 18
25 // static 19 // static
26 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config, 20 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config,
27 uint32 window_bytes) { 21 uint32 window_bytes) {
28 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes); 22 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes);
(...skipping 23 matching lines...) Expand all
52 } 46 }
53 47
54 // static 48 // static
55 void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig* config, 49 void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig* config,
56 uint32 bytes) { 50 uint32 bytes) {
57 config->bytes_for_connection_id_.SetReceivedValue(bytes); 51 config->bytes_for_connection_id_.SetReceivedValue(bytes);
58 } 52 }
59 53
60 } // namespace test 54 } // namespace test
61 } // namespace net 55 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698