Loading android/app/tests/unit/src/com/android/bluetooth/mapclient/MapClientStateMachineTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,7 @@ public class MapClientStateMachineTest { when(mMockMasClient.makeRequest(any(Request.class))).thenReturn(true); mMceStateMachine = new MceStateMachine(mMockMapClientService, mTestDevice, mMockMasClient, mMockDatabase); TestUtils.waitForLooperToFinishScheduledTask(mMceStateMachine.getHandler().getLooper()); Assert.assertNotNull(mMceStateMachine); if (Looper.myLooper() == null) { Looper.prepare(); Loading Loading
android/app/tests/unit/src/com/android/bluetooth/mapclient/MapClientStateMachineTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,7 @@ public class MapClientStateMachineTest { when(mMockMasClient.makeRequest(any(Request.class))).thenReturn(true); mMceStateMachine = new MceStateMachine(mMockMapClientService, mTestDevice, mMockMasClient, mMockDatabase); TestUtils.waitForLooperToFinishScheduledTask(mMceStateMachine.getHandler().getLooper()); Assert.assertNotNull(mMceStateMachine); if (Looper.myLooper() == null) { Looper.prepare(); Loading