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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ASSERT_TRUE(test_root.get()); | 137 ASSERT_TRUE(test_root.get()); |
138 | 138 |
139 ScopedTestRoot scoped_root(test_root.get()); | 139 ScopedTestRoot scoped_root(test_root.get()); |
140 | 140 |
141 CertVerifyResult verify_result; | 141 CertVerifyResult verify_result; |
142 TestCompletionCallback test_callback; | 142 TestCompletionCallback test_callback; |
143 std::unique_ptr<CertVerifier::Request> request; | 143 std::unique_ptr<CertVerifier::Request> request; |
144 | 144 |
145 int flags = CertVerifier::VERIFY_CERT_IO_ENABLED; | 145 int flags = CertVerifier::VERIFY_CERT_IO_ENABLED; |
146 int error = verifier()->Verify( | 146 int error = verifier()->Verify( |
147 test_cert.get(), "aia-host.invalid", std::string(), flags, NULL, | 147 CertVerifier::RequestParams(test_cert, "aia-host.invalid", flags, |
148 &verify_result, test_callback.callback(), &request, BoundNetLog()); | 148 std::string(), CertificateList()), |
| 149 nullptr, &verify_result, test_callback.callback(), &request, |
| 150 BoundNetLog()); |
149 ASSERT_EQ(ERR_IO_PENDING, error); | 151 ASSERT_EQ(ERR_IO_PENDING, error); |
150 | 152 |
151 error = test_callback.WaitForResult(); | 153 error = test_callback.WaitForResult(); |
152 | 154 |
153 EXPECT_EQ(OK, error); | 155 EXPECT_EQ(OK, error); |
154 | 156 |
155 // Ensure that NSS made an AIA request for the missing intermediate. | 157 // Ensure that NSS made an AIA request for the missing intermediate. |
156 EXPECT_LT(0, request_count()); | 158 EXPECT_LT(0, request_count()); |
157 } | 159 } |
158 | 160 |
159 } // namespace net | 161 } // namespace net |
OLD | NEW |