OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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_spdy_session_peer.h" | 5 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
6 | 6 |
7 #include "net/quic/quic_spdy_session.h" | 7 #include "net/quic/quic_spdy_session.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 namespace test { | 10 namespace test { |
11 | 11 |
12 // static | 12 // static |
13 QuicHeadersStream* QuicSpdySessionPeer::GetHeadersStream( | 13 QuicHeadersStream* QuicSpdySessionPeer::GetHeadersStream( |
14 QuicSpdySession* session) { | 14 QuicSpdySession* session) { |
15 return session->headers_stream_.get(); | 15 return session->headers_stream_.get(); |
16 } | 16 } |
17 | 17 |
18 // static | 18 // static |
19 void QuicSpdySessionPeer::SetHeadersStream(QuicSpdySession* session, | 19 void QuicSpdySessionPeer::SetHeadersStream(QuicSpdySession* session, |
20 QuicHeadersStream* headers_stream) { | 20 QuicHeadersStream* headers_stream) { |
21 session->headers_stream_.reset(headers_stream); | 21 session->headers_stream_.reset(headers_stream); |
22 session->static_streams()[headers_stream->id()] = headers_stream; | 22 session->static_streams()[headers_stream->id()] = headers_stream; |
23 } | 23 } |
24 | 24 |
| 25 // static |
| 26 void QuicSpdySessionPeer::SetForceHolBlocking(QuicSpdySession* session, |
| 27 bool value) { |
| 28 session->force_hol_blocking_ = value; |
| 29 } |
| 30 |
25 } // namespace test | 31 } // namespace test |
26 } // namespace net | 32 } // namespace net |
OLD | NEW |