summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2024-07-18 14:17:12 +0100
committer Michal Brzezinski <brzezinski@google.com> 2024-07-18 14:17:12 +0100
commitaa8903ed321f5058d450bacbba1d59f1ad425d39 (patch)
tree03189c8ed061867d9e1c9f10dc21d1c4e758281e /api/api_test.go
parentfb39ae329f0e0c8c7ce593c5f9ab03fe092ae6e9 (diff)
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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions