From 4c8ba5d95b22713dbd9f3367162c4d99eeb43ca3 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 23 Aug 2022 23:09:55 -0600 Subject: test: verify battery cut off host command v0 works Check both paths of the battery cut off host command (v0) by emulating an I2C failure when writing sb (address 0). BRANCH=none BUG=b:236075096 TEST=twister -s zephyr/test/drivers/drivers.default Signed-off-by: Yuval Peress Change-Id: Id50a8dc29f6f1c336287c1ae85244ef333ec623b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853763 Code-Coverage: Zoss Reviewed-by: Jeremy Bettis --- zephyr/include/emul/emul_smart_battery.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zephyr/include/emul/emul_smart_battery.h') diff --git a/zephyr/include/emul/emul_smart_battery.h b/zephyr/include/emul/emul_smart_battery.h index 27fc8835eb..cde58dd8c8 100644 --- a/zephyr/include/emul/emul_smart_battery.h +++ b/zephyr/include/emul/emul_smart_battery.h @@ -17,6 +17,8 @@ #include #include +#include "emul/emul_common_i2c.h" + /** * @brief Smart Battery emulator backend API * @defgroup sbat_emul Smart Battery emulator -- cgit v1.2.1