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

Side by Side Diff: chrome/android/junit/src/org/chromium/chrome/browser/notifications/ChannelDefinitionsTest.java

Issue 2829263002: [Android O] Only delete legacy notification channels on upgrade (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.notifications;
6
7 import static org.hamcrest.MatcherAssert.assertThat;
8 import static org.hamcrest.Matchers.everyItem;
9 import static org.hamcrest.Matchers.isIn;
10 import static org.hamcrest.Matchers.not;
11
12 import org.junit.Test;
13 import org.junit.runner.RunWith;
14 import org.junit.runners.BlockJUnit4ClassRunner;
15
16 /**
17 * Java unit tests for ChannelDefinitions.
18 */
19 @RunWith(BlockJUnit4ClassRunner.class)
20 public class ChannelDefinitionsTest {
21 @Test
22 public void testNoOverlapBetweenStartupAndLegacyChannelIds() throws Exceptio n {
23 ChannelDefinitions channelDefinitions = new ChannelDefinitions();
24 assertThat(channelDefinitions.getStartupChannelIds(),
25 everyItem(not(isIn(channelDefinitions.getLegacyChannelIds()))));
26 }
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698