diff options
author | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 21:04:19 +0000 |
---|---|---|
committer | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 21:04:19 +0000 |
commit | 31024059f0a8b7e22c298fbe6657e33342357118 (patch) | |
tree | 0ed2f90e26875a7b216b2b777be17898c59c2a35 /net/spdy/spdy_test_util.h | |
parent | e20859e87ff4b3a1c31ebbc4ea4215450d3f80a8 (diff) | |
download | chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.zip chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.tar.gz chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.tar.bz2 |
SPDY: flow-control fix: resume I/O once a WINDOW_UPDATE frame is received for a stalled stream.
BUG=none
TEST=net_unittests
Review URL: http://codereview.chromium.org/3018019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_test_util.h')
-rw-r--r-- | net/spdy/spdy_test_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/spdy/spdy_test_util.h b/net/spdy/spdy_test_util.h index ec60a30..e7df3f67 100644 --- a/net/spdy/spdy_test_util.h +++ b/net/spdy/spdy_test_util.h @@ -23,6 +23,12 @@ namespace net { +// Default upload data used by both, mock objects and framer when creating +// data frames. +const char kDefaultURL[] = "http://www.google.com"; +const char kUploadData[] = "hello!"; +const int kUploadDataSize = arraysize(kUploadData)-1; + // NOTE: In GCC, on a Mac, this can't be in an anonymous namespace! // This struct holds information used to construct spdy control and data frames. struct SpdyHeaderInfo { @@ -250,6 +256,10 @@ spdy::SpdyFrame* ConstructSpdyPostSynReply(const char* const extra_headers[], spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id, bool fin); +// Constructs a single SPDY data frame with the given content. +spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id, const char* data, + uint32 len, bool fin); + // Create an async MockWrite from the given SpdyFrame. MockWrite CreateMockWrite(const spdy::SpdyFrame& req); |