OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/cert/x509_util.h" | 5 #include "net/cert/x509_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "crypto/rsa_private_key.h" | 12 #include "crypto/rsa_private_key.h" |
13 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace x509_util { | 18 namespace x509_util { |
19 | 19 |
20 TEST(X509UtilTest, SortClientCertificates) { | 20 TEST(X509UtilTest, SortClientCertificates) { |
21 CertificateList certs; | 21 CertificateList certs; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 ASSERT_TRUE(cert.get()); | 181 ASSERT_TRUE(cert.get()); |
182 | 182 |
183 EXPECT_EQ("subject", cert->subject().GetDisplayName()); | 183 EXPECT_EQ("subject", cert->subject().GetDisplayName()); |
184 EXPECT_FALSE(cert->HasExpired()); | 184 EXPECT_FALSE(cert->HasExpired()); |
185 } | 185 } |
186 #endif | 186 #endif |
187 | 187 |
188 } // namespace x509_util | 188 } // namespace x509_util |
189 | 189 |
190 } // namespace net | 190 } // namespace net |
OLD | NEW |