Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: net/dns/mdns_client_unittest.cc

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/dns/mdns_client_impl.cc ('k') | net/net.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/threading/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "base/time/clock.h" 17 #include "base/time/clock.h"
18 #include "base/time/default_clock.h" 18 #include "base/time/default_clock.h"
19 #include "base/timer/mock_timer.h" 19 #include "base/timer/mock_timer.h"
20 #include "net/base/ip_address.h" 20 #include "net/base/ip_address.h"
21 #include "net/base/rand_callback.h" 21 #include "net/base/rand_callback.h"
22 #include "net/base/test_completion_callback.h" 22 #include "net/base/test_completion_callback.h"
23 #include "net/dns/mdns_client_impl.h" 23 #include "net/dns/mdns_client_impl.h"
24 #include "net/dns/mock_mdns_socket_factory.h" 24 #include "net/dns/mock_mdns_socket_factory.h"
25 #include "net/dns/record_rdata.h" 25 #include "net/dns/record_rdata.h"
26 #include "net/udp/udp_client_socket.h" 26 #include "net/socket/udp_client_socket.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 using ::testing::Invoke; 30 using ::testing::Invoke;
31 using ::testing::InvokeWithoutArgs; 31 using ::testing::InvokeWithoutArgs;
32 using ::testing::StrictMock; 32 using ::testing::StrictMock;
33 using ::testing::NiceMock; 33 using ::testing::NiceMock;
34 using ::testing::Exactly; 34 using ::testing::Exactly;
35 using ::testing::Return; 35 using ::testing::Return;
36 using ::testing::SaveArg; 36 using ::testing::SaveArg;
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 SendToInternal(sample_packet_, "224.0.0.251:5353", _)) 1260 SendToInternal(sample_packet_, "224.0.0.251:5353", _))
1261 .Times(0); 1261 .Times(0);
1262 // Expect call for the second IPv6 packed. 1262 // Expect call for the second IPv6 packed.
1263 EXPECT_CALL(*socket_ipv6_, 1263 EXPECT_CALL(*socket_ipv6_,
1264 SendToInternal(sample_packet_, "[ff02::fb]:5353", _)) 1264 SendToInternal(sample_packet_, "[ff02::fb]:5353", _))
1265 .WillOnce(Return(OK)); 1265 .WillOnce(Return(OK));
1266 callback.Run(OK); 1266 callback.Run(OK);
1267 } 1267 }
1268 1268
1269 } // namespace net 1269 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/mdns_client_impl.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698