1
0
Fork 0
forked from forks/qmk_firmware

Format code according to conventions (#17096)

This commit is contained in:
QMK Bot 2022-05-14 15:14:49 -07:00 committed by GitHub
parent a899c097ce
commit da63289505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ TEST_F(Secure, test_unlock_timeout) {
EXPECT_FALSE(secure_is_unlocked()); EXPECT_FALSE(secure_is_unlocked());
secure_unlock(); secure_unlock();
EXPECT_TRUE(secure_is_unlocked()); EXPECT_TRUE(secure_is_unlocked());
idle_for(SECURE_IDLE_TIMEOUT+1); idle_for(SECURE_IDLE_TIMEOUT + 1);
EXPECT_FALSE(secure_is_unlocked()); EXPECT_FALSE(secure_is_unlocked());
testing::Mock::VerifyAndClearExpectations(&driver); testing::Mock::VerifyAndClearExpectations(&driver);
@ -135,14 +135,13 @@ TEST_F(Secure, test_unlock_request_timeout) {
EXPECT_FALSE(secure_is_unlocked()); EXPECT_FALSE(secure_is_unlocked());
secure_request_unlock(); secure_request_unlock();
EXPECT_TRUE(secure_is_unlocking()); EXPECT_TRUE(secure_is_unlocking());
idle_for(SECURE_UNLOCK_TIMEOUT+1); idle_for(SECURE_UNLOCK_TIMEOUT + 1);
EXPECT_FALSE(secure_is_unlocking()); EXPECT_FALSE(secure_is_unlocking());
EXPECT_FALSE(secure_is_unlocked()); EXPECT_FALSE(secure_is_unlocked());
testing::Mock::VerifyAndClearExpectations(&driver); testing::Mock::VerifyAndClearExpectations(&driver);
} }
TEST_F(Secure, test_unlock_request_fail_mid) { TEST_F(Secure, test_unlock_request_fail_mid) {
TestDriver driver; TestDriver driver;
auto key_e = KeymapKey(0, 0, 0, KC_E); auto key_e = KeymapKey(0, 0, 0, KC_E);