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_client.h" | 5 #include "net/dns/dns_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // static | 96 // static |
97 std::unique_ptr<DnsClient> DnsClient::CreateClientForTesting( | 97 std::unique_ptr<DnsClient> DnsClient::CreateClientForTesting( |
98 NetLog* net_log, | 98 NetLog* net_log, |
99 ClientSocketFactory* socket_factory, | 99 ClientSocketFactory* socket_factory, |
100 const RandIntCallback& rand_int_callback) { | 100 const RandIntCallback& rand_int_callback) { |
101 return base::WrapUnique( | 101 return base::WrapUnique( |
102 new DnsClientImpl(net_log, socket_factory, rand_int_callback)); | 102 new DnsClientImpl(net_log, socket_factory, rand_int_callback)); |
103 } | 103 } |
104 | 104 |
105 } // namespace net | 105 } // namespace net |
106 | |
OLD | NEW |