blob: ce908971af9b74589ffa0be863427a7e899346d4 [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_VPN_MOCK_OPENVPN_DRIVER_H_
#define SHILL_VPN_MOCK_OPENVPN_DRIVER_H_
#include <string>
#include <gmock/gmock.h>
#include "shill/vpn/openvpn_driver.h"
namespace shill {
class MockOpenVPNDriver : public OpenVPNDriver {
public:
MockOpenVPNDriver(Manager* manager, ProcessManager* process_manager)
: OpenVPNDriver(manager, process_manager) {}
MockOpenVPNDriver(const MockOpenVPNDriver&) = delete;
MockOpenVPNDriver& operator=(const MockOpenVPNDriver&) = delete;
~MockOpenVPNDriver() = default;
MOCK_METHOD(void, OnReconnecting, (ReconnectReason), (override));
MOCK_METHOD(void,
FailService,
(Service::ConnectFailure, const std::string&),
(override));
};
} // namespace shill
#endif // SHILL_VPN_MOCK_OPENVPN_DRIVER_H_