blob: ef748b88b880047cd3a89d93fb51be3d7e24575c [file] [log] [blame]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DNS_PROXY_MOCK_RESOLV_CONF_H_
#define DNS_PROXY_MOCK_RESOLV_CONF_H_
#include <string>
#include <vector>
#include <gmock/gmock.h>
#include "dns-proxy/resolv_conf.h"
namespace dns_proxy {
class MockResolvConf : public ResolvConf {
public:
MockResolvConf();
MockResolvConf(const MockResolvConf&) = delete;
MockResolvConf& operator=(const MockResolvConf&) = delete;
~MockResolvConf() override;
MOCK_METHOD(bool,
SetDNSFromLists,
(const std::vector<std::string>&,
const std::vector<std::string>&),
(override));
MOCK_METHOD(bool,
SetDNSProxyAddresses,
(const std::vector<std::string>&),
(override));
MOCK_METHOD(void, set_path, (const base::FilePath&), (override));
};
} // namespace dns_proxy
#endif // DNS_PROXY_MOCK_RESOLV_CONF_H_