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 3 // found in the LICENSE file. 4 5 #include "net/quic/test_tools/quic_session_peer.h" 6 7 #include "net/quic/quic_session.h" 8 #include "net/quic/reliable_quic_stream.h" 9 10 namespace net { 11 namespace test { 12 13 // static 14 void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) { 15 session->next_stream_id_ = id; 16 } 17 18 // static 19 void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session, 20 uint32 max_streams) { 21 session->max_open_streams_ = max_streams; 22 } 23 24 // static 25 WriteBlockedList<QuicStreamId>* QuicSessionPeer::GetWriteblockedStreams( 26 QuicSession* session) { 27 return &session->write_blocked_streams_; 28 } 29 30 } // namespace test 31 } // namespace net 32