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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 months 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/channel_id.cc ('k') | net/quic/core/crypto/common_cert_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/channel_id_test.cc
diff --git a/net/quic/core/crypto/channel_id_test.cc b/net/quic/core/crypto/channel_id_test.cc
index 38931fd61f1299ba76237a9b274cf1bd87193f0a..6fac40f04901f55a8444b484502df2d0de2bc470 100644
--- a/net/quic/core/crypto/channel_id_test.cc
+++ b/net/quic/core/crypto/channel_id_test.cc
@@ -9,7 +9,6 @@
#include "net/quic/test_tools/crypto_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
-using base::StringPiece;
using std::string;
namespace net {
@@ -274,10 +273,11 @@ TEST(ChannelIDTest, VerifyKnownAnswerTest) {
EXPECT_EQ(sizeof(signature) / 2, r_len);
EXPECT_EQ(sizeof(signature) / 2, s_len);
- EXPECT_EQ(test_vector[i].result,
- ChannelIDVerifier::VerifyRaw(
- StringPiece(key, sizeof(key)), StringPiece(msg, msg_len),
- StringPiece(signature, sizeof(signature)), false));
+ EXPECT_EQ(
+ test_vector[i].result,
+ ChannelIDVerifier::VerifyRaw(
+ QuicStringPiece(key, sizeof(key)), QuicStringPiece(msg, msg_len),
+ QuicStringPiece(signature, sizeof(signature)), false));
}
}
« no previous file with comments | « net/quic/core/crypto/channel_id.cc ('k') | net/quic/core/crypto/common_cert_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698