summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vania Januar <vanjan@google.com> 2023-01-12 10:19:47 +0000
committer Vania Januar <vanjan@google.com> 2023-01-12 10:19:47 +0000
commit46b837677c62c17acbc81458cdcdb639e56a6605 (patch)
tree1a70655f81af8236addbc8f139aecf42882a82a6
parentc5978eaf770451a816a73afd1fb24bbc53bcdd4a (diff)
Fix @Ignored test for Stylus Usi notifications.
Bug: 257936830 Test: atest StylusUsiPowerUiTest Change-Id: I503512bb1693424d7ec22ffdc99ee9b60059bc1d
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt b/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt
index a7951f4fa068..19e69ab3f8b7 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt
+++ b/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt
@@ -159,12 +159,12 @@ class StylusUsiPowerUiTest : SysuiTestCase() {
@Test
@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))
stylusUsiPowerUi.refresh()
- verifyNoMoreInteractions(notificationManager)
+ verify(notificationManager).cancel(R.string.stylus_battery_low_percentage)
}
@Test