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

Unified Diff: net/spdy/hpack/hpack_decoder_test.cc

Issue 2028473003: Move header-ordering validation from hpack decoder to header validator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/hpack/hpack_decoder.cc ('K') | « net/spdy/hpack/hpack_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_decoder_test.cc
diff --git a/net/spdy/hpack/hpack_decoder_test.cc b/net/spdy/hpack/hpack_decoder_test.cc
index 9f4c5fb8554b32a3f92deb09462cf584aa72240a..7e436d0c7d69061bc45f72adc690202ffeba1ce2 100644
--- a/net/spdy/hpack/hpack_decoder_test.cc
+++ b/net/spdy/hpack/hpack_decoder_test.cc
@@ -343,14 +343,14 @@ TEST_P(HpackDecoderTest, InvalidPseudoHeaderPositionStatic) {
// Okay: ":path" (static entry 4) followed by "allow" (static entry 20).
EXPECT_TRUE(DecodeHeaderBlock(a2b_hex("8494")));
// Malformed: "allow" (static entry 20) followed by ":path" (static entry 4).
- EXPECT_FALSE(DecodeHeaderBlock(a2b_hex("9484")));
+ EXPECT_TRUE(DecodeHeaderBlock(a2b_hex("9484")));
}
TEST_P(HpackDecoderTest, InvalidPseudoHeaderPositionLiteral) {
// Okay: literal ":bar" followed by literal "foo".
EXPECT_TRUE(DecodeHeaderBlock(a2b_hex("40043a626172004003666f6f00")));
// Malformed: literal "foo" followed by literal ":bar".
- EXPECT_FALSE(DecodeHeaderBlock(a2b_hex("4003666f6f0040043a62617200")));
+ EXPECT_TRUE(DecodeHeaderBlock(a2b_hex("4003666f6f0040043a62617200")));
}
TEST_P(HpackDecoderTest, ContextUpdateMaximumSize) {
« net/spdy/hpack/hpack_decoder.cc ('K') | « net/spdy/hpack/hpack_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698