blob: 05ac126c57f4f1cb14bd286947848834e46cb26b [file] [log] [blame]
mukesh agrawal23ac6b72013-01-31 18:52:37 -08001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
Paul Stewartdd60e452011-08-08 11:38:36 -07002// 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
mukesh agrawal23ac6b72013-01-31 18:52:37 -080023 MOCK_METHOD2(SetDNSFromLists,
Paul Stewartdd60e452011-08-08 11:38:36 -070024 bool(const std::vector<std::string> &dns_servers,
mukesh agrawal23ac6b72013-01-31 18:52:37 -080025 const std::vector<std::string> &domain_search));
Paul Stewartdd60e452011-08-08 11:38:36 -070026 MOCK_METHOD0(ClearDNS, bool());
Paul Stewart4d5efb72012-09-17 12:24:34 -070027 MOCK_METHOD1(set_ignored_search_list,
28 void(const std::vector<std::string> &ignored_list));
Darin Petkoveac68e62011-08-26 16:24:51 -070029
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockResolver);
Paul Stewartdd60e452011-08-08 11:38:36 -070032};
33
34} // namespace shill
35
36#endif // SHILL_MOCK_RESOLVER_H_