summaryrefslogtreecommitdiffstats
path: root/net/spdy/buffered_spdy_framer_spdy2_unittest.cc
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-08 19:06:41 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-08 19:06:41 +0000
commitf54c8579cc1645a8accff998f0effbf6cea5fc78 (patch)
treef3821e17b89529061e275c978ba172c5322eaf18 /net/spdy/buffered_spdy_framer_spdy2_unittest.cc
parentffeae4b4beb48be2734e7c0a2e04ab83dfc60091 (diff)
downloadchromium_src-f54c8579cc1645a8accff998f0effbf6cea5fc78.zip
chromium_src-f54c8579cc1645a8accff998f0effbf6cea5fc78.tar.gz
chromium_src-f54c8579cc1645a8accff998f0effbf6cea5fc78.tar.bz2
SPDY - pass spdy protocol version that will be used by the SpdyFramer.
A minor change to use BufferedSpdyFramer in unittests (thus added couple of API calls to BufferedSpdyFramer that in turn call SpdyFramer's API calls. Minor cleanup of include of spdy_framer.h R=rch TEST=network unittests BUG=117287 Review URL: http://codereview.chromium.org/9622017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/buffered_spdy_framer_spdy2_unittest.cc')
-rw-r--r--net/spdy/buffered_spdy_framer_spdy2_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/spdy/buffered_spdy_framer_spdy2_unittest.cc b/net/spdy/buffered_spdy_framer_spdy2_unittest.cc
index 135a635..e267603 100644
--- a/net/spdy/buffered_spdy_framer_spdy2_unittest.cc
+++ b/net/spdy/buffered_spdy_framer_spdy2_unittest.cc
@@ -16,7 +16,8 @@ namespace {
class TestBufferedSpdyVisitor : public BufferedSpdyFramerVisitorInterface {
public:
TestBufferedSpdyVisitor()
- : error_count_(0),
+ : buffered_spdy_framer_(2),
+ error_count_(0),
syn_frame_count_(0),
syn_reply_frame_count_(0),
headers_frame_count_(0),
@@ -175,7 +176,7 @@ TEST_F(BufferedSpdyFramerSpdy2Test, ReadSynStreamHeaderBlock) {
SpdyHeaderBlock headers;
headers["aa"] = "vv";
headers["bb"] = "ww";
- BufferedSpdyFramer framer;
+ BufferedSpdyFramer framer(2);
scoped_ptr<SpdySynStreamControlFrame> control_frame(
framer.CreateSynStream(1, // stream_id
0, // associated_stream_id
@@ -202,7 +203,7 @@ TEST_F(BufferedSpdyFramerSpdy2Test, ReadSynReplyHeaderBlock) {
SpdyHeaderBlock headers;
headers["alpha"] = "beta";
headers["gamma"] = "delta";
- BufferedSpdyFramer framer;
+ BufferedSpdyFramer framer(2);
scoped_ptr<SpdySynReplyControlFrame> control_frame(
framer.CreateSynReply(1, // stream_id
CONTROL_FLAG_NONE,
@@ -227,7 +228,7 @@ TEST_F(BufferedSpdyFramerSpdy2Test, ReadHeadersHeaderBlock) {
SpdyHeaderBlock headers;
headers["alpha"] = "beta";
headers["gamma"] = "delta";
- BufferedSpdyFramer framer;
+ BufferedSpdyFramer framer(2);
scoped_ptr<SpdyHeadersControlFrame> control_frame(
framer.CreateHeaders(1, // stream_id
CONTROL_FLAG_NONE,