diff options
author | Tristan Honscheid <honscheid@google.com> | 2022-09-02 16:16:25 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-09 17:59:11 +0000 |
commit | 3d2a1c9fb1ebb38a0e5ca291e237d569da3bb904 (patch) | |
tree | 38b55d5844d1c1b565371eff6110cafac68b1b85 /common/system.c | |
parent | 3e456353c4f4f1c1c26c42ed6ac0298d04294971 (diff) | |
download | chrome-ec-3d2a1c9fb1ebb38a0e5ca291e237d569da3bb904.tar.gz |
zephyr: tests: Test handling of special key combos in `keyboard_scan.c`
Test that VOL_UP + ALT + {R|H} cause AP reboot and hibernate,
respectively.
BRANCH=None
BUG=b:244606945
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: Ic5d927fe830acbd9f6f33a0e436d6ed7c4301fce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3872728
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c index acb31c3774..b47cd62cb3 100644 --- a/common/system.c +++ b/common/system.c @@ -1042,7 +1042,8 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd) } } -void system_enter_hibernate(uint32_t seconds, uint32_t microseconds) +test_mockable void system_enter_hibernate(uint32_t seconds, + uint32_t microseconds) { if (!IS_ENABLED(CONFIG_HIBERNATE)) return; |