Use quiche string libraries in third_party/quic/core
gfe-relnote: n/a, no functional change
PiperOrigin-RevId: 285401547
Change-Id: Ice6d421ff7058fe2d47aee426d7634b6d403ee3f
diff --git a/quic/core/quic_stream_sequencer.cc b/quic/core/quic_stream_sequencer.cc
index d797668..a5f8599 100644
--- a/quic/core/quic_stream_sequencer.cc
+++ b/quic/core/quic_stream_sequencer.cc
@@ -19,8 +19,8 @@
#include "net/third_party/quiche/src/quic/platform/api/quic_flag_utils.h"
#include "net/third_party/quiche/src/quic/platform/api/quic_flags.h"
#include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
-#include "net/third_party/quiche/src/quic/platform/api/quic_str_cat.h"
-#include "net/third_party/quiche/src/quic/platform/api/quic_string_piece.h"
+#include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
+#include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h"
namespace quic {
@@ -80,10 +80,10 @@
size_t bytes_written;
std::string error_details;
QuicErrorCode result = buffered_frames_.OnStreamData(
- byte_offset, QuicStringPiece(data_buffer, data_len), &bytes_written,
- &error_details);
+ byte_offset, quiche::QuicheStringPiece(data_buffer, data_len),
+ &bytes_written, &error_details);
if (result != QUIC_NO_ERROR) {
- std::string details = QuicStrCat(
+ std::string details = quiche::QuicheStrCat(
"Stream ", stream_->id(), ": ", QuicErrorCodeToString(result), ": ",
error_details,
"\nPeer Address: ", stream_->PeerAddressOfLatestPacket().ToString());
@@ -141,9 +141,9 @@
quic_close_connection_and_discard_data_on_wrong_offset, 2, 3);
stream_->CloseConnectionWithDetails(
QUIC_STREAM_SEQUENCER_INVALID_STATE,
- QuicStrCat("Stream ", stream_->id(),
- " received new final offset: ", offset,
- ", which is different from close offset: ", close_offset_));
+ quiche::QuicheStrCat(
+ "Stream ", stream_->id(), " received new final offset: ", offset,
+ ", which is different from close offset: ", close_offset_));
return false;
}
@@ -155,7 +155,7 @@
quic_close_connection_and_discard_data_on_wrong_offset, 3, 3);
stream_->CloseConnectionWithDetails(
QUIC_STREAM_SEQUENCER_INVALID_STATE,
- QuicStrCat(
+ quiche::QuicheStrCat(
"Stream ", stream_->id(), " received fin with offset: ", offset,
", which reduces current highest offset: ", highest_offset_));
return false;
@@ -221,7 +221,7 @@
buffered_frames_.Readv(iov, iov_len, &bytes_read, &error_details);
if (read_error != QUIC_NO_ERROR) {
std::string details =
- QuicStrCat("Stream ", stream_->id(), ": ", error_details);
+ quiche::QuicheStrCat("Stream ", stream_->id(), ": ", error_details);
stream_->CloseConnectionWithDetails(read_error, details);
return static_cast<int>(bytes_read);
}
@@ -304,7 +304,7 @@
const std::string QuicStreamSequencer::DebugString() const {
// clang-format off
- return QuicStrCat("QuicStreamSequencer:",
+ return quiche::QuicheStrCat("QuicStreamSequencer:",
"\n bytes buffered: ", NumBytesBuffered(),
"\n bytes consumed: ", NumBytesConsumed(),
"\n has bytes to read: ", HasBytesToRead() ? "true" : "false",