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

Unified Diff: net/quic/crypto/curve25519_key_exchange_test.cc

Issue 12740002: QUIC/Crypto - Enabled curve25519 key exchange code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deleted include of string.h Created 7 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/crypto/curve25519_key_exchange.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/curve25519_key_exchange_test.cc
diff --git a/net/quic/crypto/curve25519_key_exchange_test.cc b/net/quic/crypto/curve25519_key_exchange_test.cc
index f731a5dad73b7b813948336a0707018cc9aa484f..b1443aa03a1a5d448450cd8e8c614c4dfc3bd700 100644
--- a/net/quic/crypto/curve25519_key_exchange_test.cc
+++ b/net/quic/crypto/curve25519_key_exchange_test.cc
@@ -4,17 +4,20 @@
#include "net/quic/crypto/curve25519_key_exchange.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/string_piece.h"
#include "net/quic/crypto/quic_random.h"
#include "testing/gtest/include/gtest/gtest.h"
+using base::StringPiece;
+using std::string;
+
namespace net {
namespace test {
// SharedKey just tests that the basic key exchange identity holds: that both
// parties end up with the same key.
TEST(Curve25519KeyExchange, SharedKey) {
-// TODO(rtenneti): Add support for curve25519.
-#if 0
QuicRandom* const rand = QuicRandom::GetInstance();
for (int i = 0; i < 5; i++) {
@@ -34,7 +37,6 @@ TEST(Curve25519KeyExchange, SharedKey) {
ASSERT_TRUE(bob->CalculateSharedKey(alice_public, &bob_shared));
ASSERT_EQ(alice_shared, bob_shared);
}
-#endif
}
} // namespace test
« no previous file with comments | « net/quic/crypto/curve25519_key_exchange.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698