| 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/file_util.h" | |
| 13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.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" | 17 #include "base/path_service.h" |
| 18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 22 #include "crypto/scoped_nss_types.h" | 22 #include "crypto/scoped_nss_types.h" |
| 23 #include "crypto/scoped_test_nss_db.h" | 23 #include "crypto/scoped_test_nss_db.h" |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 EXPECT_EQ(NSSCertDatabase::TRUST_DEFAULT, | 1018 EXPECT_EQ(NSSCertDatabase::TRUST_DEFAULT, |
| 1019 cert_db_->GetCertTrust(certs2[0].get(), SERVER_CERT)); | 1019 cert_db_->GetCertTrust(certs2[0].get(), SERVER_CERT)); |
| 1020 | 1020 |
| 1021 new_certs = ListCerts(); | 1021 new_certs = ListCerts(); |
| 1022 ASSERT_EQ(2U, new_certs.size()); | 1022 ASSERT_EQ(2U, new_certs.size()); |
| 1023 EXPECT_STRNE(new_certs[0]->os_cert_handle()->nickname, | 1023 EXPECT_STRNE(new_certs[0]->os_cert_handle()->nickname, |
| 1024 new_certs[1]->os_cert_handle()->nickname); | 1024 new_certs[1]->os_cert_handle()->nickname); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 } // namespace net | 1027 } // namespace net |
| OLD | NEW |