Wait for dispatcher idle before asserting policy callbacks
Before this CL, the policy state was asserted too early. The dispatcher might not have finished processing the commands yet. To fix this, force the tests to wait until dispatcher is idle by providing a dispatcher reference to the assertion function. Bug: 282837934 Test: atest inputflinger_tests Change-Id: Ie427071f774d2bfb4b9ebfef94c7971656a69509
Showing
- services/inputflinger/dispatcher/InputDispatcher.cpp 1 addition, 1 deletionservices/inputflinger/dispatcher/InputDispatcher.cpp
- services/inputflinger/dispatcher/InputDispatcher.h 3 additions, 3 deletionsservices/inputflinger/dispatcher/InputDispatcher.h
- services/inputflinger/dispatcher/include/InputDispatcherInterface.h 1 addition, 1 deletion...nputflinger/dispatcher/include/InputDispatcherInterface.h
- services/inputflinger/tests/InputDispatcher_test.cpp 9 additions, 7 deletionsservices/inputflinger/tests/InputDispatcher_test.cpp
Loading
Please register or sign in to comment