blob: 18ec563d3f72b9bcdc74d6ecc8c6929b9311883a [file] [log] [blame]
// Copyright (c) 2011 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/macros.h>
#include <gmock/gmock.h>
#include "shill/resolver.h"
namespace shill {
class MockResolver : public Resolver {
public:
MockResolver();
~MockResolver() override;
MOCK_METHOD2(SetDNSFromLists,
bool(const std::vector<std::string>& dns_servers,
const std::vector<std::string>& domain_search));
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_