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

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

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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/quic_session.h" 7 #include "net/quic/quic_session.h"
8 #include "net/quic/reliable_quic_stream.h" 8 #include "net/quic/reliable_quic_stream.h"
9 9
10 namespace net { 10 namespace net {
11 namespace test { 11 namespace test {
12 12
13 // static 13 // static
14 void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) { 14 void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) {
15 session->next_stream_id_ = id; 15 session->next_stream_id_ = id;
16 } 16 }
17 17
18 // static 18 // static
19 void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session, 19 void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session,
20 uint32 max_streams) { 20 uint32 max_streams) {
21 session->max_open_streams_ = max_streams; 21 session->max_open_streams_ = max_streams;
22 } 22 }
23 23
24 // static 24 // static
25 QuicCryptoStream* QuicSessionPeer::GetCryptoStream(QuicSession* session) {
26 return session->GetCryptoStream();
27 }
28
29 // static
25 QuicHeadersStream* QuicSessionPeer::GetHeadersStream(QuicSession* session) { 30 QuicHeadersStream* QuicSessionPeer::GetHeadersStream(QuicSession* session) {
26 return session->headers_stream_.get(); 31 return session->headers_stream_.get();
27 } 32 }
28 33
29 // static 34 // static
30 void QuicSessionPeer::SetHeadersStream(QuicSession* session, 35 void QuicSessionPeer::SetHeadersStream(QuicSession* session,
31 QuicHeadersStream* headers_stream) { 36 QuicHeadersStream* headers_stream) {
32 session->headers_stream_.reset(headers_stream); 37 session->headers_stream_.reset(headers_stream);
33 } 38 }
34 39
35 // static 40 // static
36 QuicWriteBlockedList* QuicSessionPeer::GetWriteBlockedStreams( 41 QuicWriteBlockedList* QuicSessionPeer::GetWriteBlockedStreams(
37 QuicSession* session) { 42 QuicSession* session) {
38 return &session->write_blocked_streams_; 43 return &session->write_blocked_streams_;
39 } 44 }
40 45
41 // static 46 // static
42 QuicDataStream* QuicSessionPeer::GetIncomingDataStream( 47 QuicDataStream* QuicSessionPeer::GetIncomingDataStream(
43 QuicSession* session, 48 QuicSession* session,
44 QuicStreamId stream_id) { 49 QuicStreamId stream_id) {
45 return session->GetIncomingDataStream(stream_id); 50 return session->GetIncomingDataStream(stream_id);
46 } 51 }
47 52
48 } // namespace test 53 } // namespace test
49 } // namespace net 54 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698