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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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_connection_peer.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::SetReceivedSocketReceiveBuffer( 13 void QuicConfigPeer::SetReceivedSocketReceiveBuffer(
14 QuicConfig* config, 14 QuicConfig* config,
15 uint32 receive_buffer_bytes) { 15 uint32_t receive_buffer_bytes) {
16 config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes); 16 config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes);
17 } 17 }
18 18
19 // static 19 // static
20 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow( 20 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
21 QuicConfig* config, 21 QuicConfig* config,
22 uint32 window_bytes) { 22 uint32_t window_bytes) {
23 config->initial_stream_flow_control_window_bytes_.SetReceivedValue( 23 config->initial_stream_flow_control_window_bytes_.SetReceivedValue(
24 window_bytes); 24 window_bytes);
25 } 25 }
26 26
27 // static 27 // static
28 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow( 28 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(
29 QuicConfig* config, 29 QuicConfig* config,
30 uint32 window_bytes) { 30 uint32_t window_bytes) {
31 config->initial_session_flow_control_window_bytes_.SetReceivedValue( 31 config->initial_session_flow_control_window_bytes_.SetReceivedValue(
32 window_bytes); 32 window_bytes);
33 } 33 }
34 34
35 // static 35 // static
36 void QuicConfigPeer::SetReceivedConnectionOptions( 36 void QuicConfigPeer::SetReceivedConnectionOptions(
37 QuicConfig* config, 37 QuicConfig* config,
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 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 } // namespace test 48 } // namespace test
49 } // namespace net 49 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698