OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CLIENT_SESSION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CLIENT_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 ChannelIDKey; | |
13 class QuicClientSession; | 12 class QuicClientSession; |
14 | 13 |
15 namespace test { | 14 namespace test { |
16 | 15 |
17 class QuicClientSessionPeer { | 16 class QuicClientSessionPeer { |
18 public: | 17 public: |
19 static void SetMaxOpenStreams(QuicClientSession* session, | 18 static void SetMaxOpenStreams(QuicClientSession* session, |
20 size_t max_streams, | 19 size_t max_streams, |
21 size_t default_streams); | 20 size_t default_streams); |
22 | 21 |
23 static void SetChannelIDKey(QuicClientSession* session, | 22 static void SetChannelIDSent(QuicClientSession* session, |
24 ChannelIDKey* channel_id_key); | 23 bool channel_id_sent); |
25 | 24 |
26 private: | 25 private: |
27 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionPeer); | 26 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionPeer); |
28 }; | 27 }; |
29 | 28 |
30 } // namespace test | 29 } // namespace test |
31 } // namespace net | 30 } // namespace net |
32 | 31 |
33 #endif // NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ | 32 #endif // NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ |
OLD | NEW |