| 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/client_socket_pool_base.h" | 5 #include "net/socket/client_socket_pool_base.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/scoped_vector.h" | |
| 19 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 20 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
| 21 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
| 22 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
| 23 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
| 25 #include "base/test/histogram_tester.h" | 24 #include "base/test/histogram_tester.h" |
| 26 #include "base/threading/platform_thread.h" | 25 #include "base/threading/platform_thread.h" |
| 27 #include "base/threading/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
| 28 #include "base/values.h" | 27 #include "base/values.h" |
| (...skipping 4068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4097 request(1)->handle()->Reset(); | 4096 request(1)->handle()->Reset(); |
| 4098 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); | 4097 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); |
| 4099 | 4098 |
| 4100 EXPECT_THAT(request(2)->WaitForResult(), IsOk()); | 4099 EXPECT_THAT(request(2)->WaitForResult(), IsOk()); |
| 4101 EXPECT_FALSE(request(1)->have_result()); | 4100 EXPECT_FALSE(request(1)->have_result()); |
| 4102 } | 4101 } |
| 4103 | 4102 |
| 4104 } // namespace | 4103 } // namespace |
| 4105 | 4104 |
| 4106 } // namespace net | 4105 } // namespace net |
| OLD | NEW |