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

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

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 months 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) 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 #include "net/quic/test_tools/quic_session_peer.h" 5 #include "net/quic/test_tools/quic_session_peer.h"
6 6
7 #include "net/quic/core/quic_session.h" 7 #include "net/quic/core/quic_session.h"
8 #include "net/quic/core/quic_stream.h" 8 #include "net/quic/core/quic_stream.h"
9 #include "net/quic/platform/api/quic_map_util.h" 9 #include "net/quic/platform/api/quic_map_util.h"
10 10
(...skipping 17 matching lines...) Expand all
28 session->max_open_incoming_streams_ = max_streams; 28 session->max_open_incoming_streams_ = max_streams;
29 } 29 }
30 30
31 // static 31 // static
32 void QuicSessionPeer::SetMaxOpenOutgoingStreams(QuicSession* session, 32 void QuicSessionPeer::SetMaxOpenOutgoingStreams(QuicSession* session,
33 uint32_t max_streams) { 33 uint32_t max_streams) {
34 session->max_open_outgoing_streams_ = max_streams; 34 session->max_open_outgoing_streams_ = max_streams;
35 } 35 }
36 36
37 // static 37 // static
38 QuicCryptoStream* QuicSessionPeer::GetCryptoStream(QuicSession* session) { 38 QuicCryptoStream* QuicSessionPeer::GetMutableCryptoStream(
39 return session->GetCryptoStream(); 39 QuicSession* session) {
40 return session->GetMutableCryptoStream();
40 } 41 }
41 42
42 // static 43 // static
43 QuicWriteBlockedList* QuicSessionPeer::GetWriteBlockedStreams( 44 QuicWriteBlockedList* QuicSessionPeer::GetWriteBlockedStreams(
44 QuicSession* session) { 45 QuicSession* session) {
45 return &session->write_blocked_streams_; 46 return &session->write_blocked_streams_;
46 } 47 }
47 48
48 // static 49 // static
49 QuicStream* QuicSessionPeer::GetOrCreateDynamicStream(QuicSession* session, 50 QuicStream* QuicSessionPeer::GetOrCreateDynamicStream(QuicSession* session,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // locally-created stream. 107 // locally-created stream.
107 return id >= session->next_outgoing_stream_id_; 108 return id >= session->next_outgoing_stream_id_;
108 } else { 109 } else {
109 // peer-created stream. 110 // peer-created stream.
110 return id > session->largest_peer_created_stream_id_; 111 return id > session->largest_peer_created_stream_id_;
111 } 112 }
112 } 113 }
113 114
114 } // namespace test 115 } // namespace test
115 } // namespace net 116 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_session_peer.h ('k') | net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698