blob: e3dc8990e88de8834409d881fd7c517e72d448df [file] [edit]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_WIFI_MOCK_LOCAL_DEVICE_H_
#define SHILL_WIFI_MOCK_LOCAL_DEVICE_H_
#include "shill/wifi/local_device.h"
#include <string>
#include <gmock/gmock.h>
namespace shill {
class MockLocalDevice : public LocalDevice {
public:
MockLocalDevice(Manager* manager,
IfaceType type,
const std::string& link_name,
uint32_t phy_index,
WiFiPhy::Priority priority,
const EventCallback& callback);
~MockLocalDevice() override;
bool Start() override { return true; }
bool Stop() override { return true; }
LocalService* GetService() const override { return nullptr; }
MOCK_METHOD(bool, IsServiceUp, (), (const, override));
};
} // namespace shill
#endif // SHILL_WIFI_MOCK_LOCAL_DEVICE_H_