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

Unified Diff: crypto/ec_private_key_unittest.cc

Issue 1133303003: Add support for crypto::ECPrivateKey::Copy when built with BoringSSL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EVP_PKEY_dup -> EVP_PKEY_up_ref Created 5 years, 7 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
« crypto/ec_private_key_openssl.cc ('K') | « crypto/ec_private_key_openssl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/ec_private_key_unittest.cc
diff --git a/crypto/ec_private_key_unittest.cc b/crypto/ec_private_key_unittest.cc
index 6993a20b08f8f872b7f7fda7e2d0f73c4c965057..cfd08f2d92b57dbcaed3b2da526fcff3f7ff3664 100644
--- a/crypto/ec_private_key_unittest.cc
+++ b/crypto/ec_private_key_unittest.cc
@@ -82,7 +82,6 @@ TEST(ECPrivateKeyUnitTest, InitRandomTest) {
EXPECT_EQ(raw_pubkey2, raw_pubkey4);
}
-#if !defined(USE_OPENSSL)
TEST(ECPrivateKeyUnitTest, Copy) {
scoped_ptr<crypto::ECPrivateKey> keypair1(crypto::ECPrivateKey::Create());
scoped_ptr<crypto::ECPrivateKey> keypair2(keypair1->Copy());
@@ -113,7 +112,6 @@ TEST(ECPrivateKeyUnitTest, Copy) {
EXPECT_TRUE(keypair2->ExportRawPublicKey(&raw_pubkey2));
EXPECT_EQ(raw_pubkey1, raw_pubkey2);
}
-#endif // !defined(USE_OPENSSL)
TEST(ECPrivateKeyUnitTest, BadPasswordTest) {
const std::string password1;
« crypto/ec_private_key_openssl.cc ('K') | « crypto/ec_private_key_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698