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

Unified Diff: net/quic/core/crypto/crypto_handshake_message.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/crypto/crypto_framer.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_handshake_message.cc
diff --git a/net/quic/core/crypto/crypto_handshake_message.cc b/net/quic/core/crypto/crypto_handshake_message.cc
index 74c978f8ca4051813581fc7f465f666ca16ddab1..fcaf59b5f6ff7d241e59e13946f78694d26bdb36 100644
--- a/net/quic/core/crypto/crypto_handshake_message.cc
+++ b/net/quic/core/crypto/crypto_handshake_message.cc
@@ -7,13 +7,13 @@
#include <memory>
#include "base/stl_util.h"
-#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "net/quic/core/crypto/crypto_framer.h"
#include "net/quic/core/crypto/crypto_protocol.h"
#include "net/quic/core/crypto/crypto_utils.h"
#include "net/quic/core/quic_socket_address_coder.h"
#include "net/quic/core/quic_utils.h"
+#include "net/quic/platform/api/quic_text_utils.h"
using base::ContainsKey;
using base::StringPiece;
@@ -234,7 +234,7 @@ string CryptoHandshakeMessage::DebugStringInternal(size_t indent) const {
if (it->second.size() == 4) {
uint32_t value;
memcpy(&value, it->second.data(), sizeof(value));
- ret += base::UintToString(value);
+ ret += QuicTextUtils::Uint64ToString(value);
done = true;
}
break;
@@ -243,7 +243,7 @@ string CryptoHandshakeMessage::DebugStringInternal(size_t indent) const {
if (it->second.size() == 8) {
uint64_t value;
memcpy(&value, it->second.data(), sizeof(value));
- ret += base::Uint64ToString(value);
+ ret += QuicTextUtils::Uint64ToString(value);
done = true;
}
break;
@@ -319,7 +319,7 @@ string CryptoHandshakeMessage::DebugStringInternal(size_t indent) const {
if (!done) {
// If there's no specific format for this tag, or the value is invalid,
// then just use hex.
- ret += "0x" + QuicUtils::HexEncode(it->second);
+ ret += "0x" + QuicTextUtils::HexEncode(it->second);
}
ret += "\n";
}
« no previous file with comments | « net/quic/core/crypto/crypto_framer.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698