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

Unified Diff: net/quic/test_tools/crypto_test_utils.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/platform/impl/quic_text_utils_impl.h ('k') | net/quic/test_tools/crypto_test_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/crypto_test_utils.cc
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index fdba134a4dbb1676623872fee49a15b1dbfe8c9d..579d87b96c57511b249f1dc3094698ff376ec63f 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -6,7 +6,6 @@
#include <memory>
-#include "base/strings/string_util.h"
#include "crypto/openssl_util.h"
#include "crypto/secure_hash.h"
#include "net/quic/core/crypto/channel_id.h"
@@ -24,6 +23,7 @@
#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_clock.h"
#include "net/quic/platform/api/quic_socket_address.h"
+#include "net/quic/platform/api/quic_text_utils.h"
#include "net/quic/test_tools/quic_connection_peer.h"
#include "net/quic/test_tools/quic_framer_peer.h"
#include "net/quic/test_tools/quic_test_utils.h"
@@ -992,13 +992,13 @@ string CryptoTestUtils::GenerateClientNonceHex(
StringPiece(reinterpret_cast<const char*>(orbit.data()),
sizeof(orbit.size())),
&nonce);
- return ("#" + net::QuicUtils::HexEncode(nonce));
+ return ("#" + QuicTextUtils::HexEncode(nonce));
}
string CryptoTestUtils::GenerateClientPublicValuesHex() {
char public_value[32];
memset(public_value, 42, sizeof(public_value));
- return ("#" + net::QuicUtils::HexEncode(public_value, sizeof(public_value)));
+ return ("#" + QuicTextUtils::HexEncode(public_value, sizeof(public_value)));
}
// static
« no previous file with comments | « net/quic/platform/impl/quic_text_utils_impl.h ('k') | net/quic/test_tools/crypto_test_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698