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