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

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

Issue 8230037: Send PING to check the status of the SPDY connection. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_util.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 int ConstructSpdyReplyString(const char* const extra_headers[], 152 int ConstructSpdyReplyString(const char* const extra_headers[],
153 int extra_header_count, 153 int extra_header_count,
154 char* buffer, 154 char* buffer,
155 int buffer_length); 155 int buffer_length);
156 156
157 // Construct an expected SPDY SETTINGS frame. 157 // Construct an expected SPDY SETTINGS frame.
158 // |settings| are the settings to set. 158 // |settings| are the settings to set.
159 // Returns the constructed frame. The caller takes ownership of the frame. 159 // Returns the constructed frame. The caller takes ownership of the frame.
160 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings); 160 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings);
161 161
162 // Construct a SPDY PING frame.
163 // Returns the constructed frame. The caller takes ownership of the frame.
164 spdy::SpdyFrame* ConstructSpdyPing();
165
162 // Construct a SPDY GOAWAY frame. 166 // Construct a SPDY GOAWAY frame.
163 // Returns the constructed frame. The caller takes ownership of the frame. 167 // Returns the constructed frame. The caller takes ownership of the frame.
164 spdy::SpdyFrame* ConstructSpdyGoAway(); 168 spdy::SpdyFrame* ConstructSpdyGoAway();
165 169
166 // Construct a SPDY WINDOW_UPDATE frame. 170 // Construct a SPDY WINDOW_UPDATE frame.
167 // Returns the constructed frame. The caller takes ownership of the frame. 171 // Returns the constructed frame. The caller takes ownership of the frame.
168 spdy::SpdyFrame* ConstructSpdyWindowUpdate(spdy::SpdyStreamId, 172 spdy::SpdyFrame* ConstructSpdyWindowUpdate(spdy::SpdyStreamId,
169 uint32 delta_window_size); 173 uint32 delta_window_size);
170 174
171 // Construct a SPDY RST_STREAM frame. 175 // Construct a SPDY RST_STREAM frame.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 398
395 private: 399 private:
396 SpdySessionPool* const pool_; 400 SpdySessionPool* const pool_;
397 401
398 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 402 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
399 }; 403 };
400 404
401 } // namespace net 405 } // namespace net
402 406
403 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 407 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698