summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-17 08:41:53 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-10-19 08:58:01 -0700
commit4d4c36e9df592548ae169cf6f145ecc9399a7963 (patch)
tree4437c668fbceb54b376812571658f21e90b296e5 /tests
parent25e898ff2f7e52e81d07f6849ff9a9227d81066a (diff)
downloadvboot-4d4c36e9df592548ae169cf6f145ecc9399a7963.tar.gz
Add a constant for the escape keystabilize-atlas-11177.B
We use this in a few places, so add a constant. BUG=chromium:837018 BRANCH=none TEST=FEATURES=test emerge-grunt --nodeps vboot_reference Change-Id: I7182d0ac52c23c01397de08683ad83b818486f91 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1286221 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/vboot_api_kernel2_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vboot_api_kernel2_tests.c b/tests/vboot_api_kernel2_tests.c
index 3bc3a7f8..2f76490a 100644
--- a/tests/vboot_api_kernel2_tests.c
+++ b/tests/vboot_api_kernel2_tests.c
@@ -226,7 +226,7 @@ static void VbUserConfirmsTest(void)
TEST_EQ(VbUserConfirms(&ctx, 0), 1, "Enter");
ResetMocks();
- mock_keypress[0] = 0x1b;
+ mock_keypress[0] = VB_KEY_ESC;
TEST_EQ(VbUserConfirms(&ctx, 0), 0, "Esc");
ResetMocks();
@@ -407,7 +407,7 @@ static void VbBootDevTest(void)
shared->flags = VBSD_HONOR_VIRT_DEV_SWITCH | VBSD_BOOT_DEV_SWITCH_ON;
mock_keypress[0] = ' ';
mock_keypress[1] = ' ';
- mock_keypress[2] = 0x1b;
+ mock_keypress[2] = VB_KEY_ESC;
TEST_EQ(VbBootDeveloper(&ctx), 1002, "Space-space");
TEST_EQ(screens_displayed[0], VB_SCREEN_DEVELOPER_WARNING,
" warning screen");