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

Skip to content
Commit aa8903ed authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Fixing FakeMotionEvent

Using spy turned out to introduce another problem when native MotionEvent is released from memory - which happens later, during other test runs when destructor of native MotionEvent is called.
Solution seems to be to create mock with delegation of all calls to the original object so we don't copy all fields from original object, just act as a proxy for it.

Fixes: 351784601
Flag: EXEMPT test fix
Test: Add Thread.sleep() and System.gc() several times at the end of the test using FakeMotionEvent and see it doesn't crash with native error
Change-Id: Icf39158d5a7f397ca50d271387058127190bf2eb
parent fb39ae32
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