| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/base/tcp_client_socket_pool.h" | 5 #include "net/socket/tcp_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "net/base/client_socket.h" | |
| 10 #include "net/base/client_socket_factory.h" | |
| 11 #include "net/base/client_socket_handle.h" | |
| 12 #include "net/base/host_resolver_unittest.h" | 9 #include "net/base/host_resolver_unittest.h" |
| 13 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 14 #include "net/base/test_completion_callback.h" | 11 #include "net/base/test_completion_callback.h" |
| 12 #include "net/socket/client_socket.h" |
| 13 #include "net/socket/client_socket_factory.h" |
| 14 #include "net/socket/client_socket_handle.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const int kMaxSocketsPerGroup = 6; | 21 const int kMaxSocketsPerGroup = 6; |
| 22 | 22 |
| 23 // Note that the first and the last are the same, the first should be handled | 23 // Note that the first and the last are the same, the first should be handled |
| 24 // before the last, since it was inserted first. | 24 // before the last, since it was inserted first. |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 EXPECT_EQ(OK, reqs[i]->WaitForResult()); | 579 EXPECT_EQ(OK, reqs[i]->WaitForResult()); |
| 580 reqs[i]->handle.Reset(); | 580 reqs[i]->handle.Reset(); |
| 581 } | 581 } |
| 582 | 582 |
| 583 EXPECT_EQ(kNumPendingRequests, TestSocketRequest::completion_count); | 583 EXPECT_EQ(kNumPendingRequests, TestSocketRequest::completion_count); |
| 584 } | 584 } |
| 585 | 585 |
| 586 } // namespace | 586 } // namespace |
| 587 | 587 |
| 588 } // namespace net | 588 } // namespace net |
| OLD | NEW |