Merge "Show all devices, including connected ones, into "Previously connected" page" into rvc-qpr-dev am: a21c26df38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12493713 Change-Id: I2bd0c2be1c9d9856f568df93339d526d1fed145a
This commit is contained in:
@@ -144,6 +144,15 @@ public class SavedBluetoothDeviceUpdaterTest {
|
||||
verify(mCachedBluetoothDevice).connect();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onClick_Preference_connected_setActive() {
|
||||
when(mCachedBluetoothDevice.isConnected()).thenReturn(true);
|
||||
|
||||
mBluetoothDeviceUpdater.onPreferenceClick(mPreference);
|
||||
|
||||
verify(mCachedBluetoothDevice).setActive();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() {
|
||||
final List<BluetoothDevice> bluetoothDevices = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user