summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2022-12-02 11:39:20 -0800
committer Siarhei Vishniakou <svv@google.com> 2022-12-05 07:23:20 -0800
commite9349e7a626bc5b7a495f0f5169cab6d679b97f4 (patch)
tree49178b5c9326348ff8d7513383d241e403575d8c /libs/gui/BLASTBufferQueue.cpp
parent2f61bdcda1ac3d90640e851bb6a427b796f582e2 (diff)
Ensure returned event is non-null
Currently, we aren't checking whether the returned event is null. This causes NPE during a test run when the implementation is bad. The NPE causes the entire test run to fail, rather than failing individual tests. This is inconvenient when doing TDD. In this change, add a matcher for downtime to simplify the code, and add null checks for cases where a matcher wouldn't be convenient. Bug: 211379801 Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests Change-Id: Id0c3cf1908adee0d810c7e24f8507c14f689f999
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions