blob: ac404e53163862ce7778c7d30ae5c6b4f954e523 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_RESOLVER_H_
#define SHILL_MOCK_RESOLVER_H_
#include <string>
#include <vector>
#include <base/basictypes.h>
#include <gmock/gmock.h>
#include "shill/resolver.h"
namespace shill {
class MockResolver : public Resolver {
public:
MockResolver();
virtual ~MockResolver();
MOCK_METHOD3(SetDNSFromLists,
bool(const std::vector<std::string> &dns_servers,
const std::vector<std::string> &domain_search,
TimeoutParameters timeout));
MOCK_METHOD0(ClearDNS, bool());
MOCK_METHOD1(set_ignored_search_list,
void(const std::vector<std::string> &ignored_list));
private:
DISALLOW_COPY_AND_ASSIGN(MockResolver);
};
} // namespace shill
#endif // SHILL_MOCK_RESOLVER_H_