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

Skip to content
Commit ecbd9379 authored by Jack He's avatar Jack He
Browse files

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
parent fc1f8f54
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