vboot/ui: use trusted keypress in cancel TO_DEV test
In order to ensure that the TO_DEV action function does not
trigger TO_DEV confirmation for the PHYSICAL_PRESENCE_KEYBOARD=1
case, use trusted DOWN and ENTER keys to navigate and press the
"Cancel" button. If this is erroneously picked up by the TO_DEV
action function, then a transition to developer mode will occur.
This hole in test coverage was discovered by CL:2234678.
TEST=PHYSICAL_PRESENCE_KEYBOARD=0 make runtests
TEST=PHYSICAL_PRESENCE_KEYBOARD=1 make runtests
Signed-off-by: Joel Kitching <firstname.lastname@example.org>
Reviewed-by: Yu-Ping Wu <email@example.com>
Tested-by: Joel Kitching <firstname.lastname@example.org>
Commit-Queue: Yu-Ping Wu <email@example.com>
1 file changed