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

Unified Diff: net/spdy/spdy_framer_test.cc

Issue 139573002: Added a flow control blocked notification message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-uploading, no changes. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer_test.cc
diff --git a/net/spdy/spdy_framer_test.cc b/net/spdy/spdy_framer_test.cc
index 892a52b99a98cdde8cc573419eb984ed9378088e..71027d0b3e9483dcb9a9e672057d68c415b540bb 100644
--- a/net/spdy/spdy_framer_test.cc
+++ b/net/spdy/spdy_framer_test.cc
@@ -3031,7 +3031,25 @@ TEST_P(SpdyFramerTest, SerializeBlocked) {
SpdyBlockedIR blocked_ir(0);
scoped_ptr<SpdySerializedFrame> frame(framer.SerializeFrame(blocked_ir));
CompareFrame(kDescription, *frame, kFrameData, arraysize(kFrameData));
+}
+
+TEST_P(SpdyFramerTest, CreateBlocked) {
+ if (spdy_version_ < SPDY4) {
+ return;
+ }
+
+ SpdyFramer framer(spdy_version_);
+
+ const char kDescription[] = "BLOCKED frame";
+ const SpdyStreamId kStreamId = 3;
+
+ scoped_ptr<SpdySerializedFrame> frame_serialized(
+ framer.CreateBlocked(kStreamId));
+ SpdyBlockedIR blocked_ir(kStreamId);
+ scoped_ptr<SpdySerializedFrame> frame_created(
+ framer.SerializeFrame(blocked_ir));
+ CompareFrames(kDescription, *frame_serialized, *frame_created);
}
TEST_P(SpdyFramerTest, CreatePushPromiseUncompressed) {
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698