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

Commit 7370da02 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix broken tests on LocalBluetoothProfileManagerTest"

parents 748258c9 726cc14c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -175,6 +175,12 @@ public class BluetoothEventManager {
                null, mReceiverHandler);
    }

    @VisibleForTesting
    void registerProfileIntentReceiverForTest() {
        mContext.registerReceiverAsUser(mProfileBroadcastReceiver, mUserHandle,
                mProfileIntentFilter, null, mReceiverHandler);
    }

    @VisibleForTesting
    void addProfileHandler(String action, Handler handler) {
        mHandlerMap.put(action, handler);
+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ public class LocalBluetoothProfileManagerTest {
        when(mCachedBluetoothDevice.getDevice()).thenReturn(mDevice);
        mProfileManager = new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter,
                mDeviceManager, mEventManager);
        mEventManager.registerProfileIntentReceiverForTest();
    }

    /**