Remove QuicSession::SendRstStreamInner() because the |close_write_side_only| code paths share so little with each other.
gfe-relnote: protected by gfe2_reloadable_flag_quic_delete_send_rst_stream_inner
PiperOrigin-RevId: 282598706
Change-Id: I2a9df3f32f9ce8670d0f829238e0d8aa6f93dbd0
diff --git a/quic/core/quic_stream_test.cc b/quic/core/quic_stream_test.cc
index ba21608..673c7a7 100644
--- a/quic/core/quic_stream_test.cc
+++ b/quic/core/quic_stream_test.cc
@@ -912,10 +912,8 @@
.WillRepeatedly(Invoke(&ClearControlFrame));
EXPECT_CALL(*session_, SendRstStream(stream_->id(), QUIC_STREAM_CANCELLED, 9))
.WillOnce(InvokeWithoutArgs([this]() {
- return QuicSessionPeer::SendRstStreamInner(
- session_.get(), stream_->id(), QUIC_STREAM_CANCELLED,
- stream_->stream_bytes_written(),
- /*close_write_side_only=*/false);
+ session_->ReallySendRstStream(stream_->id(), QUIC_STREAM_CANCELLED,
+ stream_->stream_bytes_written());
}));
stream_->Reset(QUIC_STREAM_CANCELLED);
@@ -1574,25 +1572,6 @@
}
}
-// SendOnlyRstStream must only send a RESET_STREAM (no bundled STOP_SENDING).
-TEST_P(QuicStreamTest, SendOnlyRstStream) {
- Initialize();
- if (!VersionHasIetfQuicFrames(connection_->transport_version())) {
- return;
- }
-
- EXPECT_CALL(*connection_,
- OnStreamReset(stream_->id(), QUIC_BAD_APPLICATION_PAYLOAD));
- EXPECT_CALL(*connection_, SendControlFrame(_))
- .Times(1)
- .WillOnce(Invoke(this, &QuicStreamTest::ClearResetStreamFrame));
-
- QuicSessionPeer::SendRstStreamInner(session_.get(), stream_->id(),
- QUIC_BAD_APPLICATION_PAYLOAD,
- stream_->stream_bytes_written(),
- /*close_write_side_only=*/true);
-}
-
TEST_P(QuicStreamTest, WindowUpdateForReadOnlyStream) {
Initialize();