Index: net/quic/core/quic_spdy_stream_test.cc |
diff --git a/net/quic/core/quic_spdy_stream_test.cc b/net/quic/core/quic_spdy_stream_test.cc |
index 870f3b8f7c71b5b86d6f09e3f7ca0423b0c25025..2ece7eee8bf331a023df2d01b5e31c3a902b3f46 100644 |
--- a/net/quic/core/quic_spdy_stream_test.cc |
+++ b/net/quic/core/quic_spdy_stream_test.cc |
@@ -157,6 +157,19 @@ TEST_P(QuicSpdyStreamTest, ProcessHeaderList) { |
EXPECT_FALSE(stream_->IsDoneReading()); |
} |
+TEST_P(QuicSpdyStreamTest, ProcessEmptyHeaderList) { |
+ FLAGS_quic_limit_uncompressed_headers = true; |
+ Initialize(kShouldProcessData); |
+ |
+ QuicHeaderList headers; |
+ stream_->OnStreamHeadersPriority(kV3HighestPriority); |
+ |
+ EXPECT_CALL(*session_, |
+ SendRstStream(stream_->id(), QUIC_HEADERS_TOO_LARGE, 0)); |
+ stream_->OnStreamHeaderList(false, 1 << 20, headers); |
+ EXPECT_EQ(QUIC_HEADERS_TOO_LARGE, stream_->stream_error()); |
+} |
+ |
TEST_P(QuicSpdyStreamTest, ProcessHeadersWithFin) { |
Initialize(kShouldProcessData); |