| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "net/quic/core/quic_protocol.h" | 14 #include "net/quic/core/quic_protocol.h" |
| 15 #include "net/quic/core/quic_session.h" | 15 #include "net/quic/core/quic_session.h" |
| 16 #include "net/quic/core/quic_write_blocked_list.h" | 16 #include "net/quic/core/quic_write_blocked_list.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 class QuicCryptoStream; | 20 class QuicCryptoStream; |
| 21 class QuicHeadersStream; | |
| 22 class QuicSession; | 21 class QuicSession; |
| 23 class QuicSpdyStream; | |
| 24 class QuicStream; | 22 class QuicStream; |
| 25 | 23 |
| 26 namespace test { | 24 namespace test { |
| 27 | 25 |
| 28 class QuicSessionPeer { | 26 class QuicSessionPeer { |
| 29 public: | 27 public: |
| 30 static QuicStreamId GetNextOutgoingStreamId(QuicSession* session); | 28 static QuicStreamId GetNextOutgoingStreamId(QuicSession* session); |
| 31 static void SetNextOutgoingStreamId(QuicSession* session, QuicStreamId id); | 29 static void SetNextOutgoingStreamId(QuicSession* session, QuicStreamId id); |
| 32 static void SetMaxOpenIncomingStreams(QuicSession* session, | 30 static void SetMaxOpenIncomingStreams(QuicSession* session, |
| 33 uint32_t max_streams); | 31 uint32_t max_streams); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 55 | 53 |
| 56 private: | 54 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); | 55 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace test | 58 } // namespace test |
| 61 | 59 |
| 62 } // namespace net | 60 } // namespace net |
| 63 | 61 |
| 64 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ | 62 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ |
| OLD | NEW |