OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <memory> | 5 #include <memory> |
6 #include <queue> | 6 #include <queue> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/time/clock.h" | 16 #include "base/time/clock.h" |
17 #include "base/time/default_clock.h" | 17 #include "base/time/default_clock.h" |
18 #include "base/timer/mock_timer.h" | 18 #include "base/timer/mock_timer.h" |
19 #include "net/base/ip_address.h" | 19 #include "net/base/ip_address.h" |
20 #include "net/base/rand_callback.h" | 20 #include "net/base/rand_callback.h" |
21 #include "net/base/test_completion_callback.h" | 21 #include "net/base/test_completion_callback.h" |
22 #include "net/dns/mdns_client_impl.h" | 22 #include "net/dns/mdns_client_impl.h" |
23 #include "net/dns/mock_mdns_socket_factory.h" | 23 #include "net/dns/mock_mdns_socket_factory.h" |
24 #include "net/dns/record_rdata.h" | 24 #include "net/dns/record_rdata.h" |
25 #include "net/udp/udp_client_socket.h" | 25 #include "net/udp/udp_client_socket.h" |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 SendToInternal(sample_packet_, "224.0.0.251:5353", _)) | 1259 SendToInternal(sample_packet_, "224.0.0.251:5353", _)) |
1260 .Times(0); | 1260 .Times(0); |
1261 // Expect call for the second IPv6 packed. | 1261 // Expect call for the second IPv6 packed. |
1262 EXPECT_CALL(*socket_ipv6_, | 1262 EXPECT_CALL(*socket_ipv6_, |
1263 SendToInternal(sample_packet_, "[ff02::fb]:5353", _)) | 1263 SendToInternal(sample_packet_, "[ff02::fb]:5353", _)) |
1264 .WillOnce(Return(OK)); | 1264 .WillOnce(Return(OK)); |
1265 callback.Run(OK); | 1265 callback.Run(OK); |
1266 } | 1266 } |
1267 | 1267 |
1268 } // namespace net | 1268 } // namespace net |
OLD | NEW |