Home | History | Annotate | Download | only in test_tools
      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/blocked_list.h"
      9 #include "net/quic/quic_protocol.h"
     10 
     11 namespace net {
     12 
     13 class QuicSession;
     14 class ReliableQuicStream;
     15 
     16 namespace test {
     17 
     18 class QuicSessionPeer {
     19  public:
     20   static void SetNextStreamId(QuicSession* session, QuicStreamId id);
     21   static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams);
     22   static ReliableQuicStream* CreateIncomingReliableStream(QuicSession* session,
     23                                                           QuicStreamId id);
     24   static BlockedList<QuicStreamId>* GetWriteblockedStreams(
     25       QuicSession* session);
     26 
     27  private:
     28   DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer);
     29 };
     30 
     31 }  // namespace test
     32 }  // namespace net
     33 
     34 #endif  // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
     35