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

Unified Diff: net/base/x509_certificate_unittest.cc

Issue 10928107: Support x509 certificate on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix windows compilation Created 8 years, 3 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
« no previous file with comments | « net/base/x509_certificate_nss.cc ('k') | net/base/x509_util_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate_unittest.cc
diff --git a/net/base/x509_certificate_unittest.cc b/net/base/x509_certificate_unittest.cc
index f8f43fc4b580632e587bc3c27c12ec7164256543..c16ad87cd94996ccae133ae2b5758624cee82cfa 100644
--- a/net/base/x509_certificate_unittest.cc
+++ b/net/base/x509_certificate_unittest.cc
@@ -680,6 +680,8 @@ TEST(X509CertificateTest, IntermediateCertificates) {
X509Certificate::FreeOSCertHandle(google_handle);
}
+#if !defined(OS_IOS)
+// TODO(ios): Not yet implemented on iOS.
#if defined(OS_MACOSX)
TEST(X509CertificateTest, IsIssuedBy) {
FilePath certs_dir = GetTestCertsDirectory();
@@ -726,7 +728,9 @@ TEST(X509CertificateTest, IsIssuedBy) {
EXPECT_FALSE(mit_davidben_cert->IsIssuedBy(foaf_issuers));
}
#endif // defined(OS_MACOSX)
+#endif // !defined(OS_IOS)
+#if !defined(OS_IOS) // TODO(ios): Unable to create certificates.
#if defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX)
// This test creates a self-signed cert from a private key and then verify the
// content of the certificate.
@@ -850,6 +854,7 @@ TEST(X509CertificateTest, GetDEREncoded) {
EXPECT_FALSE(der_cert.empty());
}
#endif
+#endif // !defined(OS_IOS)
class X509CertificateParseTest
: public testing::TestWithParam<CertificateFormatTestData> {
« no previous file with comments | « net/base/x509_certificate_nss.cc ('k') | net/base/x509_util_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698