| 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/crw_cert_verification_controller.h" | 5 #include "ios/web/net/crw_cert_verification_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/bind_objc_block.h" | 7 #include "base/mac/bind_objc_block.h" |
| 8 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/test/ios/wait_util.h" | 10 #include "base/test/ios/wait_util.h" |
| 11 #include "ios/web/public/test/web_test.h" |
| 10 #include "ios/web/public/web_thread.h" | 12 #include "ios/web/public/web_thread.h" |
| 11 #import "ios/web/test/web_test.h" | |
| 12 #import "ios/web/web_state/wk_web_view_security_util.h" | 13 #import "ios/web/web_state/wk_web_view_security_util.h" |
| 13 #include "net/base/test_data_directory.h" | 14 #include "net/base/test_data_directory.h" |
| 14 #include "net/cert/mock_cert_verifier.h" | 15 #include "net/cert/mock_cert_verifier.h" |
| 15 #include "net/cert/x509_certificate.h" | 16 #include "net/cert/x509_certificate.h" |
| 16 #include "net/test/cert_test_util.h" | 17 #include "net/test/cert_test_util.h" |
| 17 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
| 18 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
| 19 | 20 |
| 20 namespace web { | 21 namespace web { |
| 21 | 22 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 255 |
| 255 SecurityStyle style = SECURITY_STYLE_UNKNOWN; | 256 SecurityStyle style = SECURITY_STYLE_UNKNOWN; |
| 256 net::CertStatus status = net::CERT_STATUS_ALL_ERRORS; | 257 net::CertStatus status = net::CERT_STATUS_ALL_ERRORS; |
| 257 | 258 |
| 258 QueryStatus(invalid_trust_, kHostName, &style, &status); | 259 QueryStatus(invalid_trust_, kHostName, &style, &status); |
| 259 EXPECT_EQ(SECURITY_STYLE_AUTHENTICATION_BROKEN, style); | 260 EXPECT_EQ(SECURITY_STYLE_AUTHENTICATION_BROKEN, style); |
| 260 EXPECT_EQ(net::CERT_STATUS_DATE_INVALID, status); | 261 EXPECT_EQ(net::CERT_STATUS_DATE_INVALID, status); |
| 261 } | 262 } |
| 262 | 263 |
| 263 } // namespace web | 264 } // namespace web |
| OLD | NEW |