Merge "Fix important person notification ranking test" into rvc-dev am: ae97b108aa am: d4c1501722

Change-Id: I846f8476c95c7c6c7dc817aa2e9e4246a0357f27
This commit is contained in:
Automerger Merge Worker
2020-02-25 15:20:21 +00:00

View File

@@ -208,7 +208,7 @@ class NotificationRankingManagerTest : SysuiTestCase() {
.setTag("tag")
.setNotification(aN)
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
.setUser(mContext.getUser())
.setUser(mContext.user)
.setOverrideGroupKey("")
.build()
whenever(personNotificationIdentifier.isImportantPeopleNotification(a.sbn, a.ranking))
@@ -226,12 +226,12 @@ class NotificationRankingManagerTest : SysuiTestCase() {
.setTag("tag")
.setNotification(bN)
.setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT))
.setUser(mContext.getUser())
.setUser(mContext.user)
.setOverrideGroupKey("")
.build()
whenever(personNotificationIdentifier.isImportantPeopleNotification(a.sbn, a.ranking))
.thenReturn(false)
whenever(personNotificationIdentifier.isPeopleNotification(a.sbn, a.ranking))
whenever(personNotificationIdentifier.isImportantPeopleNotification(b.sbn, b.ranking))
.thenReturn(true)
whenever(personNotificationIdentifier.isPeopleNotification(b.sbn, b.ranking))
.thenReturn(true)
assertEquals(