diff --git a/include/interface/drivers/DeepSleepEnabled.h b/include/interface/drivers/DeepSleepEnabled.h new file mode 100644 index 0000000000..f5d720bcd2 --- /dev/null +++ b/include/interface/drivers/DeepSleepEnabled.h @@ -0,0 +1,18 @@ +// Leka - LekaOS +// Copyright 2024 APF France handicap +// SPDX-License-Identifier: Apache-2.0 + +#pragma once + +namespace leka::interface { + +class DeepSleepEnabled +{ + public: + virtual ~DeepSleepEnabled() = default; + + virtual void enableDeepSleep() = 0; + virtual void disableDeepSleep() = 0; +}; + +} // namespace leka::interface diff --git a/tests/unit/mocks/mocks/leka/DeepSleepEnabled.h b/tests/unit/mocks/mocks/leka/DeepSleepEnabled.h new file mode 100644 index 0000000000..1c54c5e676 --- /dev/null +++ b/tests/unit/mocks/mocks/leka/DeepSleepEnabled.h @@ -0,0 +1,19 @@ +// Leka - LekaOS +// Copyright 2024 APF France handicap +// SPDX-License-Identifier: Apache-2.0 + +#pragma once + +#include "gmock/gmock.h" +#include "interface/drivers/DeepSleepEnabled.h" + +namespace leka::mock { + +class DeepSleepEnabled : public interface::DeepSleepEnabled +{ + public: + MOCK_METHOD(void, enableDeepSleep, (), (override)); + MOCK_METHOD(void, disableDeepSleep, (), (override)); +}; + +} // namespace leka::mock