blob: fa60d08395ea895a4071a3b096bcf2fba87b7bf0 [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_VIRTUAL_DEVICE_H_
#define SHILL_MOCK_VIRTUAL_DEVICE_H_
#include <string>
#include <gmock/gmock.h>
#include "shill/virtual_device.h"
namespace shill {
class MockVirtualDevice : public VirtualDevice {
public:
MockVirtualDevice(Manager* manager,
const std::string& link_name,
int interface_index,
Technology technology);
~MockVirtualDevice() override;
MOCK_METHOD(void,
Stop,
(Error*, const EnabledStateChangedCallback&),
(override));
MOCK_METHOD(void, UpdateIPConfig, (const IPConfig::Properties&), (override));
MOCK_METHOD(void, DropConnection, (), (override));
MOCK_METHOD(void, ResetConnection, (), (override));
MOCK_METHOD(void, SetServiceState, (Service::ConnectState), (override));
MOCK_METHOD(void, SetEnabled, (bool), (override));
private:
DISALLOW_COPY_AND_ASSIGN(MockVirtualDevice);
};
} // namespace shill
#endif // SHILL_MOCK_VIRTUAL_DEVICE_H_