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/dns_transaction.h" | 5 #include "net/dns/dns_transaction.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/message_loop/message_loop.h" |
16 #include "base/rand_util.h" | 17 #include "base/rand_util.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
18 #include "base/sys_byteorder.h" | 19 #include "base/sys_byteorder.h" |
19 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
20 #include "net/base/ip_address.h" | 21 #include "net/base/ip_address.h" |
21 #include "net/dns/dns_protocol.h" | 22 #include "net/dns/dns_protocol.h" |
22 #include "net/dns/dns_query.h" | 23 #include "net/dns/dns_query.h" |
23 #include "net/dns/dns_response.h" | 24 #include "net/dns/dns_response.h" |
24 #include "net/dns/dns_session.h" | 25 #include "net/dns/dns_session.h" |
25 #include "net/dns/dns_test_util.h" | 26 #include "net/dns/dns_test_util.h" |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 config_.timeout = TestTimeouts::tiny_timeout(); | 999 config_.timeout = TestTimeouts::tiny_timeout(); |
999 ConfigureFactory(); | 1000 ConfigureFactory(); |
1000 | 1001 |
1001 TransactionHelper helper0(".", dns_protocol::kTypeA, ERR_INVALID_ARGUMENT); | 1002 TransactionHelper helper0(".", dns_protocol::kTypeA, ERR_INVALID_ARGUMENT); |
1002 EXPECT_TRUE(helper0.Run(transaction_factory_.get())); | 1003 EXPECT_TRUE(helper0.Run(transaction_factory_.get())); |
1003 } | 1004 } |
1004 | 1005 |
1005 } // namespace | 1006 } // namespace |
1006 | 1007 |
1007 } // namespace net | 1008 } // namespace net |
OLD | NEW |