Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java +0 −15 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.systemui.statusbar; import static android.app.Notification.CATEGORY_CALL; import static com.google.common.truth.Truth.assertThat; import static junit.framework.Assert.assertEquals; Loading Loading @@ -198,19 +196,6 @@ public class StatusBarIconViewTest extends SysuiTestCase { // no crash, good } @Test public void testContentDescForNotification_noNotifContent() { Notification n = new Notification.Builder(mContext, "test") .setSmallIcon(0) .setContentTitle("hello") .setCategory(CATEGORY_CALL) .build(); assertThat(NotificationContentDescription.contentDescForNotification(mContext, n) .toString()).startsWith("com.android.systemui.tests notification"); assertThat(NotificationContentDescription.contentDescForNotification(mContext, n) .toString()).doesNotContain("hello"); } @Test @EnableFlags({Flags.FLAG_MODES_UI, Flags.FLAG_MODES_UI_ICONS}) public void setIcon_withPreloaded_usesPreloaded() { Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java +0 −15 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.systemui.statusbar; import static android.app.Notification.CATEGORY_CALL; import static com.google.common.truth.Truth.assertThat; import static junit.framework.Assert.assertEquals; Loading Loading @@ -198,19 +196,6 @@ public class StatusBarIconViewTest extends SysuiTestCase { // no crash, good } @Test public void testContentDescForNotification_noNotifContent() { Notification n = new Notification.Builder(mContext, "test") .setSmallIcon(0) .setContentTitle("hello") .setCategory(CATEGORY_CALL) .build(); assertThat(NotificationContentDescription.contentDescForNotification(mContext, n) .toString()).startsWith("com.android.systemui.tests notification"); assertThat(NotificationContentDescription.contentDescForNotification(mContext, n) .toString()).doesNotContain("hello"); } @Test @EnableFlags({Flags.FLAG_MODES_UI, Flags.FLAG_MODES_UI_ICONS}) public void setIcon_withPreloaded_usesPreloaded() { Loading