Popular sites on the NTP: re-download popular suggestions once per Chrome run
[chromium-blink-merge.git] / chrome / browser / net / dns_probe_test_util.h
blob0f36174d7cb7b29bc08cd3269ec73e6b4ef25b67
1 // 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.
5 #ifndef CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
6 #define CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "net/dns/dns_client.h"
10 #include "net/dns/dns_test_util.h"
12 namespace chrome_browser_net {
14 // Creates a mock DNS client with a single rule for the known-good query
15 // (currently google.com) that returns |result|.
16 scoped_ptr<net::DnsClient> CreateMockDnsClientForProbes(
17 net::MockDnsClientRule::Result result);
19 } // namespace chrome_browser_net
21 #endif // CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_