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

Unified Diff: net/quic/core/crypto/crypto_utils_test.cc

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: Tests 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
Index: net/quic/core/crypto/crypto_utils_test.cc
diff --git a/net/quic/core/crypto/crypto_utils_test.cc b/net/quic/core/crypto/crypto_utils_test.cc
index 1b34c50696073f2c0a0755120e8923860ba489f0..0d5bea0da765a6aaf0a0a1fe1320bdce87554f5a 100644
--- a/net/quic/core/crypto/crypto_utils_test.cc
+++ b/net/quic/core/crypto/crypto_utils_test.cc
@@ -5,6 +5,7 @@
#include "net/quic/core/crypto/crypto_utils.h"
#include "net/quic/core/quic_utils.h"
+#include "net/quic/platform/api/quic_text_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -93,14 +94,15 @@ TEST(CryptoUtilsTest, TestExportKeyingMaterial) {
for (size_t i = 0; i < arraysize(test_vector); i++) {
// Decode the test vector.
- string subkey_secret = QuicUtils::HexDecode(test_vector[i].subkey_secret);
- string label = QuicUtils::HexDecode(test_vector[i].label);
- string context = QuicUtils::HexDecode(test_vector[i].context);
+ string subkey_secret =
+ QuicTextUtils::HexDecode(test_vector[i].subkey_secret);
+ string label = QuicTextUtils::HexDecode(test_vector[i].label);
+ string context = QuicTextUtils::HexDecode(test_vector[i].context);
size_t result_len = test_vector[i].result_len;
bool expect_ok = test_vector[i].expected != nullptr;
string expected;
if (expect_ok) {
- expected = QuicUtils::HexDecode(test_vector[i].expected);
+ expected = QuicTextUtils::HexDecode(test_vector[i].expected);
}
string result;

Powered by Google App Engine
This is Rietveld 408576698