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

Commit 5998f0a2 authored by Yara Hassan's avatar Yara Hassan Committed by Automerger Merge Worker
Browse files

Merge "Fix bluetooth test broken by Service change" into rvc-dev am:...

Merge "Fix bluetooth test broken by Service change" into rvc-dev am: 9361b62d am: 1dae372f am: ea66331f

Change-Id: Ib1785543892275265d1158d1b34f896b9bdf0c74
parents c031a743 ea66331f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ public class AdapterServiceTest {
    private @Mock IBluetoothCallback mIBluetoothCallback;
    private @Mock Binder mBinder;
    private @Mock AudioManager mAudioManager;
    private @Mock android.app.Application mApplication;

    private static final int CONTEXT_SWITCH_MS = 100;
    private static final int ONE_SECOND_MS = 1000;
@@ -162,7 +163,7 @@ public class AdapterServiceTest {
        when(mMockService2.getName()).thenReturn("Service2");

        // Attach a context to the service for permission checks.
        mAdapterService.attach(mMockContext, null, null, null, null, null);
        mAdapterService.attach(mMockContext, null, null, null, mApplication, null);

        mAdapterService.onCreate();
        mServiceBinder.registerCallback(mIBluetoothCallback);