Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e81f2c4f authored by Caitlin Shkuratov's avatar Caitlin Shkuratov Committed by Android (Google) Code Review
Browse files

Merge "[SB][Chips] Fix NotifChipsViewModelTest asserting same model instance" into main

parents 979d5cb6 b76dde82
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -468,11 +468,12 @@ class NotifChipsViewModelTest : SysuiTestCase() {
                PromotedNotificationContentBuilder("notif").applyToShared {
                    this.time = When.Time(currentTime)
                }
            val icon = createStatusBarIconViewOrNull()
            setNotifs(
                listOf(
                    activeNotificationModel(
                        key = "notif",
                        statusBarChipIcon = createStatusBarIconViewOrNull(),
                        statusBarChipIcon = icon,
                        promotedContent = oldPromotedContentBuilder.build(),
                    )
                )
@@ -493,7 +494,7 @@ class NotifChipsViewModelTest : SysuiTestCase() {
                listOf(
                    activeNotificationModel(
                        key = "notif",
                        statusBarChipIcon = createStatusBarIconViewOrNull(),
                        statusBarChipIcon = icon,
                        promotedContent = newPromotedContentBuilder.build(),
                    )
                )
@@ -513,11 +514,12 @@ class NotifChipsViewModelTest : SysuiTestCase() {
                PromotedNotificationContentBuilder("notif").applyToShared {
                    this.subText = "Old subtext"
                }
            val icon = createStatusBarIconViewOrNull()
            setNotifs(
                listOf(
                    activeNotificationModel(
                        key = "notif",
                        statusBarChipIcon = createStatusBarIconViewOrNull(),
                        statusBarChipIcon = icon,
                        promotedContent = oldPromotedContentBuilder.build(),
                    )
                )
@@ -536,7 +538,7 @@ class NotifChipsViewModelTest : SysuiTestCase() {
                listOf(
                    activeNotificationModel(
                        key = "notif",
                        statusBarChipIcon = createStatusBarIconViewOrNull(),
                        statusBarChipIcon = icon,
                        promotedContent = newPromotedContentBuilder.build(),
                    )
                )