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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java

Issue 2833493002: [Media>UI] Apply throttling if the notification is updated too frequently (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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java b/chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java
index df9dbeea9b29ff397720aa859aa7e81bd01be821..388276a825cccee4e7f4eb5a6d4e4749fc81c5b9 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationManagerTestBase.java
@@ -23,6 +23,7 @@ import android.os.Build;
import android.support.v4.media.session.MediaSessionCompat;
import android.view.KeyEvent;
+import org.junit.After;
import org.junit.Before;
import org.mockito.invocation.InvocationOnMock;
@@ -133,6 +134,11 @@ public class MediaNotificationManagerTestBase {
CommandLine.init(null);
}
+ @After
+ public void tearDown() {
+ MediaNotificationManager.clear(NOTIFICATION_ID);
+ }
+
MediaNotificationManager getManager() {
return MediaNotificationManager.getManager(NOTIFICATION_ID);
}

Powered by Google App Engine
This is Rietveld 408576698