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