Do not send out MAX_PUSH_ID frame if the client sets max_push_id to 0(default value).
Client side change only. not protected.
PiperOrigin-RevId: 326568330
Change-Id: I5776857f36209506a948b33ad32e11077eb6032f
diff --git a/quic/core/http/quic_spdy_session_test.cc b/quic/core/http/quic_spdy_session_test.cc
index 18d3d75..189deac 100644
--- a/quic/core/http/quic_spdy_session_test.cc
+++ b/quic/core/http/quic_spdy_session_test.cc
@@ -3013,6 +3013,21 @@
CompleteHandshake();
}
+TEST_P(QuicSpdySessionTestClient, DoNotSendInitialMaxPushIdIfSetToDefaut) {
+ if (!VersionUsesHttp3(transport_version())) {
+ return;
+ }
+
+ StrictMock<MockHttp3DebugVisitor> debug_visitor;
+ session_.set_debug_visitor(&debug_visitor);
+
+ session_.SetMaxPushId(0);
+
+ InSequence s;
+ EXPECT_CALL(debug_visitor, OnSettingsFrameSent(_));
+ CompleteHandshake();
+}
+
} // namespace
} // namespace test
} // namespace quic