blob: 12796e13f779c213dda522be95a3c4d1f1aa5b85 [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() 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));
private:
DISALLOW_COPY_AND_ASSIGN(MockResolver);
};
} // namespace shill
#endif // SHILL_MOCK_RESOLVER_H_