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

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

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 years, 7 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/quartc/quartc_session.cc ('k') | net/quic/test_tools/quic_spdy_session_peer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/quic/core/quic_packets.h" 9 #include "net/quic/core/quic_packets.h"
10 #include "net/quic/core/quic_write_blocked_list.h" 10 #include "net/quic/core/quic_write_blocked_list.h"
(...skipping 23 matching lines...) Expand all
34 static void SetMaxUncompressedHeaderBytes( 34 static void SetMaxUncompressedHeaderBytes(
35 QuicSpdySession* session, 35 QuicSpdySession* session,
36 size_t set_max_uncompressed_header_bytes); 36 size_t set_max_uncompressed_header_bytes);
37 static size_t WriteHeadersImpl( 37 static size_t WriteHeadersImpl(
38 QuicSpdySession* session, 38 QuicSpdySession* session,
39 QuicStreamId id, 39 QuicStreamId id,
40 SpdyHeaderBlock headers, 40 SpdyHeaderBlock headers,
41 bool fin, 41 bool fin,
42 SpdyPriority priority, 42 SpdyPriority priority,
43 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener); 43 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener);
44 // Helper functions for stream ids, to allow test logic to abstract
45 // over the HTTP stream numbering scheme (i.e. whether one or
46 // two QUIC streams are used per HTTP transaction).
47 static QuicStreamId NextStreamId(const QuicSpdySession& session);
48 // n should start at 0.
49 static QuicStreamId GetNthClientInitiatedStreamId(
50 const QuicSpdySession& session,
51 int n);
52 // n should start at 0.
53 static QuicStreamId GetNthServerInitiatedStreamId(
54 const QuicSpdySession& session,
55 int n);
44 56
45 private: 57 private:
46 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer); 58 DISALLOW_COPY_AND_ASSIGN(QuicSpdySessionPeer);
47 }; 59 };
48 60
49 } // namespace test 61 } // namespace test
50 62
51 } // namespace net 63 } // namespace net
52 64
53 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_ 65 #endif // NET_QUIC_TEST_TOOLS_QUIC_SPDY_SESSION_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_session.cc ('k') | net/quic/test_tools/quic_spdy_session_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698