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

Commit 413065a5 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Remove unneeded test" into main

parents 8be27550 0674f38d
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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;
@@ -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() {