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 90de294a21c6f44b130cceb650ce67329ec729ff..e12f9e021434c6f4846342f5e19ffefa76c4abdf 100644 |
--- a/net/quic/core/quic_spdy_stream_test.cc |
+++ b/net/quic/core/quic_spdy_stream_test.cc |
@@ -111,6 +111,7 @@ class QuicSpdyStreamTest : public ::testing::TestWithParam<QuicVersion> { |
} |
protected: |
+ QuicFlagSaver flags_; // Save/restore all QUIC flag values. |
MockQuicConnectionHelper helper_; |
MockAlarmFactory alarm_factory_; |
MockQuicConnection* connection_; |
@@ -158,6 +159,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); |