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

Unified Diff: chrome/common/net/x509_certificate_model_unittest.cc

Issue 23567010: Fixing a problem introduced when "Unknown" certs were renamed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
Index: chrome/common/net/x509_certificate_model_unittest.cc
diff --git a/chrome/common/net/x509_certificate_model_unittest.cc b/chrome/common/net/x509_certificate_model_unittest.cc
index 62bffa7c79177b6d925eff3cead1622690eb48af..d625ff28b0583890199b19c056c1d93aa3514715 100644
--- a/chrome/common/net/x509_certificate_model_unittest.cc
+++ b/chrome/common/net/x509_certificate_model_unittest.cc
@@ -19,7 +19,7 @@ TEST(X509CertificateModelTest, GetTypeCA) {
#if defined(USE_OPENSSL)
// Remove this when OpenSSL build implements the necessary functions.
- EXPECT_EQ(net::UNKNOWN_CERT,
+ EXPECT_EQ(net::OTHER_CERT,
x509_certificate_model::GetType(cert->os_cert_handle()));
#else
EXPECT_EQ(net::CA_CERT,
@@ -43,14 +43,14 @@ TEST(X509CertificateModelTest, GetTypeServer) {
#if defined(USE_OPENSSL)
// Remove this when OpenSSL build implements the necessary functions.
- EXPECT_EQ(net::UNKNOWN_CERT,
+ EXPECT_EQ(net::OTHER_CERT,
x509_certificate_model::GetType(cert->os_cert_handle()));
#else
// Test mozilla_security_manager::GetCertType with server certs and default
// trust. Currently this doesn't work.
// TODO(mattm): make mozilla_security_manager::GetCertType smarter so we can
// tell server certs even if they have no trust bits set.
- EXPECT_EQ(net::UNKNOWN_CERT,
+ EXPECT_EQ(net::OTHER_CERT,
x509_certificate_model::GetType(cert->os_cert_handle()));
net::NSSCertDatabase* cert_db = net::NSSCertDatabase::GetInstance();
« no previous file with comments | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698