diff options
| author | 2024-03-14 18:06:40 +0000 | |
|---|---|---|
| committer | 2024-03-14 18:06:40 +0000 | |
| commit | 9eebe54b74124caa89bf10d347d1adf98736f34e (patch) | |
| tree | 8c2b84aeec6246380adcc3fcabe46f0ba1c24066 | |
| parent | 95171febb20a919d89258215354613bb3c00986c (diff) | |
| parent | 0573c191545222af94097a595028aa23546107ae (diff) | |
Merge "NotificationTest: revert overeager BigPictureStyle changes" into main
| -rw-r--r-- | core/tests/coretests/src/android/app/NotificationTest.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/core/tests/coretests/src/android/app/NotificationTest.java b/core/tests/coretests/src/android/app/NotificationTest.java index 9a41fe0691fa..5cc1ee46f61c 100644 --- a/core/tests/coretests/src/android/app/NotificationTest.java +++ b/core/tests/coretests/src/android/app/NotificationTest.java @@ -1249,31 +1249,25 @@ public class NotificationTest { } @Test - @Ignore // TODO: b/329402256 - Restore or delete - public void testBigPictureStyle_setExtras_pictureIconNull_pictureIconKeyNull() { + public void testBigPictureStyle_setExtras_pictureIconNull_noPictureIconKey() { Notification.BigPictureStyle bpStyle = new Notification.BigPictureStyle(); bpStyle.bigPicture((Bitmap) null); Bundle extras = new Bundle(); bpStyle.addExtras(extras); - assertThat(extras.containsKey(EXTRA_PICTURE_ICON)).isTrue(); - final Parcelable pictureIcon = extras.getParcelable(EXTRA_PICTURE_ICON); - assertThat(pictureIcon).isNull(); + assertThat(extras.containsKey(EXTRA_PICTURE_ICON)).isFalse(); } @Test - @Ignore // TODO: b/329402256 - Restore or delete - public void testBigPictureStyle_setExtras_pictureIconNull_pictureKeyNull() { + public void testBigPictureStyle_setExtras_pictureIconNull_noPictureKey() { Notification.BigPictureStyle bpStyle = new Notification.BigPictureStyle(); bpStyle.bigPicture((Bitmap) null); Bundle extras = new Bundle(); bpStyle.addExtras(extras); - assertThat(extras.containsKey(EXTRA_PICTURE)).isTrue(); - final Parcelable picture = extras.getParcelable(EXTRA_PICTURE); - assertThat(picture).isNull(); + assertThat(extras.containsKey(EXTRA_PICTURE)).isFalse(); } @Test |