Index: net/quic/quic_server_session_base_test.cc |
diff --git a/net/quic/quic_server_session_base_test.cc b/net/quic/quic_server_session_base_test.cc |
index b41afe2a08130a4bf25f90566c1aa3b47d4d74a7..96479f1251273c1960e92966bc9b398a6617b294 100644 |
--- a/net/quic/quic_server_session_base_test.cc |
+++ b/net/quic/quic_server_session_base_test.cc |
@@ -131,6 +131,9 @@ class QuicServerSessionBaseTest : public ::testing::TestWithParam<QuicVersion> { |
QuicCompressedCertsCache::kQuicCompressedCertsCacheSize) { |
FLAGS_quic_always_log_bugs_for_tests = true; |
config_.SetMaxStreamsPerConnection(kMaxStreamsForTest, kMaxStreamsForTest); |
+ config_.SetMaxIncomingDynamicStreamsToSend(kMaxStreamsForTest); |
+ QuicConfigPeer::SetReceivedMaxIncomingDynamicStreams(&config_, |
+ kMaxStreamsForTest); |
config_.SetInitialStreamFlowControlWindowToSend( |
kInitialStreamFlowControlWindowForTest); |
config_.SetInitialSessionFlowControlWindowToSend( |
@@ -267,10 +270,13 @@ TEST_P(QuicServerSessionBaseTest, MaxOpenStreams) { |
// streams. The server accepts slightly more than the negotiated stream limit |
// to deal with rare cases where a client FIN/RST is lost. |
+ if (GetParam() <= QUIC_VERSION_34) { |
+ EXPECT_EQ(kMaxStreamsForTest, session_->max_open_incoming_streams()); |
+ } |
+ |
// The slightly increased stream limit is set during config negotiation. It |
// is either an increase of 10 over negotiated limit, or a fixed percentage |
// scaling, whichever is larger. Test both before continuing. |
- EXPECT_EQ(kMaxStreamsForTest, session_->max_open_incoming_streams()); |
session_->OnConfigNegotiated(); |
EXPECT_LT(kMaxStreamsMultiplier * kMaxStreamsForTest, |
kMaxStreamsForTest + kMaxStreamsMinimumIncrement); |
@@ -312,8 +318,10 @@ TEST_P(QuicServerSessionBaseTest, MaxAvailableStreams) { |
// streams available. The server accepts slightly more than the negotiated |
// stream limit to deal with rare cases where a client FIN/RST is lost. |
- // The slightly increased stream limit is set during config negotiation. |
- EXPECT_EQ(kMaxStreamsForTest, session_->max_open_incoming_streams()); |
+ if (GetParam() <= QUIC_VERSION_34) { |
+ // The slightly increased stream limit is set during config negotiation. |
+ EXPECT_EQ(kMaxStreamsForTest, session_->max_open_incoming_streams()); |
+ } |
session_->OnConfigNegotiated(); |
const size_t kAvailableStreamLimit = session_->MaxAvailableStreams(); |
EXPECT_EQ( |