blob: eea22cd739d35a12fd5210bbda0b7232c29d7ddf [file] [log] [blame]
[email protected]2ea1efe2013-07-17 05:23:131// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
6#define CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
7
dcheng4e7c0422016-04-14 00:59:058#include <memory>
9
[email protected]2ea1efe2013-07-17 05:23:1310#include "net/dns/dns_client.h"
11#include "net/dns/dns_test_util.h"
12
13namespace chrome_browser_net {
14
15// Creates a mock DNS client with a single rule for the known-good query
eroman1efc237c2016-12-14 00:00:4516// (currently google.com) that returns |result| for A queries.
dcheng4e7c0422016-04-14 00:59:0517std::unique_ptr<net::DnsClient> CreateMockDnsClientForProbes(
eroman1efc237c2016-12-14 00:00:4518 net::MockDnsClientRule::ResultType result);
[email protected]2ea1efe2013-07-17 05:23:1319
20} // namespace chrome_browser_net
21
22#endif // CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_