Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / net / quic / test_tools / quic_spdy_session_peer.cc
blobe13e477b05c3a9a0b588ebb26f4f49c2efcf7079
1 // Copyright (c) 2015 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.
5 #include "net/quic/test_tools/quic_spdy_session_peer.h"
7 #include "net/quic/quic_spdy_session.h"
9 namespace net {
10 namespace test {
12 // static
13 QuicHeadersStream* QuicSpdySessionPeer::GetHeadersStream(
14 QuicSpdySession* session) {
15 return session->headers_stream_.get();
18 // static
19 void QuicSpdySessionPeer::SetHeadersStream(QuicSpdySession* session,
20 QuicHeadersStream* headers_stream) {
21 session->headers_stream_.reset(headers_stream);
22 session->static_streams()[headers_stream->id()] = headers_stream;
25 } // namespace test
26 } // namespace net