Fix 4 ClangInliner findings:

Details for what is fixed can be found at the top of each file.

See go/inliner-lsc for more information on why you've received this change and why it is important.

This CL looks good? Just grant approval!
This CL doesn’t look good? This is what you can do:
* Revert this CL, by replying "REVERT: <provide reason>"
* File a bug under go/inliner-bug for category ClangInliner if there's an issue with the CL content.
* File a bug under go/rosie-bug if there's an issue with how the CL was managed.
* For all other issues such as the formatting of the CL, please file a bug under
go/clrobot-bug.
* Revert this CL and not get a CL that cleans up these paths in the future by
replying "BLOCKLIST: <provide reason>". This is not reversible! We recommend to
opt out the respective paths in your CL Robot configuration instead:
go/clrobot-opt-out.

This CL was generated by CL Robot - a tool that cleans up code findings
(go/clrobot). The affected code paths have been enabled for CL Robot in //depot/google3/METADATA by
following go/clrobot#how-to-opt-in. Anything wrong with the signup? File a bug
at go/clrobot-bug.

#clrobot #third_party-googletest-googlemock-include-gmock-gmock-actions.h

Tested:
    Local presubmit tests passed.
PiperOrigin-RevId: 952032533
diff --git a/quiche/quic/core/http/quic_spdy_stream_test.cc b/quiche/quic/core/http/quic_spdy_stream_test.cc
index 266824a..85eb62a 100644
--- a/quiche/quic/core/http/quic_spdy_stream_test.cc
+++ b/quiche/quic/core/http/quic_spdy_stream_test.cc
@@ -1970,17 +1970,16 @@
   EXPECT_EQ(0u, QuicStreamPeer::SendBuffer(stream_).size());
 
   // FIN is acked.
-  EXPECT_CALL(*mock_ack_listener, OnPacketAcked(0, _))
-      .WillOnce(InvokeWithoutArgs([&]() {
-        if (GetQuicReloadableFlag(quic_notify_ack_listener_earlier)) {
-          // Stream is not added to closed stream list yet.
-          EXPECT_NE(session_->GetActiveStream(stream_->id()), nullptr);
-          EXPECT_FALSE(stream_->on_soon_to_be_destroyed_called());
-        } else {
-          EXPECT_EQ(session_->GetActiveStream(stream_->id()), nullptr);
-          EXPECT_TRUE(stream_->on_soon_to_be_destroyed_called());
-        }
-      }));
+  EXPECT_CALL(*mock_ack_listener, OnPacketAcked(0, _)).WillOnce([&]() {
+    if (GetQuicReloadableFlag(quic_notify_ack_listener_earlier)) {
+      // Stream is not added to closed stream list yet.
+      EXPECT_NE(session_->GetActiveStream(stream_->id()), nullptr);
+      EXPECT_FALSE(stream_->on_soon_to_be_destroyed_called());
+    } else {
+      EXPECT_EQ(session_->GetActiveStream(stream_->id()), nullptr);
+      EXPECT_TRUE(stream_->on_soon_to_be_destroyed_called());
+    }
+  });
   EXPECT_TRUE(stream_->OnStreamFrameAcked(18, 0, true, QuicTime::Delta::Zero(),
                                           QuicTime::Zero(), &newly_acked_length,
                                           /*is_retransmission=*/false));
@@ -3060,7 +3059,7 @@
       CloseConnection(QUIC_HTTP_INVALID_FRAME_SEQUENCE_ON_SPDY_STREAM,
                       "Unexpected DATA frame received.",
                       ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET))
-      .WillOnce(InvokeWithoutArgs([this]() { stream_->StopReading(); }));
+      .WillOnce([this]() { stream_->StopReading(); });
 
   std::string data = DataFrame(kDataFramePayload);
   stream_->OnStreamFrame(QuicStreamFrame(stream_->id(), false, 0, data));
@@ -3109,7 +3108,7 @@
       CloseConnection(QUIC_HTTP_INVALID_FRAME_SEQUENCE_ON_SPDY_STREAM,
                       "HEADERS frame received after trailing HEADERS.",
                       ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET))
-      .WillOnce(InvokeWithoutArgs([this]() { stream_->StopReading(); }));
+      .WillOnce([this]() { stream_->StopReading(); });
 
   // Receive another HEADERS frame, with no header fields.
   std::string trailers2 = HeadersFrame(HttpHeaderBlock());
@@ -3159,7 +3158,7 @@
       CloseConnection(QUIC_HTTP_INVALID_FRAME_SEQUENCE_ON_SPDY_STREAM,
                       "Unexpected DATA frame received.",
                       ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET))
-      .WillOnce(InvokeWithoutArgs([this]() { stream_->StopReading(); }));
+      .WillOnce([this]() { stream_->StopReading(); });
 
   // Receive more data.
   std::string data2 = DataFrame("This payload should not be processed.");