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" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 CertVerifyResult verify_result; | 146 CertVerifyResult verify_result; |
147 TestCompletionCallback test_callback; | 147 TestCompletionCallback test_callback; |
148 std::unique_ptr<CertVerifier::Request> request; | 148 std::unique_ptr<CertVerifier::Request> request; |
149 | 149 |
150 int flags = CertVerifier::VERIFY_CERT_IO_ENABLED; | 150 int flags = CertVerifier::VERIFY_CERT_IO_ENABLED; |
151 int error = verifier()->Verify( | 151 int error = verifier()->Verify( |
152 CertVerifier::RequestParams(test_cert, "aia-host.invalid", flags, | 152 CertVerifier::RequestParams(test_cert, "aia-host.invalid", flags, |
153 std::string(), CertificateList()), | 153 std::string(), CertificateList()), |
154 nullptr, &verify_result, test_callback.callback(), &request, | 154 nullptr, &verify_result, test_callback.callback(), &request, |
155 BoundNetLog()); | 155 NetLogWithSource()); |
156 ASSERT_THAT(error, IsError(ERR_IO_PENDING)); | 156 ASSERT_THAT(error, IsError(ERR_IO_PENDING)); |
157 | 157 |
158 error = test_callback.WaitForResult(); | 158 error = test_callback.WaitForResult(); |
159 | 159 |
160 EXPECT_THAT(error, IsOk()); | 160 EXPECT_THAT(error, IsOk()); |
161 | 161 |
162 // Ensure that NSS made an AIA request for the missing intermediate. | 162 // Ensure that NSS made an AIA request for the missing intermediate. |
163 EXPECT_LT(0, request_count()); | 163 EXPECT_LT(0, request_count()); |
164 } | 164 } |
165 | 165 |
166 } // namespace net | 166 } // namespace net |
OLD | NEW |