Commit 754462aa authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

events: ozone: Fix XkbLayoutEngineVkTest

This test fails after 0ff1d4ac ("ozone: xkbcommon: Pre-compute masks
when setting keymap") but was not running on any bots. Fix it by
initializing the modifier masks in the test (thanks kpschoedel@
for debugging and finding this fix).

Bug: 1026406
Change-Id: I0639e8537d48a7cfb846dea76284dea8f4ff7eca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928249
Commit-Queue: Michael Spang <spang@chromium.org>
Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717732}
parent a33b8803
...@@ -70,6 +70,9 @@ class VkTestXkbKeyboardLayoutEngine : public XkbKeyboardLayoutEngine { ...@@ -70,6 +70,9 @@ class VkTestXkbKeyboardLayoutEngine : public XkbKeyboardLayoutEngine {
XkbFlagMapEntry e = {kTestFlags[i], kTestFlags[i]}; XkbFlagMapEntry e = {kTestFlags[i], kTestFlags[i]};
xkb_flag_map_.push_back(e); xkb_flag_map_.push_back(e);
} }
shift_mod_mask_ = EF_SHIFT_DOWN;
altgr_mod_mask_ = EF_ALTGR_DOWN;
} }
~VkTestXkbKeyboardLayoutEngine() override {} ~VkTestXkbKeyboardLayoutEngine() override {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment