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