Merge "Fix @Ignored test for Stylus Usi notifications." into tm-qpr-dev
This commit is contained in:
@@ -180,12 +180,12 @@ class StylusUsiPowerUiTest : SysuiTestCase() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("TODO(b/257936830): get bt address once input api available")
|
@Ignore("TODO(b/257936830): get bt address once input api available")
|
||||||
fun refresh_hasConnectedBluetoothStylus_doesNotNotify() {
|
fun refresh_hasConnectedBluetoothStylus_cancelsNotification() {
|
||||||
whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0))
|
whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0))
|
||||||
|
|
||||||
stylusUsiPowerUi.refresh()
|
stylusUsiPowerUi.refresh()
|
||||||
|
|
||||||
verifyNoMoreInteractions(notificationManager)
|
verify(notificationManager).cancel(R.string.stylus_battery_low_percentage)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user