Index: net/tools/quic/end_to_end_test.cc |
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc |
index 9f4ccaaa63566a5c503f3f1d06ccc7b9c8f2dd18..dd13bcb61622dcd59d57eeca4ea881a738b57438 100644 |
--- a/net/tools/quic/end_to_end_test.cc |
+++ b/net/tools/quic/end_to_end_test.cc |
@@ -1100,9 +1100,15 @@ TEST_P(EndToEndTest, NegotiateMaxOpenStreams) { |
} |
client_->WaitForResponse(); |
- EXPECT_FALSE(client_->connected()); |
- EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); |
- EXPECT_EQ(QUIC_TOO_MANY_OPEN_STREAMS, client_->connection_error()); |
+ if (negotiated_version_ <= QUIC_VERSION_27) { |
+ EXPECT_FALSE(client_->connected()); |
+ EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); |
+ EXPECT_EQ(QUIC_TOO_MANY_OPEN_STREAMS, client_->connection_error()); |
+ } else { |
+ EXPECT_TRUE(client_->connected()); |
+ EXPECT_EQ(QUIC_REFUSED_STREAM, client_->stream_error()); |
+ EXPECT_EQ(QUIC_NO_ERROR, client_->connection_error()); |
+ } |
} |
TEST_P(EndToEndTest, NegotiateCongestionControl) { |