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/transport_client_socket_pool.h" | 5 #include "net/socket/transport_client_socket_pool.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "net/base/ip_address.h" | 14 #include "net/base/ip_address.h" |
15 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
16 #include "net/base/load_timing_info.h" | 16 #include "net/base/load_timing_info.h" |
17 #include "net/base/load_timing_info_test_util.h" | 17 #include "net/base/load_timing_info_test_util.h" |
18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
19 #include "net/base/test_completion_callback.h" | 19 #include "net/base/test_completion_callback.h" |
20 #include "net/dns/mock_host_resolver.h" | 20 #include "net/dns/mock_host_resolver.h" |
| 21 #include "net/log/net_log_with_source.h" |
21 #include "net/log/test_net_log.h" | 22 #include "net/log/test_net_log.h" |
22 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
23 #include "net/socket/socket_test_util.h" | 24 #include "net/socket/socket_test_util.h" |
24 #include "net/socket/stream_socket.h" | 25 #include "net/socket/stream_socket.h" |
25 #include "net/socket/transport_client_socket_pool_test_util.h" | 26 #include "net/socket/transport_client_socket_pool_test_util.h" |
26 #include "net/test/gtest_util.h" | 27 #include "net/test/gtest_util.h" |
27 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
29 | 30 |
30 using net::test::IsError; | 31 using net::test::IsError; |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 handle.socket()->GetPeerAddress(&endpoint); | 1139 handle.socket()->GetPeerAddress(&endpoint); |
1139 // Verify that the socket used is connected to the IPv6 address. | 1140 // Verify that the socket used is connected to the IPv6 address. |
1140 EXPECT_TRUE(endpoint.address().IsIPv6()); | 1141 EXPECT_TRUE(endpoint.address().IsIPv6()); |
1141 // Verify that TCP FastOpen was not turned on for the socket. | 1142 // Verify that TCP FastOpen was not turned on for the socket. |
1142 EXPECT_FALSE(socket_data.IsUsingTCPFastOpen()); | 1143 EXPECT_FALSE(socket_data.IsUsingTCPFastOpen()); |
1143 } | 1144 } |
1144 | 1145 |
1145 } // namespace | 1146 } // namespace |
1146 | 1147 |
1147 } // namespace net | 1148 } // namespace net |
OLD | NEW |