| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_net/nss_ocsp.h" | 5 #include "net/cert_net/nss_ocsp.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
| 17 #include "net/cert/cert_status_flags.h" | 17 #include "net/cert/cert_status_flags.h" |
| 18 #include "net/cert/cert_verifier.h" | 18 #include "net/cert/cert_verifier.h" |
| 19 #include "net/cert/cert_verify_proc.h" | 19 #include "net/cert/cert_verify_proc.h" |
| 20 #include "net/cert/cert_verify_proc_nss.h" | 20 #include "net/cert/cert_verify_proc_nss.h" |
| 21 #include "net/cert/cert_verify_result.h" | 21 #include "net/cert/cert_verify_result.h" |
| 22 #include "net/cert/multi_threaded_cert_verifier.h" | 22 #include "net/cert/multi_threaded_cert_verifier.h" |
| 23 #include "net/cert/test_root_certs.h" | 23 #include "net/cert/test_root_certs.h" |
| 24 #include "net/cert/x509_certificate.h" | 24 #include "net/cert/x509_certificate.h" |
| 25 #include "net/log/net_log_with_source.h" |
| 25 #include "net/test/cert_test_util.h" | 26 #include "net/test/cert_test_util.h" |
| 26 #include "net/test/gtest_util.h" | 27 #include "net/test/gtest_util.h" |
| 27 #include "net/test/test_data_directory.h" | 28 #include "net/test/test_data_directory.h" |
| 28 #include "net/url_request/url_request_filter.h" | 29 #include "net/url_request/url_request_filter.h" |
| 29 #include "net/url_request/url_request_interceptor.h" | 30 #include "net/url_request/url_request_interceptor.h" |
| 30 #include "net/url_request/url_request_test_job.h" | 31 #include "net/url_request/url_request_test_job.h" |
| 31 #include "net/url_request/url_request_test_util.h" | 32 #include "net/url_request/url_request_test_util.h" |
| 32 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
| 34 | 35 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 158 |
| 158 error = test_callback.WaitForResult(); | 159 error = test_callback.WaitForResult(); |
| 159 | 160 |
| 160 EXPECT_THAT(error, IsOk()); | 161 EXPECT_THAT(error, IsOk()); |
| 161 | 162 |
| 162 // Ensure that NSS made an AIA request for the missing intermediate. | 163 // Ensure that NSS made an AIA request for the missing intermediate. |
| 163 EXPECT_LT(0, request_count()); | 164 EXPECT_LT(0, request_count()); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace net | 167 } // namespace net |
| OLD | NEW |