OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_test_util.h" | 5 #include "net/socket/transport_client_socket_pool_test_util.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "net/base/ip_address.h" | 18 #include "net/base/ip_address.h" |
19 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
20 #include "net/base/load_timing_info.h" | 20 #include "net/base/load_timing_info.h" |
21 #include "net/base/load_timing_info_test_util.h" | 21 #include "net/base/load_timing_info_test_util.h" |
22 #include "net/log/net_log_source.h" | 22 #include "net/log/net_log_source.h" |
23 #include "net/log/net_log_source_type.h" | 23 #include "net/log/net_log_source_type.h" |
24 #include "net/log/net_log_with_source.h" | 24 #include "net/log/net_log_with_source.h" |
25 #include "net/socket/client_socket_handle.h" | 25 #include "net/socket/client_socket_handle.h" |
| 26 #include "net/socket/datagram_client_socket.h" |
26 #include "net/socket/ssl_client_socket.h" | 27 #include "net/socket/ssl_client_socket.h" |
27 #include "net/udp/datagram_client_socket.h" | |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 namespace net { | 30 namespace net { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 IPAddress ParseIP(const std::string& ip) { | 34 IPAddress ParseIP(const std::string& ip) { |
35 IPAddress address; | 35 IPAddress address; |
36 CHECK(address.AssignFromIPLiteral(ip)); | 36 CHECK(address.AssignFromIPLiteral(ip)); |
37 return address; | 37 return address; |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 run_loop_quit_closure_ = run_loop.QuitClosure(); | 459 run_loop_quit_closure_ = run_loop.QuitClosure(); |
460 run_loop.Run(); | 460 run_loop.Run(); |
461 run_loop_quit_closure_.Reset(); | 461 run_loop_quit_closure_.Reset(); |
462 } | 462 } |
463 base::Closure trigger = triggerable_sockets_.front(); | 463 base::Closure trigger = triggerable_sockets_.front(); |
464 triggerable_sockets_.pop(); | 464 triggerable_sockets_.pop(); |
465 return trigger; | 465 return trigger; |
466 } | 466 } |
467 | 467 |
468 } // namespace net | 468 } // namespace net |
OLD | NEW |