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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "net/base/capturing_net_log.h" | 14 #include "net/base/capturing_net_log.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/mock_host_resolver.h" | |
19 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
20 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
21 #include "net/base/test_completion_callback.h" | 20 #include "net/base/test_completion_callback.h" |
| 21 #include "net/dns/mock_host_resolver.h" |
22 #include "net/socket/client_socket_factory.h" | 22 #include "net/socket/client_socket_factory.h" |
23 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
24 #include "net/socket/client_socket_pool_histograms.h" | 24 #include "net/socket/client_socket_pool_histograms.h" |
25 #include "net/socket/socket_test_util.h" | 25 #include "net/socket/socket_test_util.h" |
26 #include "net/socket/stream_socket.h" | 26 #include "net/socket/stream_socket.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 namespace net { | 29 namespace net { |
30 | 30 |
31 using internal::ClientSocketPoolBaseHelper; | 31 using internal::ClientSocketPoolBaseHelper; |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 EXPECT_TRUE(handle.socket()); | 1351 EXPECT_TRUE(handle.socket()); |
1352 IPEndPoint endpoint; | 1352 IPEndPoint endpoint; |
1353 handle.socket()->GetLocalAddress(&endpoint); | 1353 handle.socket()->GetLocalAddress(&endpoint); |
1354 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size()); | 1354 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size()); |
1355 EXPECT_EQ(1, client_socket_factory_.allocation_count()); | 1355 EXPECT_EQ(1, client_socket_factory_.allocation_count()); |
1356 } | 1356 } |
1357 | 1357 |
1358 } // namespace | 1358 } // namespace |
1359 | 1359 |
1360 } // namespace net | 1360 } // namespace net |
OLD | NEW |