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/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/socket/client_socket_handle.h" | 22 #include "net/socket/client_socket_handle.h" |
23 #include "net/socket/ssl_client_socket.h" | 23 #include "net/socket/ssl_client_socket.h" |
24 #include "net/udp/datagram_client_socket.h" | 24 #include "net/udp/datagram_client_socket.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace net { | 27 namespace net { |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 run_loop_quit_closure_ = run_loop.QuitClosure(); | 456 run_loop_quit_closure_ = run_loop.QuitClosure(); |
457 run_loop.Run(); | 457 run_loop.Run(); |
458 run_loop_quit_closure_.Reset(); | 458 run_loop_quit_closure_.Reset(); |
459 } | 459 } |
460 base::Closure trigger = triggerable_sockets_.front(); | 460 base::Closure trigger = triggerable_sockets_.front(); |
461 triggerable_sockets_.pop(); | 461 triggerable_sockets_.pop(); |
462 return trigger; | 462 return trigger; |
463 } | 463 } |
464 | 464 |
465 } // namespace net | 465 } // namespace net |
OLD | NEW |