diff options
| author | 2023-01-12 14:22:11 +0000 | |
|---|---|---|
| committer | 2023-01-12 14:22:11 +0000 | |
| commit | f207b4d301df5db0e3819f2dacf10e54725cab73 (patch) | |
| tree | 1cebf5c94ce3725a6650c5f0567af4175c683d9a | |
| parent | 80bc3ad60a33626eb83a6198222214025c63e6e1 (diff) | |
| parent | 46b837677c62c17acbc81458cdcdb639e56a6605 (diff) | |
Merge "Fix @Ignored test for Stylus Usi notifications." into tm-qpr-dev
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt | 4 |
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 96e115951aaa..1e81dc761b18 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/stylus/StylusUsiPowerUiTest.kt @@ -180,12 +180,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 |