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/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 8808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8819 session->GetTransportSocketPool( | 8819 session->GetTransportSocketPool( |
8820 HttpNetworkSession::NORMAL_SOCKET_POOL), | 8820 HttpNetworkSession::NORMAL_SOCKET_POOL), |
8821 BoundNetLog())); | 8821 BoundNetLog())); |
8822 EXPECT_EQ(OK, callback.WaitForResult()); | 8822 EXPECT_EQ(OK, callback.WaitForResult()); |
8823 | 8823 |
8824 SSLConfig ssl_config; | 8824 SSLConfig ssl_config; |
8825 session->ssl_config_service()->GetSSLConfig(&ssl_config); | 8825 session->ssl_config_service()->GetSSLConfig(&ssl_config); |
8826 scoped_ptr<ClientSocketHandle> ssl_connection(new ClientSocketHandle); | 8826 scoped_ptr<ClientSocketHandle> ssl_connection(new ClientSocketHandle); |
8827 SSLClientSocketContext context; | 8827 SSLClientSocketContext context; |
8828 context.cert_verifier = session_deps_.cert_verifier.get(); | 8828 context.cert_verifier = session_deps_.cert_verifier.get(); |
| 8829 context.transport_security_state = |
| 8830 session_deps_.transport_security_state.get(); |
8829 ssl_connection->set_socket( | 8831 ssl_connection->set_socket( |
8830 session_deps_.socket_factory->CreateSSLClientSocket( | 8832 session_deps_.socket_factory->CreateSSLClientSocket( |
8831 connection.release(), | 8833 connection.release(), |
8832 HostPortPair(std::string(), 443), | 8834 HostPortPair(std::string(), 443), |
8833 ssl_config, | 8835 ssl_config, |
8834 context)); | 8836 context)); |
8835 EXPECT_EQ(ERR_IO_PENDING, | 8837 EXPECT_EQ(ERR_IO_PENDING, |
8836 ssl_connection->socket()->Connect(callback.callback())); | 8838 ssl_connection->socket()->Connect(callback.callback())); |
8837 EXPECT_EQ(OK, callback.WaitForResult()); | 8839 EXPECT_EQ(OK, callback.WaitForResult()); |
8838 | 8840 |
(...skipping 2515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11354 EXPECT_EQ("hello!", response_data); | 11356 EXPECT_EQ("hello!", response_data); |
11355 EXPECT_FALSE( | 11357 EXPECT_FALSE( |
11356 session->spdy_session_pool()->HasSession(spdy_session_key_a)); | 11358 session->spdy_session_pool()->HasSession(spdy_session_key_a)); |
11357 EXPECT_FALSE( | 11359 EXPECT_FALSE( |
11358 session->spdy_session_pool()->HasSession(spdy_session_key_b)); | 11360 session->spdy_session_pool()->HasSession(spdy_session_key_b)); |
11359 | 11361 |
11360 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); | 11362 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); |
11361 } | 11363 } |
11362 | 11364 |
11363 } // namespace net | 11365 } // namespace net |
OLD | NEW |