Remove "Play media to" when no connected device
Bug: 130251782 Test: make -j42 RunSettingsRoboTests Change-Id: Id40199a67aef48b99f59cf6e04f93be2abe5e8fc
This commit is contained in:
@@ -106,9 +106,9 @@ public class MediaOutputIndicatorSliceTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getSlice_noConnectableDevice_returnNull() {
|
||||
public void getSlice_noConnectedDevice_returnNull() {
|
||||
mDevicesList.clear();
|
||||
when(mA2dpProfile.getConnectableDevices()).thenReturn(mDevicesList);
|
||||
when(mA2dpProfile.getConnectedDevices()).thenReturn(mDevicesList);
|
||||
|
||||
assertThat(mMediaOutputIndicatorSlice.getSlice()).isNull();
|
||||
}
|
||||
@@ -116,7 +116,7 @@ public class MediaOutputIndicatorSliceTest {
|
||||
@Test
|
||||
public void getSlice_noActiveDevice_verifyDefaultName() {
|
||||
mDevicesList.add(mA2dpDevice);
|
||||
when(mA2dpProfile.getConnectableDevices()).thenReturn(mDevicesList);
|
||||
when(mA2dpProfile.getConnectedDevices()).thenReturn(mDevicesList);
|
||||
when(mA2dpProfile.getActiveDevice()).thenReturn(null);
|
||||
|
||||
// Verify slice title and subtitle
|
||||
@@ -130,7 +130,7 @@ public class MediaOutputIndicatorSliceTest {
|
||||
@Test
|
||||
public void getSlice_A2dpDeviceActive_verifyName() {
|
||||
mDevicesList.add(mA2dpDevice);
|
||||
when(mA2dpProfile.getConnectableDevices()).thenReturn(mDevicesList);
|
||||
when(mA2dpProfile.getConnectedDevices()).thenReturn(mDevicesList);
|
||||
when(mA2dpProfile.getActiveDevice()).thenReturn(mA2dpDevice);
|
||||
|
||||
final Slice mediaSlice = mMediaOutputIndicatorSlice.getSlice();
|
||||
@@ -142,7 +142,7 @@ public class MediaOutputIndicatorSliceTest {
|
||||
@Test
|
||||
public void getSlice_HADeviceActive_verifyName() {
|
||||
mDevicesList.add(mHapDevice);
|
||||
when(mHearingAidProfile.getConnectableDevices()).thenReturn(mDevicesList);
|
||||
when(mHearingAidProfile.getConnectedDevices()).thenReturn(mDevicesList);
|
||||
when(mHearingAidProfile.getActiveDevices()).thenReturn(mDevicesList);
|
||||
|
||||
// Verify slice title and subtitle
|
||||
|
Reference in New Issue
Block a user