Loading services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,8 @@ public class ZenModeFilteringTest extends UiServiceTestCase { private NotificationRecord getNotificationRecord(NotificationChannel c) { StatusBarNotification sbn = mock(StatusBarNotification.class); when(sbn.getNotification()).thenReturn(mock(Notification.class)); Notification notification = mock(Notification.class); when(sbn.getNotification()).thenReturn(notification); return new NotificationRecord(mContext, sbn, c); } Loading Loading
services/tests/uiservicestests/src/com/android/server/notification/ZenModeFilteringTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,8 @@ public class ZenModeFilteringTest extends UiServiceTestCase { private NotificationRecord getNotificationRecord(NotificationChannel c) { StatusBarNotification sbn = mock(StatusBarNotification.class); when(sbn.getNotification()).thenReturn(mock(Notification.class)); Notification notification = mock(Notification.class); when(sbn.getNotification()).thenReturn(notification); return new NotificationRecord(mContext, sbn, c); } Loading