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/client_socket_pool_base.h" | 5 #include "net/socket/client_socket_pool_base.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 15 #include "base/values.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 #include "net/base/net_log.h" | 17 #include "net/base/net_log.h" |
17 #include "net/base/net_log_unittest.h" | 18 #include "net/base/net_log_unittest.h" |
18 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
19 #include "net/base/test_completion_callback.h" | 20 #include "net/base/test_completion_callback.h" |
20 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
21 #include "net/socket/client_socket_factory.h" | 22 #include "net/socket/client_socket_factory.h" |
22 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
23 #include "net/socket/client_socket_pool_histograms.h" | 24 #include "net/socket/client_socket_pool_histograms.h" |
24 #include "net/socket/socket_test_util.h" | 25 #include "net/socket/socket_test_util.h" |
(...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3267 // The hung connect job should still be there, but everything else should be | 3268 // The hung connect job should still be there, but everything else should be |
3268 // complete. | 3269 // complete. |
3269 EXPECT_EQ(1, pool_->NumConnectJobsInGroup("a")); | 3270 EXPECT_EQ(1, pool_->NumConnectJobsInGroup("a")); |
3270 EXPECT_EQ(0, pool_->IdleSocketCountInGroup("a")); | 3271 EXPECT_EQ(0, pool_->IdleSocketCountInGroup("a")); |
3271 EXPECT_EQ(1, pool_->NumActiveSocketsInGroup("a")); | 3272 EXPECT_EQ(1, pool_->NumActiveSocketsInGroup("a")); |
3272 } | 3273 } |
3273 | 3274 |
3274 } // namespace | 3275 } // namespace |
3275 | 3276 |
3276 } // namespace net | 3277 } // namespace net |
OLD | NEW |