summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2022-01-21 02:33:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-01-21 02:33:54 +0000
commit56575dfcd6e6251c6ee7b21a4d61974ee42fc0aa (patch)
treebcca62d4ccfb0c307545fb9fc2eb1ea4d5b4fe8c
parent6f933ec925b900c09bf487c855afa033ae633904 (diff)
parentd4990dd801b20b8bbcacc541e84f07615baabb8f (diff)
downloadcts-56575dfcd6e6251c6ee7b21a4d61974ee42fc0aa.tar.gz
Merge "Remove invalid test" into qt-dev
-rw-r--r--tests/app/src/android/app/cts/NotificationManagerTest.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/app/src/android/app/cts/NotificationManagerTest.java b/tests/app/src/android/app/cts/NotificationManagerTest.java
index db1df37627f..08877e1ec58 100644
--- a/tests/app/src/android/app/cts/NotificationManagerTest.java
+++ b/tests/app/src/android/app/cts/NotificationManagerTest.java
@@ -1370,32 +1370,6 @@ public class NotificationManagerTest extends AndroidTestCase {
}
}
- public void testNotify_blockedChannelGroup() throws Exception {
- mNotificationManager.cancelAll();
-
- NotificationChannelGroup group = new NotificationChannelGroup(mId, "group name");
- group.setBlocked(true);
- mNotificationManager.createNotificationChannelGroup(group);
- NotificationChannel channel =
- new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT);
- channel.setGroup(mId);
- mNotificationManager.createNotificationChannel(channel);
-
- int id = 1;
- final Notification notification =
- new Notification.Builder(mContext, mId)
- .setSmallIcon(R.drawable.black)
- .setWhen(System.currentTimeMillis())
- .setContentTitle("notify#" + id)
- .setContentText("This is #" + id + "notification ")
- .build();
- mNotificationManager.notify(id, notification);
-
- if (!checkNotificationExistence(id, /*shouldExist=*/ false)) {
- fail("found unexpected notification id=" + id);
- }
- }
-
public void testCancel() throws Exception {
final int id = 9;
sendNotification(id, R.drawable.black);