Merge "Update to modern Bluetooth permissions." into sc-dev am: 5b7518fdf7
am: 74446ce412
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15073071 Change-Id: I12ebf9bd8a635fb36207979dfc39c05aa34f2e4b
This commit is contained in:
@@ -53,6 +53,6 @@ public class BluetoothPermissionActivityTest {
|
||||
mActivity.sendReplyIntentToReceiver(true, true);
|
||||
|
||||
verify(mContext).sendBroadcast(intentCaptor.capture(),
|
||||
eq("android.permission.BLUETOOTH_ADMIN"));
|
||||
eq("android.permission.BLUETOOTH_CONNECT"));
|
||||
}
|
||||
}
|
||||
|
@@ -82,7 +82,7 @@ public class DevicePickerFragmentTest {
|
||||
mFragment.onDeviceBondStateChanged(cachedDevice, BluetoothDevice.BOND_BONDED);
|
||||
|
||||
verify(mContext).sendBroadcast(intentCaptor.capture(),
|
||||
eq("android.permission.BLUETOOTH_ADMIN"));
|
||||
eq("android.permission.BLUETOOTH_CONNECT"));
|
||||
assertThat(intentCaptor.getValue().getComponent().getPackageName())
|
||||
.isEqualTo(mFragment.mLaunchPackage);
|
||||
}
|
||||
|
Reference in New Issue
Block a user