Chromium Code Reviews| Index: net/cert/x509_util_nss_unittest.cc |
| diff --git a/net/cert/x509_util_nss_unittest.cc b/net/cert/x509_util_nss_unittest.cc |
| index 0ad5ecddfaa99ba0600093d41539f64f93402622..9a85b60bbdde9b66f44c1f5b83e5d34dcb0f4039 100644 |
| --- a/net/cert/x509_util_nss_unittest.cc |
| +++ b/net/cert/x509_util_nss_unittest.cc |
| @@ -76,7 +76,7 @@ void VerifyCertificateSignature(const std::string& der_cert, |
| } |
| #endif // !defined(OS_WIN) && !defined(OS_MACOSX) |
| -void VerifyDomainBoundCert(const std::string& domain, |
| +void VerifyChannelID(const std::string& domain, |
| const std::string& der_cert) { |
|
wtc
2014/07/01 19:50:52
Fix the indentation.
Ryan Hamilton
2014/07/21 19:12:08
Done.
|
| // Origin Bound Cert OID. |
| static const char oid_string[] = "1.3.6.1.4.1.11129.2.1.6"; |
| @@ -143,21 +143,21 @@ void VerifyDomainBoundCert(const std::string& domain, |
| // This test creates a domain-bound cert and an EC private key and |
| // then verifies the content of the certificate. |
| -TEST(X509UtilNSSTest, CreateKeyAndDomainBoundCertEC) { |
| +TEST(X509UtilNSSTest, CreateKeyAndChannelIDEC) { |
| // Create a sample ASCII weborigin. |
| std::string domain = "weborigin.com"; |
| base::Time now = base::Time::Now(); |
| scoped_ptr<crypto::ECPrivateKey> private_key; |
| std::string der_cert; |
| - ASSERT_TRUE(x509_util::CreateKeyAndDomainBoundCertEC( |
| + ASSERT_TRUE(x509_util::CreateKeyAndChannelIDEC( |
| domain, 1, |
| now, |
| now + base::TimeDelta::FromDays(1), |
| &private_key, |
| &der_cert)); |
| - VerifyDomainBoundCert(domain, der_cert); |
| + VerifyChannelID(domain, der_cert); |
| #if !defined(OS_WIN) && !defined(OS_MACOSX) |
| // signature_verifier_win and signature_verifier_mac can't handle EC certs. |