OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/dns/mapped_host_resolver.h" | 5 #include "net/dns/mapped_host_resolver.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "net/base/address_list.h" | 9 #include "net/base/address_list.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "net/base/test_completion_callback.h" | 11 #include "net/base/test_completion_callback.h" |
12 #include "net/dns/mock_host_resolver.h" | 12 #include "net/dns/mock_host_resolver.h" |
13 #include "net/log/net_log.h" | 13 #include "net/log/net_log_with_source.h" |
14 #include "net/test/gtest_util.h" | 14 #include "net/test/gtest_util.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 net::test::IsError; | 18 using net::test::IsError; |
19 using net::test::IsOk; | 19 using net::test::IsOk; |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 NetLogWithSource()); | 230 NetLogWithSource()); |
231 EXPECT_THAT(rv, IsError(ERR_IO_PENDING)); | 231 EXPECT_THAT(rv, IsError(ERR_IO_PENDING)); |
232 rv = callback2.WaitForResult(); | 232 rv = callback2.WaitForResult(); |
233 EXPECT_THAT(rv, IsOk()); | 233 EXPECT_THAT(rv, IsOk()); |
234 EXPECT_EQ("192.168.1.5:80", FirstAddress(address_list)); | 234 EXPECT_EQ("192.168.1.5:80", FirstAddress(address_list)); |
235 } | 235 } |
236 | 236 |
237 } // namespace | 237 } // namespace |
238 | 238 |
239 } // namespace net | 239 } // namespace net |
OLD | NEW |