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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "base/single_thread_task_runner.h" | 22 #include "base/single_thread_task_runner.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
25 #include "base/thread_task_runner_handle.h" | 25 #include "base/thread_task_runner_handle.h" |
26 #include "base/threading/platform_thread.h" | 26 #include "base/threading/platform_thread.h" |
27 #include "base/values.h" | 27 #include "base/values.h" |
28 #include "net/base/load_timing_info.h" | 28 #include "net/base/load_timing_info.h" |
29 #include "net/base/load_timing_info_test_util.h" | 29 #include "net/base/load_timing_info_test_util.h" |
30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
31 #include "net/base/request_priority.h" | 31 #include "net/base/request_priority.h" |
32 #include "net/base/socket_performance_watcher.h" | |
33 #include "net/base/test_completion_callback.h" | 32 #include "net/base/test_completion_callback.h" |
34 #include "net/http/http_response_headers.h" | 33 #include "net/http/http_response_headers.h" |
35 #include "net/log/net_log.h" | 34 #include "net/log/net_log.h" |
36 #include "net/log/test_net_log.h" | 35 #include "net/log/test_net_log.h" |
37 #include "net/log/test_net_log_entry.h" | 36 #include "net/log/test_net_log_entry.h" |
38 #include "net/log/test_net_log_util.h" | 37 #include "net/log/test_net_log_util.h" |
39 #include "net/socket/client_socket_factory.h" | 38 #include "net/socket/client_socket_factory.h" |
40 #include "net/socket/client_socket_handle.h" | 39 #include "net/socket/client_socket_handle.h" |
| 40 #include "net/socket/socket_performance_watcher.h" |
41 #include "net/socket/socket_test_util.h" | 41 #include "net/socket/socket_test_util.h" |
42 #include "net/socket/ssl_client_socket.h" | 42 #include "net/socket/ssl_client_socket.h" |
43 #include "net/socket/stream_socket.h" | 43 #include "net/socket/stream_socket.h" |
44 #include "net/udp/datagram_client_socket.h" | 44 #include "net/udp/datagram_client_socket.h" |
45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 | 47 |
48 using ::testing::Invoke; | 48 using ::testing::Invoke; |
49 using ::testing::Return; | 49 using ::testing::Return; |
50 | 50 |
(...skipping 3782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3833 request(1)->handle()->Reset(); | 3833 request(1)->handle()->Reset(); |
3834 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); | 3834 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); |
3835 | 3835 |
3836 EXPECT_EQ(OK, request(2)->WaitForResult()); | 3836 EXPECT_EQ(OK, request(2)->WaitForResult()); |
3837 EXPECT_FALSE(request(1)->have_result()); | 3837 EXPECT_FALSE(request(1)->have_result()); |
3838 } | 3838 } |
3839 | 3839 |
3840 } // namespace | 3840 } // namespace |
3841 | 3841 |
3842 } // namespace net | 3842 } // namespace net |
OLD | NEW |