Fix "recevied" typo in //third_party/quic/core.
s/recevied/received/ in string literals used as |error_details| argument for
QuicConnection::CloseConnection(), and in comments.
gfe-relnote: n/a. Fix typo in error messages and comments.
PiperOrigin-RevId: 243864154
Change-Id: I3ec58f07091e4e4dc7bb2a03ad12380cfb562e17
diff --git a/quic/core/http/http_decoder.h b/quic/core/http/http_decoder.h
index ae46d99..55de8ad 100644
--- a/quic/core/http/http_decoder.h
+++ b/quic/core/http/http_decoder.h
@@ -75,7 +75,7 @@
// Called when a DATA frame has been completely processed.
virtual void OnDataFrameEnd() = 0;
- // Called when a HEADERS frame has been recevied.
+ // Called when a HEADERS frame has been received.
// |frame_length| contains HEADERS frame length and payload length.
virtual void OnHeadersFrameStart(Http3FrameLengths frame_length) = 0;
// Called when part of the payload of a HEADERS frame has been read. May be
@@ -86,7 +86,7 @@
// |frame_len| is the length of the HEADERS frame payload.
virtual void OnHeadersFrameEnd() = 0;
- // Called when a PUSH_PROMISE frame has been recevied for |push_id|.
+ // Called when a PUSH_PROMISE frame has been received for |push_id|.
virtual void OnPushPromiseFrameStart(PushId push_id) = 0;
// Called when part of the payload of a PUSH_PROMISE frame has been read.
// May be called multiple times for a single frame. |payload| is guaranteed
diff --git a/quic/core/http/quic_spdy_session_test.cc b/quic/core/http/quic_spdy_session_test.cc
index e6e7f57..04605e1 100644
--- a/quic/core/http/quic_spdy_session_test.cc
+++ b/quic/core/http/quic_spdy_session_test.cc
@@ -1063,7 +1063,7 @@
QuicStringPiece("HT"));
EXPECT_CALL(*connection_,
CloseConnection(
- QUIC_INVALID_STREAM_ID, "Recevied data for an invalid stream",
+ QUIC_INVALID_STREAM_ID, "Received data for an invalid stream",
ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET));
session_.OnStreamFrame(data1);
}
@@ -1076,7 +1076,7 @@
QUIC_ERROR_PROCESSING_STREAM, 0);
EXPECT_CALL(*connection_,
CloseConnection(
- QUIC_INVALID_STREAM_ID, "Recevied data for an invalid stream",
+ QUIC_INVALID_STREAM_ID, "Received data for an invalid stream",
ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET));
session_.OnRstStream(rst1);
}