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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
11 #include "base/sys_byteorder.h" | 11 #include "base/sys_byteorder.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "net/base/big_endian.h" | |
14 #include "net/base/dns_util.h" | 13 #include "net/base/dns_util.h" |
15 #include "net/base/net_log.h" | 14 #include "net/base/net_log.h" |
16 #include "net/dns/dns_protocol.h" | 15 #include "net/dns/dns_protocol.h" |
17 #include "net/dns/dns_query.h" | 16 #include "net/dns/dns_query.h" |
18 #include "net/dns/dns_response.h" | 17 #include "net/dns/dns_response.h" |
19 #include "net/dns/dns_session.h" | 18 #include "net/dns/dns_session.h" |
20 #include "net/dns/dns_test_util.h" | 19 #include "net/dns/dns_test_util.h" |
21 #include "net/socket/socket_test_util.h" | 20 #include "net/socket/socket_test_util.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 | 22 |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 config_.timeout = TestTimeouts::tiny_timeout(); | 930 config_.timeout = TestTimeouts::tiny_timeout(); |
932 ConfigureFactory(); | 931 ConfigureFactory(); |
933 | 932 |
934 TransactionHelper helper0(".", dns_protocol::kTypeA, ERR_INVALID_ARGUMENT); | 933 TransactionHelper helper0(".", dns_protocol::kTypeA, ERR_INVALID_ARGUMENT); |
935 EXPECT_TRUE(helper0.Run(transaction_factory_.get())); | 934 EXPECT_TRUE(helper0.Run(transaction_factory_.get())); |
936 } | 935 } |
937 | 936 |
938 } // namespace | 937 } // namespace |
939 | 938 |
940 } // namespace net | 939 } // namespace net |
OLD | NEW |