| 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_CHROMIUM_CLIENT_SESSION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "net/quic/quic_protocol.h" | 13 #include "net/quic/core/quic_protocol.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 class QuicChromiumClientSession; | 17 class QuicChromiumClientSession; |
| 18 | 18 |
| 19 namespace test { | 19 namespace test { |
| 20 | 20 |
| 21 class QuicChromiumClientSessionPeer { | 21 class QuicChromiumClientSessionPeer { |
| 22 public: | 22 public: |
| 23 static void SetMaxOpenStreams(QuicChromiumClientSession* session, | 23 static void SetMaxOpenStreams(QuicChromiumClientSession* session, |
| 24 size_t max_streams, | 24 size_t max_streams, |
| 25 size_t default_streams); | 25 size_t default_streams); |
| 26 | 26 |
| 27 static void SetChannelIDSent(QuicChromiumClientSession* session, | 27 static void SetChannelIDSent(QuicChromiumClientSession* session, |
| 28 bool channel_id_sent); | 28 bool channel_id_sent); |
| 29 | 29 |
| 30 static void SetHostname(QuicChromiumClientSession* session, | 30 static void SetHostname(QuicChromiumClientSession* session, |
| 31 const std::string& hostname); | 31 const std::string& hostname); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSessionPeer); | 34 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSessionPeer); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace test | 37 } // namespace test |
| 38 } // namespace net | 38 } // namespace net |
| 39 | 39 |
| 40 #endif // NET_QUIC_TEST_TOOLS_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_ | 40 #endif // NET_QUIC_TEST_TOOLS_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_ |
| OLD | NEW |