| 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 #include "net/quic/test_tools/quic_client_session_peer.h" | 5 #include "net/quic/test_tools/quic_client_session_peer.h" | 
| 6 | 6 | 
| 7 #include "net/quic/quic_client_session.h" | 7 #include "net/quic/quic_client_session.h" | 
| 8 | 8 | 
| 9 namespace net { | 9 namespace net { | 
| 10 namespace test { | 10 namespace test { | 
| 11 | 11 | 
| 12 // static | 12 // static | 
| 13 void QuicClientSessionPeer::SetMaxOpenStreams(QuicClientSession* session, | 13 void QuicClientSessionPeer::SetMaxOpenStreams(QuicClientSession* session, | 
| 14                                               size_t max_streams, | 14                                               size_t max_streams, | 
| 15                                               size_t default_streams) { | 15                                               size_t default_streams) { | 
| 16   session->config()->set_max_streams_per_connection(max_streams, | 16   session->config()->set_max_streams_per_connection(max_streams, | 
| 17                                                     default_streams); | 17                                                     default_streams); | 
| 18 } | 18 } | 
| 19 | 19 | 
|  | 20 // static | 
|  | 21 void QuicClientSessionPeer::SetChannelIDKey(QuicClientSession* session, | 
|  | 22                                             ChannelIDKey* channel_id_key) { | 
|  | 23   session->crypto_stream_->channel_id_key_.reset(channel_id_key); | 
|  | 24 } | 
|  | 25 | 
| 20 }  // namespace test | 26 }  // namespace test | 
| 21 }  // namespace net | 27 }  // namespace net | 
| OLD | NEW | 
|---|