| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/nss_cert_database_chromeos.h" | 5 #include "net/cert/nss_cert_database_chromeos.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "crypto/nss_util_internal.h" | 13 #include "crypto/nss_util_internal.h" |
| 14 #include "crypto/scoped_test_nss_chromeos_user.h" | 14 #include "crypto/scoped_test_nss_chromeos_user.h" |
| 15 #include "crypto/scoped_test_nss_db.h" | 15 #include "crypto/scoped_test_nss_db.h" |
| 16 #include "net/base/test_data_directory.h" | 16 #include "net/base/test_data_directory.h" |
| 17 #include "net/cert/cert_database.h" | 17 #include "net/cert/cert_database.h" |
| 18 #include "net/test/cert_test_util.h" | 18 #include "net/test/cert_test_util.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 "client_2.pem", | 316 "client_2.pem", |
| 317 "client_2.pk8", | 317 "client_2.pk8", |
| 318 system_db_.slot())); | 318 system_db_.slot())); |
| 319 CertificateList certs; | 319 CertificateList certs; |
| 320 db_2_->ListCertsSync(&certs); | 320 db_2_->ListCertsSync(&certs); |
| 321 EXPECT_TRUE(IsCertInCertificateList(cert_1.get(), certs)); | 321 EXPECT_TRUE(IsCertInCertificateList(cert_1.get(), certs)); |
| 322 EXPECT_FALSE(IsCertInCertificateList(cert_2.get(), certs)); | 322 EXPECT_FALSE(IsCertInCertificateList(cert_2.get(), certs)); |
| 323 } | 323 } |
| 324 | 324 |
| 325 } // namespace net | 325 } // namespace net |
| OLD | NEW |