diff options
Diffstat (limited to 'zephyr/test/drivers/common/src/test_mocks.c')
-rw-r--r-- | zephyr/test/drivers/common/src/test_mocks.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/test/drivers/common/src/test_mocks.c b/zephyr/test/drivers/common/src/test_mocks.c index 6c8db5c27a..d2e4770f9b 100644 --- a/zephyr/test/drivers/common/src/test_mocks.c +++ b/zephyr/test/drivers/common/src/test_mocks.c @@ -20,6 +20,9 @@ DEFINE_FAKE_VOID_FUNC(system_reset, int); DEFINE_FAKE_VOID_FUNC(software_panic, uint32_t, uint32_t); DEFINE_FAKE_VOID_FUNC(assert_post_action, const char *, unsigned int); +/* Mocks for common/lid_angle.c */ +DEFINE_FAKE_VOID_FUNC(lid_angle_peripheral_enable, int); + /** * @brief Reset all the fakes before each test. */ @@ -36,6 +39,7 @@ static void fff_reset_rule_before(const struct ztest_unit_test *test, RESET_FAKE(system_reset); RESET_FAKE(software_panic); RESET_FAKE(assert_post_action); + RESET_FAKE(lid_angle_peripheral_enable); } ZTEST_RULE(fff_reset_rule, fff_reset_rule_before, NULL); |