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 <queue> | 5 #include <queue> |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "net/base/rand_callback.h" | 9 #include "net/base/rand_callback.h" |
10 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
11 #include "net/dns/mdns_client_impl.h" | 11 #include "net/dns/mdns_client_impl.h" |
12 #include "net/dns/mock_mdns_socket_factory.h" | 12 #include "net/dns/mock_mdns_socket_factory.h" |
13 #include "net/dns/record_rdata.h" | 13 #include "net/dns/record_rdata.h" |
14 #include "net/udp/udp_client_socket.h" | 14 #include "net/udp/udp_client_socket.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using ::testing::Invoke; | 18 using ::testing::Invoke; |
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 | 1163 |
1164 ASSERT_TRUE(InitConnection()); | 1164 ASSERT_TRUE(InitConnection()); |
1165 | 1165 |
1166 EXPECT_CALL(delegate_, OnConnectionError(ERR_SOCKET_NOT_CONNECTED)); | 1166 EXPECT_CALL(delegate_, OnConnectionError(ERR_SOCKET_NOT_CONNECTED)); |
1167 callback.Run(ERR_SOCKET_NOT_CONNECTED); | 1167 callback.Run(ERR_SOCKET_NOT_CONNECTED); |
1168 } | 1168 } |
1169 | 1169 |
1170 } // namespace | 1170 } // namespace |
1171 | 1171 |
1172 } // namespace net | 1172 } // namespace net |
OLD | NEW |