OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/test/fuzzed_data_provider.h" | 14 #include "base/test/fuzzed_data_provider.h" |
15 #include "net/base/address_family.h" | 15 #include "net/base/address_family.h" |
16 #include "net/base/address_list.h" | 16 #include "net/base/address_list.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/request_priority.h" | 18 #include "net/base/request_priority.h" |
19 #include "net/dns/fuzzed_host_resolver.h" | 19 #include "net/dns/fuzzed_host_resolver.h" |
20 #include "net/dns/host_resolver.h" | 20 #include "net/dns/host_resolver.h" |
| 21 #include "net/log/net_log_with_source.h" |
21 #include "net/log/test_net_log.h" | 22 #include "net/log/test_net_log.h" |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 const char* kHostNames[] = {"foo", "foo.com", "a.foo.com", | 26 const char* kHostNames[] = {"foo", "foo.com", "a.foo.com", |
26 "bar", "localhost", "localhost6"}; | 27 "bar", "localhost", "localhost6"}; |
27 | 28 |
28 net::AddressFamily kAddressFamilies[] = { | 29 net::AddressFamily kAddressFamilies[] = { |
29 net::ADDRESS_FAMILY_UNSPECIFIED, net::ADDRESS_FAMILY_IPV4, | 30 net::ADDRESS_FAMILY_UNSPECIFIED, net::ADDRESS_FAMILY_IPV4, |
30 net::ADDRESS_FAMILY_IPV6, | 31 net::ADDRESS_FAMILY_IPV6, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 break; | 227 break; |
227 } | 228 } |
228 } | 229 } |
229 } | 230 } |
230 | 231 |
231 // Clean up any pending tasks, after deleting everything. | 232 // Clean up any pending tasks, after deleting everything. |
232 base::RunLoop().RunUntilIdle(); | 233 base::RunLoop().RunUntilIdle(); |
233 | 234 |
234 return 0; | 235 return 0; |
235 } | 236 } |
OLD | NEW |