HidHostDualModeTest: Use Mockito to wait for events instead of Future
* This helps get rid of unncessary broadcast receiver and listener classes * Before this change, there is no gurantee that A2DP, HFP, and HID_HOST service proxy will be connected on time during setUp() function. This change ensures that we always wait for service proxy connections * Before this change, some times the Future is created after calling the method under test, if the future is completed before the Future is completed, then we will wait forever for the future. This change makes sure this race condition won't happen Bug: 361800494 Test: atest -v HidHostDualModeTest Flag: EXEMPT TEST_ONLY Change-Id: I1422902152c69501dd8ccce4811a71d37bfcd51d
Loading
Please register or sign in to comment