| 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 <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "net/quic/quic_protocol.h" | 11 #include "net/quic/quic_protocol.h" |
| 12 #include "net/quic/quic_session.h" | 12 #include "net/quic/quic_session.h" |
| 13 #include "net/quic/quic_write_blocked_list.h" | 13 #include "net/quic/quic_write_blocked_list.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 class QuicCryptoStream; | 17 class QuicCryptoStream; |
| 18 class QuicDataStream; | |
| 19 class QuicHeadersStream; | 18 class QuicHeadersStream; |
| 20 class QuicSession; | 19 class QuicSession; |
| 20 class QuicSpdyStream; |
| 21 class ReliableQuicStream; | 21 class ReliableQuicStream; |
| 22 | 22 |
| 23 namespace test { | 23 namespace test { |
| 24 | 24 |
| 25 class QuicSessionPeer { | 25 class QuicSessionPeer { |
| 26 public: | 26 public: |
| 27 static QuicStreamId GetNextStreamId(QuicSession* session); | 27 static QuicStreamId GetNextStreamId(QuicSession* session); |
| 28 static void SetNextStreamId(QuicSession* session, QuicStreamId id); | 28 static void SetNextStreamId(QuicSession* session, QuicStreamId id); |
| 29 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams); | 29 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams); |
| 30 static QuicCryptoStream* GetCryptoStream(QuicSession* session); | 30 static QuicCryptoStream* GetCryptoStream(QuicSession* session); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); | 48 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace test | 51 } // namespace test |
| 52 | 52 |
| 53 } // namespace net | 53 } // namespace net |
| 54 | 54 |
| 55 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ | 55 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ |
| OLD | NEW |