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/core/quic_spdy_session.h" | 7 #include "net/quic/core/quic_spdy_session.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 namespace test { | 10 namespace test { |
(...skipping 10 matching lines...) Expand all Loading... |
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 | 25 // static |
26 void QuicSpdySessionPeer::SetForceHolBlocking(QuicSpdySession* session, | 26 void QuicSpdySessionPeer::SetForceHolBlocking(QuicSpdySession* session, |
27 bool value) { | 27 bool value) { |
28 session->force_hol_blocking_ = value; | 28 session->force_hol_blocking_ = value; |
29 } | 29 } |
30 | 30 |
| 31 // static |
| 32 const SpdyFramer& QuicSpdySessionPeer::GetSpdyFramer( |
| 33 QuicSpdySession* session) { |
| 34 return session->spdy_framer_; |
| 35 } |
| 36 |
| 37 void QuicSpdySessionPeer::SetHpackEncoderDebugVisitor( |
| 38 QuicSpdySession* session, |
| 39 std::unique_ptr<QuicHpackDebugVisitor> visitor) { |
| 40 session->SetHpackEncoderDebugVisitor(std::move(visitor)); |
| 41 } |
| 42 |
| 43 void QuicSpdySessionPeer::SetHpackDecoderDebugVisitor( |
| 44 QuicSpdySession* session, |
| 45 std::unique_ptr<QuicHpackDebugVisitor> visitor) { |
| 46 session->SetHpackDecoderDebugVisitor(std::move(visitor)); |
| 47 } |
| 48 |
| 49 void QuicSpdySessionPeer::SetMaxUncompressedHeaderBytes( |
| 50 QuicSpdySession* session, |
| 51 size_t set_max_uncompressed_header_bytes) { |
| 52 session->set_max_uncompressed_header_bytes(set_max_uncompressed_header_bytes); |
| 53 } |
| 54 |
| 55 // static |
| 56 size_t QuicSpdySessionPeer::WriteHeadersImpl( |
| 57 QuicSpdySession* session, |
| 58 QuicStreamId id, |
| 59 SpdyHeaderBlock headers, |
| 60 bool fin, |
| 61 SpdyPriority priority, |
| 62 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) { |
| 63 return session->WriteHeadersImpl(id, std::move(headers), fin, priority, |
| 64 std::move(ack_listener)); |
| 65 } |
| 66 |
31 } // namespace test | 67 } // namespace test |
32 } // namespace net | 68 } // namespace net |
OLD | NEW |