blob: ba8f67ee8c01ffdc3e8c51123d831c3587af380c [file] [log] [blame]
Paul Stewartdd60e452011-08-08 11:38:36 -07001// Copyright (c) 2011 The Chromium OS 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 SHILL_MOCK_RESOLVER_H_
6#define SHILL_MOCK_RESOLVER_H_
7
8#include <gmock/gmock.h>
9
10#include "shill/resolver.h"
11
12namespace shill {
13
14class MockResolver : public Resolver {
15 public:
16 MOCK_METHOD1(SetDNSFromIPConfig, bool(const IPConfigRefPtr &ipconfig));
17 MOCK_METHOD2(SetDNSFromLists,
18 bool(const std::vector<std::string> &dns_servers,
19 const std::vector<std::string> &domain_search));
20 MOCK_METHOD0(ClearDNS, bool());
21};
22
23} // namespace shill
24
25#endif // SHILL_MOCK_RESOLVER_H_