quic_session_peer.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
1// Copyright (c) 2012 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. 4 5#ifndef NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 6#define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 7 8#include "net/quic/quic_protocol.h" 9#include "net/quic/quic_write_blocked_list.h" 10 11namespace net { 12 13class QuicDataStream; 14class QuicHeadersStream; 15class QuicSession; 16 17namespace test { 18 19class QuicSessionPeer { 20 public: 21 static void SetNextStreamId(QuicSession* session, QuicStreamId id); 22 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams); 23 static QuicHeadersStream* GetHeadersStream(QuicSession* session); 24 static QuicWriteBlockedList* GetWriteblockedStreams(QuicSession* session); 25 static QuicDataStream* GetIncomingDataStream(QuicSession* session, 26 QuicStreamId stream_id); 27 28 private: 29 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); 30}; 31 32} // namespace test 33} // namespace net 34 35#endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 36