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

Unified Diff: net/spdy/header_coalescer_test.cc

Issue 2710053002: HTTP/2 Check header names in HeaderCoalescer (Closed)
Patch Set: fix pseudo and add test Created 3 years, 10 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
« net/spdy/header_coalescer.cc ('K') | « net/spdy/header_coalescer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/header_coalescer_test.cc
diff --git a/net/spdy/header_coalescer_test.cc b/net/spdy/header_coalescer_test.cc
index 986e775321076f8d89cce04affe463970df0a604..65bd2b06747763effcd28d3d671cad7eb10b5ba7 100644
--- a/net/spdy/header_coalescer_test.cc
+++ b/net/spdy/header_coalescer_test.cc
@@ -76,5 +76,12 @@ TEST_F(HeaderCoalescerTest, CRLFInHeaderValue) {
EXPECT_TRUE(header_coalescer_.error_seen());
}
+TEST_F(HeaderCoalescerTest, HeaderNameNotValid) {
asanka 2017/02/23 17:45:13 There should be a test that stakes out RFC 7230's
xunjieli 2017/02/23 23:07:38 Done.
+ std::string header_name("\x01\x7F\x80\xff");
+ header_coalescer_.OnHeader(header_name, "foo");
+ EXPECT_TRUE(header_coalescer_.error_seen());
+}
asanka 2017/02/23 17:45:13 Similar to the above test requirement. Add one for
xunjieli 2017/02/23 23:07:37 Done.
+
} // namespace test
+
} // namespace net
« net/spdy/header_coalescer.cc ('K') | « net/spdy/header_coalescer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698