Fix broken bluetooth robo tests
Bug: 129159331 Test: RunSettingsRoboTests Change-Id: I3e64659e59fd9b2ac58bf697116e1ee34928a3cd
This commit is contained in:
@@ -54,6 +54,9 @@ import java.util.Collection;
|
||||
@Config(shadows = {ShadowAudioManager.class, ShadowBluetoothAdapter.class,
|
||||
ShadowCachedBluetoothDeviceManager.class})
|
||||
public class ConnectedBluetoothDeviceUpdaterTest {
|
||||
|
||||
private static final String MAC_ADDRESS = "04:52:C7:0B:D8:3C";
|
||||
|
||||
@Mock
|
||||
private DashboardFragment mDashboardFragment;
|
||||
@Mock
|
||||
@@ -84,6 +87,7 @@ public class ConnectedBluetoothDeviceUpdaterTest {
|
||||
mCachedDevices = new ArrayList<>();
|
||||
|
||||
when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice);
|
||||
when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS);
|
||||
mShadowCachedBluetoothDeviceManager.setCachedDevicesCopy(mCachedDevices);
|
||||
mBluetoothDeviceUpdater = spy(new ConnectedBluetoothDeviceUpdater(mContext,
|
||||
mDashboardFragment, mDevicePreferenceCallback));
|
||||
|
Reference in New Issue
Block a user