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

Commit 0552840e authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "AdapterServiceTest: Wait for ScanMode Broadcast" am: 4cca9815

am: 2dfddbeb

Change-Id: Ie819cc2593a9e06c35b28cebd9c2ee62488c03ea
parents 5d1ed69c 2dfddbeb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -213,6 +213,8 @@ public class AdapterServiceTest {
        verifyStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_ON,
                invocationNumber + 1, CONTEXT_SWITCH_MS);

        verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(2 * invocationNumber + 2))
                .sendBroadcast(any(), eq(android.Manifest.permission.BLUETOOTH));
        final int scanMode = mAdapterService.getScanMode();
        Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE
                || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);