| 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_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "net/base/port_util.h" | 15 #include "net/base/port_util.h" |
| 16 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
| 17 #include "net/base/test_data_directory.h" | |
| 18 #include "net/cert/ct_policy_enforcer.h" | 17 #include "net/cert/ct_policy_enforcer.h" |
| 19 #include "net/cert/mock_cert_verifier.h" | 18 #include "net/cert/mock_cert_verifier.h" |
| 20 #include "net/cert/multi_log_ct_verifier.h" | 19 #include "net/cert/multi_log_ct_verifier.h" |
| 21 #include "net/dns/mock_host_resolver.h" | 20 #include "net/dns/mock_host_resolver.h" |
| 22 #include "net/http/bidirectional_stream_impl.h" | 21 #include "net/http/bidirectional_stream_impl.h" |
| 23 #include "net/http/bidirectional_stream_request_info.h" | 22 #include "net/http/bidirectional_stream_request_info.h" |
| 24 #include "net/http/http_auth_handler_factory.h" | 23 #include "net/http/http_auth_handler_factory.h" |
| 25 #include "net/http/http_network_session.h" | 24 #include "net/http/http_network_session.h" |
| 26 #include "net/http/http_network_session_peer.h" | 25 #include "net/http/http_network_session_peer.h" |
| 27 #include "net/http/http_network_transaction.h" | 26 #include "net/http/http_network_transaction.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 44 #include "net/socket/client_socket_handle.h" | 43 #include "net/socket/client_socket_handle.h" |
| 45 #include "net/socket/mock_client_socket_pool_manager.h" | 44 #include "net/socket/mock_client_socket_pool_manager.h" |
| 46 #include "net/socket/next_proto.h" | 45 #include "net/socket/next_proto.h" |
| 47 #include "net/socket/socket_test_util.h" | 46 #include "net/socket/socket_test_util.h" |
| 48 #include "net/spdy/spdy_session.h" | 47 #include "net/spdy/spdy_session.h" |
| 49 #include "net/spdy/spdy_session_pool.h" | 48 #include "net/spdy/spdy_session_pool.h" |
| 50 #include "net/spdy/spdy_test_util_common.h" | 49 #include "net/spdy/spdy_test_util_common.h" |
| 51 #include "net/ssl/ssl_config_service.h" | 50 #include "net/ssl/ssl_config_service.h" |
| 52 #include "net/ssl/ssl_config_service_defaults.h" | 51 #include "net/ssl/ssl_config_service_defaults.h" |
| 53 #include "net/test/cert_test_util.h" | 52 #include "net/test/cert_test_util.h" |
| 53 #include "net/test/test_data_directory.h" |
| 54 | 54 |
| 55 // This file can be included from net/http even though | 55 // This file can be included from net/http even though |
| 56 // it is in net/websockets because it doesn't | 56 // it is in net/websockets because it doesn't |
| 57 // introduce any link dependency to net/websockets. | 57 // introduce any link dependency to net/websockets. |
| 58 #include "net/websockets/websocket_handshake_stream_base.h" | 58 #include "net/websockets/websocket_handshake_stream_base.h" |
| 59 #include "testing/gtest/include/gtest/gtest.h" | 59 #include "testing/gtest/include/gtest/gtest.h" |
| 60 | 60 |
| 61 namespace net { | 61 namespace net { |
| 62 | 62 |
| 63 class BidirectionalStreamImpl; | 63 class BidirectionalStreamImpl; |
| (...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2079 session->GetTransportSocketPool( | 2079 session->GetTransportSocketPool( |
| 2080 HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); | 2080 HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); |
| 2081 EXPECT_EQ(1, GetSocketPoolGroupCount( | 2081 EXPECT_EQ(1, GetSocketPoolGroupCount( |
| 2082 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); | 2082 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); |
| 2083 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 2083 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
| 2084 } | 2084 } |
| 2085 | 2085 |
| 2086 } // namespace | 2086 } // namespace |
| 2087 | 2087 |
| 2088 } // namespace net | 2088 } // namespace net |
| OLD | NEW |