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

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

Issue 1190823003: Remove dependency on headers stream from QuicSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0616
Patch Set: deleted an include Created 5 years, 6 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
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "net/quic/test_tools/quic_spdy_session_peer.h"
6
7 #include "net/quic/quic_spdy_session.h"
8
9 namespace net {
10 namespace test {
11
12 // static
13 QuicHeadersStream* QuicSpdySessionPeer::GetHeadersStream(
14 QuicSpdySession* session) {
15 return session->headers_stream_.get();
16 }
17
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;
23 }
24
25 } // namespace test
26 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698