Chromium Code Reviews| Index: chrome/browser/net/dns_probe_test_util.h |
| diff --git a/chrome/browser/net/dns_probe_test_util.h b/chrome/browser/net/dns_probe_test_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2c265e985bd915783dc4112ceebf446513796b27 |
| --- /dev/null |
| +++ b/chrome/browser/net/dns_probe_test_util.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_ |
| +#define CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "net/dns/dns_client.h" |
|
mmenke
2013/06/12 19:17:12
I don't believe this is needed. If it is, should
Deprecated (see juliatuttle)
2013/06/13 14:37:04
It is required; scoped_ptr needs to know how to de
|
| +#include "net/dns/dns_test_util.h" |
| + |
| +namespace net { |
| +class DnsClient; |
| +} |
| + |
| +namespace chrome_browser_net { |
| + |
| +// Creates a mock DNS client with a single rule for the known-good query |
| +// (currently google.com) that returns |good_result|. |
| +scoped_ptr<net::DnsClient> CreateMockDnsClientForProbes( |
| + net::MockDnsClientRule::Result good_result); |
| + |
| +} // namespace chrome_browser_net |
| + |
| +#endif |