OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/web/net/cert_verifier_block_adapter.h" | 5 #include "ios/web/net/cert_verifier_block_adapter.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/test/ios/wait_util.h" | 8 #include "base/test/ios/wait_util.h" |
9 #include "ios/web/public/test/test_web_thread_bundle.h" | 9 #include "ios/web/public/test/test_web_thread_bundle.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "net/base/test_data_directory.h" | |
12 #include "net/cert/cert_verifier.h" | 11 #include "net/cert/cert_verifier.h" |
13 #include "net/cert/cert_verify_result.h" | 12 #include "net/cert/cert_verify_result.h" |
14 #include "net/cert/crl_set.h" | 13 #include "net/cert/crl_set.h" |
15 #include "net/cert/mock_cert_verifier.h" | 14 #include "net/cert/mock_cert_verifier.h" |
16 #include "net/cert/x509_certificate.h" | 15 #include "net/cert/x509_certificate.h" |
17 #include "net/log/net_log.h" | 16 #include "net/log/net_log.h" |
18 #include "net/test/cert_test_util.h" | 17 #include "net/test/cert_test_util.h" |
| 18 #include "net/test/test_data_directory.h" |
19 #include "testing/platform_test.h" | 19 #include "testing/platform_test.h" |
20 | 20 |
21 namespace web { | 21 namespace web { |
22 | 22 |
23 namespace { | 23 namespace { |
24 // Test cert filename. | 24 // Test cert filename. |
25 const char kCertFileName[] = "ok_cert.pem"; | 25 const char kCertFileName[] = "ok_cert.pem"; |
26 // Test hostname for CertVerifier. | 26 // Test hostname for CertVerifier. |
27 const char kHostName[] = "www.example.com"; | 27 const char kHostName[] = "www.example.com"; |
28 | 28 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 }); | 165 }); |
166 test_adapter.reset(); | 166 test_adapter.reset(); |
167 | 167 |
168 // Make sure that the completion handler is called. | 168 // Make sure that the completion handler is called. |
169 base::test::ios::WaitUntilCondition(^{ | 169 base::test::ios::WaitUntilCondition(^{ |
170 return verification_completed; | 170 return verification_completed; |
171 }, base::MessageLoop::current(), base::TimeDelta()); | 171 }, base::MessageLoop::current(), base::TimeDelta()); |
172 } | 172 } |
173 | 173 |
174 } // namespace web | 174 } // namespace web |
OLD | NEW |