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

Unified Diff: net/spdy/spdy_framer_test.cc

Issue 995453003: Add unittest for GetNumberRequiredContinuationFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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.h ('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 b416847997da26c3b113c4386a8ff19b20a15b92..ced4f921c03f8bfe463d3896ee55014f4f285efd 100644
--- a/net/spdy/spdy_framer_test.cc
+++ b/net/spdy/spdy_framer_test.cc
@@ -3269,6 +3269,17 @@ TEST_P(SpdyFramerTest, CreatePushPromiseUncompressed) {
}
}
+TEST_P(SpdyFramerTest, GetNumberRequiredContinuationFrames) {
+ if (spdy_version_ <= SPDY3) {
+ return;
+ }
+
+ SpdyFramer framer(spdy_version_);
+ // Test case from https://crbug.com/464748.
+ EXPECT_EQ(1u, framer.GetNumberRequiredContinuationFrames(2039));
+ EXPECT_EQ(2u, framer.GetNumberRequiredContinuationFrames(2040));
+}
+
TEST_P(SpdyFramerTest, CreateContinuationUncompressed) {
if (spdy_version_ <= SPDY3) {
return;
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698