Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Side by Side Diff: net/quic/test_tools/quic_chromium_client_session_peer.cc

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_chromium_client_session_peer.h" 5 #include "net/quic/test_tools/quic_chromium_client_session_peer.h"
6 6
7 #include "net/quic/quic_chromium_client_session.h" 7 #include "net/quic/quic_chromium_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 QuicChromiumClientSessionPeer::SetMaxOpenStreams( 13 void QuicChromiumClientSessionPeer::SetMaxOpenStreams(
14 QuicChromiumClientSession* session, 14 QuicChromiumClientSession* session,
15 size_t max_streams, 15 size_t max_streams,
16 size_t default_streams) { 16 size_t default_streams) {
17 session->config()->SetMaxStreamsPerConnection(max_streams, default_streams); 17 session->config()->SetMaxStreamsPerConnection(max_streams, default_streams);
18 } 18 }
19 19
20 // static 20 // static
21 void QuicChromiumClientSessionPeer::SetChannelIDSent( 21 void QuicChromiumClientSessionPeer::SetChannelIDSent(
22 QuicChromiumClientSession* session, 22 QuicChromiumClientSession* session,
23 bool channel_id_sent) { 23 bool channel_id_sent) {
24 session->crypto_stream_->channel_id_sent_ = channel_id_sent; 24 session->crypto_stream_->channel_id_sent_ = channel_id_sent;
25 } 25 }
26 26
27 // static
28 void QuicChromiumClientSessionPeer::SetHostname(
29 QuicChromiumClientSession* session,
30 const std::string& hostname) {
31 QuicServerId server_id(hostname, session->server_id_.port(),
32 session->server_id_.privacy_mode());
33 session->server_id_ = server_id;
34 }
35
27 } // namespace test 36 } // namespace test
28 } // namespace net 37 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_chromium_client_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698