Replace QuicheStrCat() with absl::StrCat()
PiperOrigin-RevId: 345509263
Change-Id: Ia3d17aa5b88246b1b95f965a35405d54b01833f0
diff --git a/quic/qbone/bonnet/tun_device_packet_exchanger.cc b/quic/qbone/bonnet/tun_device_packet_exchanger.cc
index 4e7c93b..3ac9ae1 100644
--- a/quic/qbone/bonnet/tun_device_packet_exchanger.cc
+++ b/quic/qbone/bonnet/tun_device_packet_exchanger.cc
@@ -6,7 +6,7 @@
#include <utility>
-#include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
+#include "absl/strings/str_cat.h"
namespace quic {
@@ -29,8 +29,7 @@
std::string* error) {
*blocked = false;
if (fd_ < 0) {
- *error = quiche::QuicheStrCat("Invalid file descriptor of the TUN device: ",
- fd_);
+ *error = absl::StrCat("Invalid file descriptor of the TUN device: ", fd_);
stats_->OnWriteError(error);
return false;
}
@@ -41,8 +40,7 @@
// The tunnel is blocked. Note that this does not mean the receive buffer
// of a TCP connection is filled. This simply means the TUN device itself
// is blocked on handing packets to the rest part of the kernel.
- *error =
- quiche::QuicheStrCat("Write to the TUN device was blocked: ", errno);
+ *error = absl::StrCat("Write to the TUN device was blocked: ", errno);
*blocked = true;
stats_->OnWriteError(error);
}
@@ -58,8 +56,7 @@
std::string* error) {
*blocked = false;
if (fd_ < 0) {
- *error = quiche::QuicheStrCat("Invalid file descriptor of the TUN device: ",
- fd_);
+ *error = absl::StrCat("Invalid file descriptor of the TUN device: ", fd_);
stats_->OnReadError(error);
return nullptr;
}
@@ -71,8 +68,7 @@
// is no end of file. Therefore 0 also indicates error.
if (result <= 0) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
- *error =
- quiche::QuicheStrCat("Read from the TUN device was blocked: ", errno);
+ *error = absl::StrCat("Read from the TUN device was blocked: ", errno);
*blocked = true;
stats_->OnReadError(error);
}