blob: 945268a9efcad0f613cec8ad04862ad1099e214a [file] [log] [blame]
// Copyright 2018 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(const MockResolver&) = delete;
MockResolver& operator=(const MockResolver&) = delete;
~MockResolver() override;
MOCK_METHOD(bool,
SetDNSFromLists,
(const std::vector<std::string>&,
const std::vector<std::string>&),
(override));
MOCK_METHOD(bool, ClearDNS, (), (override));
MOCK_METHOD(void,
set_ignored_search_list,
(const std::vector<std::string>&),
(override));
};
} // namespace shill
#endif // SHILL_MOCK_RESOLVER_H_