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

Unified Diff: net/quic/core/crypto/curve25519_key_exchange_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/curve25519_key_exchange.cc ('k') | net/quic/core/crypto/ephemeral_key_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/curve25519_key_exchange_test.cc
diff --git a/net/quic/core/crypto/curve25519_key_exchange_test.cc b/net/quic/core/crypto/curve25519_key_exchange_test.cc
index 8dad0886a130f7799775c0e93ff8c60fbbab0602..6ded8a76b8c597661e317d68c518c960f2286e67 100644
--- a/net/quic/core/crypto/curve25519_key_exchange_test.cc
+++ b/net/quic/core/crypto/curve25519_key_exchange_test.cc
@@ -9,7 +9,6 @@
#include "net/quic/core/crypto/quic_random.h"
#include "testing/gtest/include/gtest/gtest.h"
-using base::StringPiece;
using std::string;
namespace net {
@@ -29,8 +28,8 @@ TEST(Curve25519KeyExchange, SharedKey) {
std::unique_ptr<Curve25519KeyExchange> bob(
Curve25519KeyExchange::New(bob_key));
- const StringPiece alice_public(alice->public_value());
- const StringPiece bob_public(bob->public_value());
+ const QuicStringPiece alice_public(alice->public_value());
+ const QuicStringPiece bob_public(bob->public_value());
string alice_shared, bob_shared;
ASSERT_TRUE(alice->CalculateSharedKey(bob_public, &alice_shared));
« no previous file with comments | « net/quic/core/crypto/curve25519_key_exchange.cc ('k') | net/quic/core/crypto/ephemeral_key_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698