From 1df3b42e2a48c6617a04a3427eafe671888c3ba1 Mon Sep 17 00:00:00 2001 From: Lyn Date: Tue, 21 Feb 2023 23:43:45 +0000 Subject: [PATCH] Remove obsolete test Fixes: 270202518 Test: atest AlertingNotificationManagerTest, HeadsUpManagerTest, HeadsUpManagerPhoneTest Change-Id: Id09371c2f477057c17caa086cb67d90df30bcb96 --- .../statusbar/AlertingNotificationManagerTest.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java index 413767a19999f..fe18fb53aecb4 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/AlertingNotificationManagerTest.java @@ -199,20 +199,6 @@ public class AlertingNotificationManagerTest extends SysuiTestCase { assertFalse(mAlertingNotificationManager.isAlerting(mEntry.getKey())); } - @Test - public void testShowNotification_stickyHun_earliestRemovalTime() { - NotificationEntry notifEntry = new NotificationEntryBuilder() - .setSbn(createStickySbn(/* id= */ 0)) - .build(); - notifEntry.setCreationElapsedRealTime(0); - - mAlertingNotificationManager.showNotification(notifEntry); - - final long earliestRemovalTime = mAlertingNotificationManager - .getCalculatedEarliestRemovalTime(notifEntry.getKey()); - assertEquals(TEST_STICKY_DISPLAY_TIME, earliestRemovalTime); - } - @Test public void testRemoveNotification_removeDeferred() { mAlertingNotificationManager.showNotification(mEntry);