blob: ac404e53163862ce7778c7d30ae5c6b4f954e523 [file] [log] [blame]
Paul Stewartbf667612012-06-29 14:49:54 -07001// Copyright (c) 2012 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
Paul Stewartbf667612012-06-29 14:49:54 -070023 MOCK_METHOD3(SetDNSFromLists,
Paul Stewartdd60e452011-08-08 11:38:36 -070024 bool(const std::vector<std::string> &dns_servers,
Paul Stewartbf667612012-06-29 14:49:54 -070025 const std::vector<std::string> &domain_search,
26 TimeoutParameters timeout));
Paul Stewartdd60e452011-08-08 11:38:36 -070027 MOCK_METHOD0(ClearDNS, bool());
Paul Stewart4d5efb72012-09-17 12:24:34 -070028 MOCK_METHOD1(set_ignored_search_list,
29 void(const std::vector<std::string> &ignored_list));
Darin Petkoveac68e62011-08-26 16:24:51 -070030
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockResolver);
Paul Stewartdd60e452011-08-08 11:38:36 -070033};
34
35} // namespace shill
36
37#endif // SHILL_MOCK_RESOLVER_H_