blob: b787dca2bc29081e3e0b6e01001445eb2ce6bf1c [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
Hristo Stefanoved2c28c2011-11-29 15:37:30 -08008#include <string>
9#include <vector>
10
Darin Petkoveac68e62011-08-26 16:24:51 -070011#include <base/basictypes.h>
Paul Stewartdd60e452011-08-08 11:38:36 -070012#include <gmock/gmock.h>
13
14#include "shill/resolver.h"
15
16namespace shill {
17
18class MockResolver : public Resolver {
19 public:
Darin Petkoveac68e62011-08-26 16:24:51 -070020 MockResolver();
21 virtual ~MockResolver();
22
Paul Stewartdd60e452011-08-08 11:38:36 -070023 MOCK_METHOD1(SetDNSFromIPConfig, bool(const IPConfigRefPtr &ipconfig));
24 MOCK_METHOD2(SetDNSFromLists,
25 bool(const std::vector<std::string> &dns_servers,
26 const std::vector<std::string> &domain_search));
27 MOCK_METHOD0(ClearDNS, bool());
Darin Petkoveac68e62011-08-26 16:24:51 -070028
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockResolver);
Paul Stewartdd60e452011-08-08 11:38:36 -070031};
32
33} // namespace shill
34
35#endif // SHILL_MOCK_RESOLVER_H_