Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java

Issue 2807213002: [Android O] Initialize channels on first launch/upgrade (Closed)
Patch Set: Some more minor things Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java
index 1ecb37cf30c7dc2826cae037ac36411f87973d4a..7a161b01f613d9071141bff96ccffe46bd6dec17 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelsInitializerTest.java
@@ -4,6 +4,7 @@
package org.chromium.chrome.browser.notifications;
+import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
@@ -31,6 +32,12 @@ public class ChannelsInitializerTest {
}
@Test
+ public void testInitializeStartupChannels() throws Exception {
+ mChannelsInitializer.initializeStartupChannels();
+ assertThat(mMockNotificationManager.getChannels().size(), is(greaterThan(0)));
+ }
+
+ @Test
public void testEnsureInitialized_browserChannel() throws Exception {
mChannelsInitializer.ensureInitialized(ChannelsInitializer.CHANNEL_ID_BROWSER);

Powered by Google App Engine
This is Rietveld 408576698