Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: net/quic/core/quic_packets.cc

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: net/tools/quic/quic_packet_printer_bin.cc Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.cc ('k') | net/quic/core/quic_sent_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packets.cc
diff --git a/net/quic/core/quic_packets.cc b/net/quic/core/quic_packets.cc
index 2c7eb0e73fd1777ec565c7393e113573a1a98e0f..a67cfa64039bd2858f6e92002e8812fbdf69a51e 100644
--- a/net/quic/core/quic_packets.cc
+++ b/net/quic/core/quic_packets.cc
@@ -8,6 +8,8 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_utils.h"
#include "net/quic/core/quic_versions.h"
+#include "net/quic/platform/api/quic_str_cat.h"
+#include "net/quic/platform/api/quic_text_utils.h"
using base::StringPiece;
using std::string;
@@ -97,8 +99,9 @@ std::ostream& operator<<(std::ostream& os, const QuicPacketHeader& header) {
}
if (header.public_header.nonce != nullptr) {
os << ", diversification_nonce: "
- << QuicUtils::HexEncode(StringPiece(header.public_header.nonce->data(),
- header.public_header.nonce->size()));
+ << QuicTextUtils::HexEncode(
+ StringPiece(header.public_header.nonce->data(),
+ header.public_header.nonce->size()));
}
os << ", path_id: " << static_cast<int>(header.path_id)
<< ", packet_number: " << header.packet_number << " }\n";
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.cc ('k') | net/quic/core/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698