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

Commit 6267f471 authored by Yara Hassan's avatar Yara Hassan Committed by Automerger Merge Worker
Browse files

Merge "Fix bluetooth test broken by Service change" am: 9e483fe9

Change-Id: I4a9004e05f465b7ed88a1a9185aa5c907b3279cc
parents 9779bce0 9e483fe9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -85,6 +85,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;
@@ -159,7 +160,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);