summaryrefslogtreecommitdiffstats
path: root/crypto/ec_private_key_unittest.cc
diff options
context:
space:
mode:
authordigit@chromium.org <digit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 16:09:24 +0000
committerdigit@chromium.org <digit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 16:09:24 +0000
commitd4db0b6eec1f586314203b0df87a517d9bf22857 (patch)
tree987b3df43c87a80d933876672de02f5ec3ead1c2 /crypto/ec_private_key_unittest.cc
parent7f40bac4aaf02afb14e05f9af26e62ee91f0a556 (diff)
downloadchromium_src-d4db0b6eec1f586314203b0df87a517d9bf22857.zip
chromium_src-d4db0b6eec1f586314203b0df87a517d9bf22857.tar.gz
chromium_src-d4db0b6eec1f586314203b0df87a517d9bf22857.tar.bz2
openssl: Implement crypto::ECPrivateKey.
BUG=306176 R=rsleevi@chromium.org, wtc@chromium.org, agl@chromium.org Review URL: https://codereview.chromium.org/27195002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/ec_private_key_unittest.cc')
-rw-r--r--crypto/ec_private_key_unittest.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/crypto/ec_private_key_unittest.cc b/crypto/ec_private_key_unittest.cc
index d2ec256..d1a4c86 100644
--- a/crypto/ec_private_key_unittest.cc
+++ b/crypto/ec_private_key_unittest.cc
@@ -9,16 +9,9 @@
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
-#if defined(USE_OPENSSL)
-// Once ECPrivateKey is implemented for OpenSSL, remove this #if block.
-// TODO(mattm): When that happens, also add some exported keys from each to test
+// TODO(mattm): Add some exported keys from each to test
// interop between NSS and OpenSSL.
-TEST(ECPrivateKeyUnitTest, OpenSSLStub) {
- scoped_ptr<crypto::ECPrivateKey> keypair1(
- crypto::ECPrivateKey::Create());
- ASSERT_FALSE(keypair1.get());
-}
-#else
+
// Generate random private keys. Export, then re-import. We should get
// back the same exact public key, and the private key should have the same
// value and elliptic curve params.
@@ -104,4 +97,3 @@ TEST(ECPrivateKeyUnitTest, BadPasswordTest) {
password2, privkey1, pubkey1));
ASSERT_FALSE(keypair2.get());
}
-#endif // !defined(USE_OPENSSL)