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"
13 void QuicConfigPeer::SetReceivedSocketReceiveBuffer(
15 uint32 receive_buffer_bytes
) {
16 config
->socket_receive_buffer_
.SetReceivedValue(receive_buffer_bytes
);
20 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
22 uint32 window_bytes
) {
23 config
->initial_stream_flow_control_window_bytes_
.SetReceivedValue(
28 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(
30 uint32 window_bytes
) {
31 config
->initial_session_flow_control_window_bytes_
.SetReceivedValue(
36 void QuicConfigPeer::SetReceivedConnectionOptions(
38 const QuicTagVector
& options
) {
39 config
->connection_options_
.SetReceivedValues(options
);
43 void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig
* config
,
45 config
->bytes_for_connection_id_
.SetReceivedValue(bytes
);