| commit | d0c6c4d799be0e38c4c7b90d400a1f0a9876f2d5 | [log] [tgz] |
|---|---|---|
| author | Julia Reynolds <juliacr@google.com> | Mon Mar 09 13:08:09 2020 -0400 |
| committer | Julia Reynolds <juliacr@google.com> | Mon Mar 09 17:12:46 2020 +0000 |
| tree | 97897b576f43f523508a090c15f996c14f2c0d2e | |
| parent | 95042c2d3fdb8ee50fe18e250a6920fbaeb0191b [diff] |
Increase code coverage for NotificationChannel Test: this Fixes: 149361682 Change-Id: I389ccd71c0e2a56225661c59fa4365eb4551b95c
diff --git a/tests/app/src/android/app/cts/NotificationChannelTest.java b/tests/app/src/android/app/cts/NotificationChannelTest.java index 184f678..2cc965f 100644 --- a/tests/app/src/android/app/cts/NotificationChannelTest.java +++ b/tests/app/src/android/app/cts/NotificationChannelTest.java
@@ -225,4 +225,11 @@ channel.setImportantConversation(true); assertTrue(channel.isImportantConversation()); } + + public void testHasUserSetSound() { + NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); + channel.lockFields(NotificationChannel.USER_LOCKED_SOUND); + + assertTrue(channel.hasUserSetSound()); + } }