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 <cert.h> | 5 #include <cert.h> |
6 #include <certdb.h> | 6 #include <certdb.h> |
7 #include <pk11pub.h> | 7 #include <pk11pub.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
17 #include "base/path_service.h" | |
18 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
19 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
20 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
22 #include "crypto/scoped_nss_types.h" | 21 #include "crypto/scoped_nss_types.h" |
23 #include "crypto/scoped_test_nss_db.h" | 22 #include "crypto/scoped_test_nss_db.h" |
24 #include "net/base/crypto_module.h" | 23 #include "net/base/crypto_module.h" |
25 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
26 #include "net/base/test_data_directory.h" | 25 #include "net/base/test_data_directory.h" |
27 #include "net/cert/cert_status_flags.h" | 26 #include "net/cert/cert_status_flags.h" |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 EXPECT_EQ(NSSCertDatabase::TRUST_DEFAULT, | 1017 EXPECT_EQ(NSSCertDatabase::TRUST_DEFAULT, |
1019 cert_db_->GetCertTrust(certs2[0].get(), SERVER_CERT)); | 1018 cert_db_->GetCertTrust(certs2[0].get(), SERVER_CERT)); |
1020 | 1019 |
1021 new_certs = ListCerts(); | 1020 new_certs = ListCerts(); |
1022 ASSERT_EQ(2U, new_certs.size()); | 1021 ASSERT_EQ(2U, new_certs.size()); |
1023 EXPECT_STRNE(new_certs[0]->os_cert_handle()->nickname, | 1022 EXPECT_STRNE(new_certs[0]->os_cert_handle()->nickname, |
1024 new_certs[1]->os_cert_handle()->nickname); | 1023 new_certs[1]->os_cert_handle()->nickname); |
1025 } | 1024 } |
1026 | 1025 |
1027 } // namespace net | 1026 } // namespace net |
OLD | NEW |