diff --git a/drivers/CoreRFIDReader/tests/CoreRFIDReaderCR95HF_test.cpp b/drivers/CoreRFIDReader/tests/CoreRFIDReaderCR95HF_test.cpp index b49da4c971..d1b621ab57 100644 --- a/drivers/CoreRFIDReader/tests/CoreRFIDReaderCR95HF_test.cpp +++ b/drivers/CoreRFIDReader/tests/CoreRFIDReaderCR95HF_test.cpp @@ -212,3 +212,17 @@ TEST_F(CoreRFIDReaderTest, getTag) EXPECT_EQ(tag.data, expected_values); } + +TEST_F(CoreRFIDReaderTest, enableDeepSleep) +{ + EXPECT_CALL(mockBufferedSerial, enableDeepSleep()); + + reader.enableDeepSleep(); +} + +TEST_F(CoreRFIDReaderTest, disableDeepSleep) +{ + EXPECT_CALL(mockBufferedSerial, disableDeepSleep()); + + reader.disableDeepSleep(); +} diff --git a/libs/RFIDKit/tests/RFIDKit_test.cpp b/libs/RFIDKit/tests/RFIDKit_test.cpp index 6a4eada13e..ce66d61f16 100644 --- a/libs/RFIDKit/tests/RFIDKit_test.cpp +++ b/libs/RFIDKit/tests/RFIDKit_test.cpp @@ -181,3 +181,17 @@ TEST_F(RFIDKitTest, getLastMagicCardActivated) EXPECT_EQ(rfid_kit.getLastMagicCardActivated(), MagicCard::emergency_stop); } + +TEST_F(RFIDKitTest, enableDeepSleep) +{ + EXPECT_CALL(mock_reader, enableDeepSleep()); + + rfid_kit.enableDeepSleep(); +} + +TEST_F(RFIDKitTest, disableDeepSleep) +{ + EXPECT_CALL(mock_reader, disableDeepSleep()); + + rfid_kit.disableDeepSleep(); +}