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

Side by Side Diff: net/spdy/spdy_test_util_spdy2.h

Issue 14232014: Correctly handle SPDY GOAWAY frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SPDY_SPDY_TEST_UTIL_SPDY2_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Construct an expected SPDY CREDENTIAL frame. 106 // Construct an expected SPDY CREDENTIAL frame.
107 // |credential| is the credential to send. 107 // |credential| is the credential to send.
108 // Returns the constructed frame. The caller takes ownership of the frame. 108 // Returns the constructed frame. The caller takes ownership of the frame.
109 SpdyFrame* ConstructSpdyCredential(const SpdyCredential& credential); 109 SpdyFrame* ConstructSpdyCredential(const SpdyCredential& credential);
110 110
111 // Construct a SPDY PING frame. 111 // Construct a SPDY PING frame.
112 // Returns the constructed frame. The caller takes ownership of the frame. 112 // Returns the constructed frame. The caller takes ownership of the frame.
113 SpdyFrame* ConstructSpdyPing(uint32 ping_id); 113 SpdyFrame* ConstructSpdyPing(uint32 ping_id);
114 114
115 // Construct a SPDY GOAWAY frame. 115 // Construct a SPDY GOAWAY frame with last_good_stream_id = 0.
116 // Returns the constructed frame. The caller takes ownership of the frame. 116 // Returns the constructed frame. The caller takes ownership of the frame.
117 SpdyFrame* ConstructSpdyGoAway(); 117 SpdyFrame* ConstructSpdyGoAway();
118 118
119 // Construct a SPDY GOAWAY frame with the specified last_good_stream_id..
akalin 2013/04/18 01:29:59 remove extra dot
Ryan Hamilton 2013/04/18 17:18:29 Done.
120 // Returns the constructed frame. The caller takes ownership of the frame.
121 SpdyFrame* ConstructSpdyGoAway(SpdyStreamId last_good_stream_id);
122
119 // Construct a SPDY WINDOW_UPDATE frame. 123 // Construct a SPDY WINDOW_UPDATE frame.
120 // Returns the constructed frame. The caller takes ownership of the frame. 124 // Returns the constructed frame. The caller takes ownership of the frame.
121 SpdyFrame* ConstructSpdyWindowUpdate(SpdyStreamId, uint32 delta_window_size); 125 SpdyFrame* ConstructSpdyWindowUpdate(SpdyStreamId, uint32 delta_window_size);
122 126
123 // Construct a SPDY RST_STREAM frame. 127 // Construct a SPDY RST_STREAM frame.
124 // Returns the constructed frame. The caller takes ownership of the frame. 128 // Returns the constructed frame. The caller takes ownership of the frame.
125 SpdyFrame* ConstructSpdyRstStream(SpdyStreamId stream_id, 129 SpdyFrame* ConstructSpdyRstStream(SpdyStreamId stream_id,
126 SpdyRstStreamStatus status); 130 SpdyRstStreamStatus status);
127 131
128 // Construct a single SPDY header entry, for validation. 132 // Construct a single SPDY header entry, for validation.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 SpdySessionPool* const pool_; 345 SpdySessionPool* const pool_;
342 346
343 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 347 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
344 }; 348 };
345 349
346 } // namespace test_spdy2 350 } // namespace test_spdy2
347 351
348 } // namespace net 352 } // namespace net
349 353
350 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ 354 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698