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

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

Issue 2607873002: QUIC - refactor in preparation for two streams per HTTP transaction. (Closed)
Patch Set: Fixed namespaces and formatting. Created 3 years, 11 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.h ('k') | net/tools/quic/quic_simple_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698