~aleteoryx/muditaos

ref: 3a9ab31a76de2d7f9c4fff34f770ad93541aa804 muditaos/module-services/service-time/tests/MockAlarmHandler.hpp -rw-r--r-- 609 bytes
3a9ab31a — Piotr Tański [BH-776] Implemented PreWakeUp unit tests 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <service-time/AlarmHandler.hpp>

namespace alarms
{

    class MockAlarmHandler : public AlarmHandler
    {
      public:
        auto handle(const AlarmEventRecord &record) -> bool
        {
            LOG_DEBUG("MockAlarmHandler");
            return true;
        }
        auto handleOff(const AlarmEventRecord &record) -> bool
        {
            LOG_DEBUG("MockAlarmHandler");
            return true;
        }
    };
} // namespace alarms