blob: 3151d84b864a351421887d963e330a2c4706d4e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 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_SESSION_PEER_H_
#define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
#include "net/quic/quic_protocol.h"
#include "net/spdy/write_blocked_list.h"
namespace net {
class QuicDataStream;
class QuicSession;
class ReliableQuicStream;
namespace test {
class QuicSessionPeer {
public:
static void SetNextStreamId(QuicSession* session, QuicStreamId id);
static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams);
static WriteBlockedList<QuicStreamId>* GetWriteblockedStreams(
QuicSession* session);
static QuicDataStream* GetIncomingReliableStream(QuicSession* session,
QuicStreamId stream_id);
private:
DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer);
};
} // namespace test
} // namespace net
#endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
|