remove unnecessary mock in ConnectedBluetoothDeviceUpdaterTest
Bug: 111848213 Test: make -j50 RunSettingsRoboTests Change-Id: I6a2a25ff80d7d3cd9bcf2b4223afb6a80de7eb7c
This commit is contained in:
@@ -34,9 +34,7 @@ import com.android.settings.testutils.SettingsRobolectricTestRunner;
|
|||||||
import com.android.settings.testutils.shadow.ShadowAudioManager;
|
import com.android.settings.testutils.shadow.ShadowAudioManager;
|
||||||
import com.android.settingslib.bluetooth.CachedBluetoothDevice;
|
import com.android.settingslib.bluetooth.CachedBluetoothDevice;
|
||||||
import com.android.settingslib.bluetooth.CachedBluetoothDeviceManager;
|
import com.android.settingslib.bluetooth.CachedBluetoothDeviceManager;
|
||||||
import com.android.settingslib.bluetooth.HeadsetProfile;
|
|
||||||
import com.android.settingslib.bluetooth.LocalBluetoothManager;
|
import com.android.settingslib.bluetooth.LocalBluetoothManager;
|
||||||
import com.android.settingslib.bluetooth.LocalBluetoothProfileManager;
|
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -63,16 +61,10 @@ public class ConnectedBluetoothDeviceUpdaterTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private LocalBluetoothManager mLocalManager;
|
private LocalBluetoothManager mLocalManager;
|
||||||
@Mock
|
@Mock
|
||||||
private LocalBluetoothProfileManager mLocalBluetoothProfileManager;
|
private CachedBluetoothDeviceManager mCachedDeviceManager;
|
||||||
@Mock
|
|
||||||
private HeadsetProfile mHeadsetProfile;
|
|
||||||
|
|
||||||
private Context mContext;
|
private Context mContext;
|
||||||
private ConnectedBluetoothDeviceUpdater mBluetoothDeviceUpdater;
|
private ConnectedBluetoothDeviceUpdater mBluetoothDeviceUpdater;
|
||||||
|
|
||||||
@Mock
|
|
||||||
private CachedBluetoothDeviceManager mCachedDeviceManager;
|
|
||||||
|
|
||||||
private Collection<CachedBluetoothDevice> cachedDevices;
|
private Collection<CachedBluetoothDevice> cachedDevices;
|
||||||
private ShadowAudioManager mShadowAudioManager;
|
private ShadowAudioManager mShadowAudioManager;
|
||||||
|
|
||||||
@@ -87,8 +79,6 @@ public class ConnectedBluetoothDeviceUpdaterTest {
|
|||||||
new ArrayList<CachedBluetoothDevice>(new ArrayList<CachedBluetoothDevice>());
|
new ArrayList<CachedBluetoothDevice>(new ArrayList<CachedBluetoothDevice>());
|
||||||
|
|
||||||
when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice);
|
when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice);
|
||||||
when(mLocalManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager);
|
|
||||||
when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile);
|
|
||||||
when(mLocalManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager);
|
when(mLocalManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager);
|
||||||
when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(cachedDevices);
|
when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(cachedDevices);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user