Land Recent QUIC Changes.
[chromium-blink-merge.git] / net / quic / test_tools / quic_config_peer.cc
blobd0f5bfd91c2706f34c181a388233b03c04a0526b
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
3 // found in the LICENSE file.
5 #include "net/quic/test_tools/quic_config_peer.h"
7 #include "net/quic/quic_config.h"
9 namespace net {
10 namespace test {
12 // static
13 void QuicConfigPeer::SetReceivedSocketReceiveBuffer(
14 QuicConfig* config,
15 uint32 receive_buffer_bytes) {
16 config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes);
19 // static
20 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config,
21 uint32 window_bytes) {
22 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes);
25 // static
26 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
27 QuicConfig* config,
28 uint32 window_bytes) {
29 config->initial_stream_flow_control_window_bytes_.SetReceivedValue(
30 window_bytes);
33 // static
34 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(
35 QuicConfig* config,
36 uint32 window_bytes) {
37 config->initial_session_flow_control_window_bytes_.SetReceivedValue(
38 window_bytes);
41 // static
42 void QuicConfigPeer::SetReceivedConnectionOptions(
43 QuicConfig* config,
44 const QuicTagVector& options) {
45 config->connection_options_.SetReceivedValues(options);
48 // static
49 void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig* config,
50 uint32 bytes) {
51 config->bytes_for_connection_id_.SetReceivedValue(bytes);
54 } // namespace test
55 } // namespace net