mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_
|
|
#define NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_
|
|
|
|
#include "base/macros.h"
|
|
#include "net/quic/core/quic_config.h"
|
|
#include "net/quic/core/quic_packets.h"
|
|
|
|
namespace net {
|
|
|
|
class QuicConfig;
|
|
|
|
namespace test {
|
|
|
|
class QuicConfigPeer {
|
|
public:
|
|
static void SetReceivedSocketReceiveBuffer(QuicConfig* config,
|
|
uint32_t receive_buffer_bytes);
|
|
|
|
static void SetReceivedInitialStreamFlowControlWindow(QuicConfig* config,
|
|
uint32_t window_bytes);
|
|
|
|
static void SetReceivedInitialSessionFlowControlWindow(QuicConfig* config,
|
|
uint32_t window_bytes);
|
|
|
|
static void SetReceivedConnectionOptions(QuicConfig* config,
|
|
const QuicTagVector& options);
|
|
|
|
static void SetReceivedBytesForConnectionId(QuicConfig* config,
|
|
uint32_t bytes);
|
|
|
|
static void SetReceivedDisableConnectionMigration(QuicConfig* config);
|
|
|
|
static void SetReceivedMaxIncomingDynamicStreams(QuicConfig* config,
|
|
uint32_t max_streams);
|
|
|
|
static void SetConnectionOptionsToSend(QuicConfig* config,
|
|
const QuicTagVector& options);
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(QuicConfigPeer);
|
|
};
|
|
|
|
} // namespace test
|
|
|
|
} // namespace net
|
|
|
|
#endif // NET_QUIC_TEST_TOOLS_QUIC_CONFIG_PEER_H_
|