OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ |
7 | 7 |
8 #include "net/quic/blocked_list.h" | |
9 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
10 | 9 |
11 namespace net { | 10 namespace net { |
12 | 11 |
13 class QuicSession; | 12 class QuicSession; |
14 class ReliableQuicStream; | |
15 | 13 |
16 namespace test { | 14 namespace test { |
17 | 15 |
18 class QuicSessionPeer { | 16 class QuicSessionPeer { |
19 public: | 17 public: |
20 static void SetNextStreamId(QuicSession* session, QuicStreamId id); | 18 static void SetNextStreamId(QuicSession* session, QuicStreamId id); |
21 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams); | 19 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 | 20 |
27 private: | 21 private: |
28 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); | 22 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); |
29 }; | 23 }; |
30 | 24 |
31 } // namespace test | 25 } // namespace test |
32 } // namespace net | 26 } // namespace net |
33 | 27 |
34 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ | 28 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ |
OLD | NEW |