| 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 #include "net/socket/ssl_client_socket.h" | 5 #include "net/socket/ssl_client_socket.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <openssl/bio.h> | 10 #include <openssl/bio.h> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "net/cert/test_root_certs.h" | 30 #include "net/cert/test_root_certs.h" |
| 31 #include "net/dns/host_resolver.h" | 31 #include "net/dns/host_resolver.h" |
| 32 #include "net/socket/client_socket_factory.h" | 32 #include "net/socket/client_socket_factory.h" |
| 33 #include "net/socket/client_socket_handle.h" | 33 #include "net/socket/client_socket_handle.h" |
| 34 #include "net/socket/socket_test_util.h" | 34 #include "net/socket/socket_test_util.h" |
| 35 #include "net/socket/tcp_client_socket.h" | 35 #include "net/socket/tcp_client_socket.h" |
| 36 #include "net/ssl/openssl_client_key_store.h" | 36 #include "net/ssl/openssl_client_key_store.h" |
| 37 #include "net/ssl/ssl_cert_request_info.h" | 37 #include "net/ssl/ssl_cert_request_info.h" |
| 38 #include "net/ssl/ssl_config_service.h" | 38 #include "net/ssl/ssl_config_service.h" |
| 39 #include "net/test/cert_test_util.h" | 39 #include "net/test/cert_test_util.h" |
| 40 #include "net/test/spawned_test_server.h" | 40 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 41 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
| 42 #include "testing/platform_test.h" | 42 #include "testing/platform_test.h" |
| 43 | 43 |
| 44 namespace net { | 44 namespace net { |
| 45 | 45 |
| 46 namespace { | 46 namespace { |
| 47 | 47 |
| 48 typedef OpenSSLClientKeyStore::ScopedEVP_PKEY ScopedEVP_PKEY; | 48 typedef OpenSSLClientKeyStore::ScopedEVP_PKEY ScopedEVP_PKEY; |
| 49 | 49 |
| 50 // BIO_free is a macro, it can't be used as a template parameter. | 50 // BIO_free is a macro, it can't be used as a template parameter. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 EXPECT_TRUE(sock_->IsConnected()); | 264 EXPECT_TRUE(sock_->IsConnected()); |
| 265 | 265 |
| 266 EXPECT_TRUE(CheckSSLClientSocketSentCert()); | 266 EXPECT_TRUE(CheckSSLClientSocketSentCert()); |
| 267 | 267 |
| 268 sock_->Disconnect(); | 268 sock_->Disconnect(); |
| 269 EXPECT_FALSE(sock_->IsConnected()); | 269 EXPECT_FALSE(sock_->IsConnected()); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace | 272 } // namespace |
| 273 } // namespace net | 273 } // namespace net |
| OLD | NEW |