| 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 #include "net/base/test_data_directory.h" | |
| 9 #include "net/cert/cert_status_flags.h" | 8 #include "net/cert/cert_status_flags.h" |
| 10 #include "net/cert/cert_verify_proc.h" | 9 #include "net/cert/cert_verify_proc.h" |
| 11 #include "net/cert/cert_verify_result.h" | 10 #include "net/cert/cert_verify_result.h" |
| 12 #include "net/cert/test_root_certs.h" | 11 #include "net/cert/test_root_certs.h" |
| 13 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
| 14 #include "net/test/cert_test_util.h" | 13 #include "net/test/cert_test_util.h" |
| 14 #include "net/test/test_data_directory.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 #if defined(USE_NSS_CERTS) | 17 #if defined(USE_NSS_CERTS) |
| 18 #include <nss.h> | 18 #include <nss.h> |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 EXPECT_FALSE(test_roots->Contains(root_cert_1->os_cert_handle())); | 157 EXPECT_FALSE(test_roots->Contains(root_cert_1->os_cert_handle())); |
| 158 EXPECT_FALSE(test_roots->Contains(root_cert_2->os_cert_handle())); | 158 EXPECT_FALSE(test_roots->Contains(root_cert_2->os_cert_handle())); |
| 159 } | 159 } |
| 160 #endif | 160 #endif |
| 161 | 161 |
| 162 // TODO(rsleevi): Add tests for revocation checking via CRLs, ensuring that | 162 // TODO(rsleevi): Add tests for revocation checking via CRLs, ensuring that |
| 163 // TestRootCerts properly injects itself into the validation process. See | 163 // TestRootCerts properly injects itself into the validation process. See |
| 164 // http://crbug.com/63958 | 164 // http://crbug.com/63958 |
| 165 | 165 |
| 166 } // namespace net | 166 } // namespace net |
| OLD | NEW |