| Index: net/cert/x509_util_openssl_unittest.cc
|
| ===================================================================
|
| --- net/cert/x509_util_openssl_unittest.cc (revision 228925)
|
| +++ net/cert/x509_util_openssl_unittest.cc (working copy)
|
| @@ -35,23 +35,22 @@
|
| EXPECT_FALSE(x509_util::IsSupportedValidityRange(too_late, too_late));
|
| }
|
|
|
| -// For OpenSSL, x509_util::CreateDomainBoundCertEC() is not yet implemented
|
| -// and should return false. This unit test ensures that a stub implementation
|
| -// is present.
|
| +// For OpenSSL, x509_util::CreateKeyAndDomainBoundCertEC() is not yet
|
| +// implemented and should return false. This unit test ensures that a stub
|
| +// implementation is present.
|
| TEST(X509UtilOpenSSLTest, CreateDomainBoundCertNotImplemented) {
|
| std::string domain = "weborigin.com";
|
| base::Time now = base::Time::Now();
|
| - scoped_ptr<crypto::ECPrivateKey> private_key(
|
| - crypto::ECPrivateKey::Create());
|
| + crypto::ECPrivateKey* raw_key = NULL;
|
| std::string der_cert;
|
| - EXPECT_FALSE(x509_util::CreateDomainBoundCertEC(
|
| - private_key.get(),
|
| + EXPECT_FALSE(x509_util::CreateKeyAndDomainBoundCertEC(
|
| domain, 1,
|
| now,
|
| now + base::TimeDelta::FromDays(1),
|
| + &raw_key,
|
| &der_cert));
|
| EXPECT_TRUE(der_cert.empty());
|
| -
|
| + EXPECT_FALSE(raw_key != NULL);
|
| }
|
|
|
| } // namespace net
|
|
|