OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/address_list.h" | 7 #include "net/base/address_list.h" |
8 #include "net/base/cert_verifier.h" | 8 #include "net/base/cert_verifier.h" |
9 #include "net/base/host_resolver.h" | 9 #include "net/base/host_resolver.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 socket_factory_->CreateSSLClientSocket( | 746 socket_factory_->CreateSSLClientSocket( |
747 socket_handle, test_server.host_port_pair(), kDefaultSSLConfig, | 747 socket_handle, test_server.host_port_pair(), kDefaultSSLConfig, |
748 NULL, context)); | 748 NULL, context)); |
749 | 749 |
750 EXPECT_FALSE(ssl_socket->IsConnected()); | 750 EXPECT_FALSE(ssl_socket->IsConnected()); |
751 rv = ssl_socket->Connect(callback.callback()); | 751 rv = ssl_socket->Connect(callback.callback()); |
752 if (rv == net::ERR_IO_PENDING) | 752 if (rv == net::ERR_IO_PENDING) |
753 rv = callback.WaitForResult(); | 753 rv = callback.WaitForResult(); |
754 EXPECT_EQ(net::OK, rv); | 754 EXPECT_EQ(net::OK, rv); |
755 } | 755 } |
| 756 |
| 757 // Verifies that SSLClientSocket::ClearSessionCache can be called without |
| 758 // explicit NSS initialization. |
| 759 TEST(SSLClientSocket, ClearSessionCache) { |
| 760 net::SSLClientSocket::ClearSessionCache(); |
| 761 } |
OLD | NEW |