Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0397297f authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Fix StemKeyGestureTests

StemKeyGestureTests was failing after ag/23249820, where the stem key
behaviors are fetched in PhoneWindowManager#updateSettings() (instead of
PhoneWindowManager#init()). Since updateSettings() was mocked out in
this test, the key behavior was not being read properly.

We now enable the updateSettings() method in PhoneWindowManager for
tests, and use the Setting values of the key press behaviors to
configure test behaviors.

Bug: 287995215
Test: atest WmTests:StemKeyGestureTests WmTests:PowerKeyGestureTests WmTests:SingleKeyGestureTests WmTests:ModifierShortcutTests WmTests:KeyCombinationManagerTests WmTests:CombinationKeyTests WmTests:PhoneWindowManagerTests
Change-Id: I9ef0ab5923e124b350497b2f176b34e4f275a47d
parent 36d7bddc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment