OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This test suite uses SSLClientSocket to test the implementation of | 5 // This test suite uses SSLClientSocket to test the implementation of |
6 // SSLServerSocket. In order to establish connections between the sockets | 6 // SSLServerSocket. In order to establish connections between the sockets |
7 // we need two additional classes: | 7 // we need two additional classes: |
8 // 1. FakeSocket | 8 // 1. FakeSocket |
9 // Connects SSL socket to FakeDataChannel. This class is just a stub. | 9 // Connects SSL socket to FakeDataChannel. This class is just a stub. |
10 // | 10 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "net/base/ip_endpoint.h" | 48 #include "net/base/ip_endpoint.h" |
49 #include "net/base/net_errors.h" | 49 #include "net/base/net_errors.h" |
50 #include "net/cert/cert_status_flags.h" | 50 #include "net/cert/cert_status_flags.h" |
51 #include "net/cert/ct_policy_enforcer.h" | 51 #include "net/cert/ct_policy_enforcer.h" |
52 #include "net/cert/ct_policy_status.h" | 52 #include "net/cert/ct_policy_status.h" |
53 #include "net/cert/ct_verifier.h" | 53 #include "net/cert/ct_verifier.h" |
54 #include "net/cert/mock_cert_verifier.h" | 54 #include "net/cert/mock_cert_verifier.h" |
55 #include "net/cert/mock_client_cert_verifier.h" | 55 #include "net/cert/mock_client_cert_verifier.h" |
56 #include "net/cert/x509_certificate.h" | 56 #include "net/cert/x509_certificate.h" |
57 #include "net/http/transport_security_state.h" | 57 #include "net/http/transport_security_state.h" |
58 #include "net/log/net_log.h" | 58 #include "net/log/net_log_with_source.h" |
59 #include "net/socket/client_socket_factory.h" | 59 #include "net/socket/client_socket_factory.h" |
60 #include "net/socket/socket_test_util.h" | 60 #include "net/socket/socket_test_util.h" |
61 #include "net/socket/ssl_client_socket.h" | 61 #include "net/socket/ssl_client_socket.h" |
62 #include "net/socket/stream_socket.h" | 62 #include "net/socket/stream_socket.h" |
63 #include "net/ssl/scoped_openssl_types.h" | 63 #include "net/ssl/scoped_openssl_types.h" |
64 #include "net/ssl/ssl_cert_request_info.h" | 64 #include "net/ssl/ssl_cert_request_info.h" |
65 #include "net/ssl/ssl_cipher_suite_names.h" | 65 #include "net/ssl/ssl_cipher_suite_names.h" |
66 #include "net/ssl/ssl_connection_status_flags.h" | 66 #include "net/ssl/ssl_connection_status_flags.h" |
67 #include "net/ssl/ssl_info.h" | 67 #include "net/ssl/ssl_info.h" |
68 #include "net/ssl/ssl_private_key.h" | 68 #include "net/ssl/ssl_private_key.h" |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 int server_ret = server_socket_->Handshake(handshake_callback.callback()); | 1113 int server_ret = server_socket_->Handshake(handshake_callback.callback()); |
1114 | 1114 |
1115 client_ret = connect_callback.GetResult(client_ret); | 1115 client_ret = connect_callback.GetResult(client_ret); |
1116 server_ret = handshake_callback.GetResult(server_ret); | 1116 server_ret = handshake_callback.GetResult(server_ret); |
1117 | 1117 |
1118 ASSERT_THAT(client_ret, IsError(ERR_SSL_VERSION_OR_CIPHER_MISMATCH)); | 1118 ASSERT_THAT(client_ret, IsError(ERR_SSL_VERSION_OR_CIPHER_MISMATCH)); |
1119 ASSERT_THAT(server_ret, IsError(ERR_SSL_VERSION_OR_CIPHER_MISMATCH)); | 1119 ASSERT_THAT(server_ret, IsError(ERR_SSL_VERSION_OR_CIPHER_MISMATCH)); |
1120 } | 1120 } |
1121 | 1121 |
1122 } // namespace net | 1122 } // namespace net |
OLD | NEW |