summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/downloads/FakeSystemFacade.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/providers/downloads/FakeSystemFacade.java')
-rw-r--r--tests/src/com/android/providers/downloads/FakeSystemFacade.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/src/com/android/providers/downloads/FakeSystemFacade.java b/tests/src/com/android/providers/downloads/FakeSystemFacade.java
index c184de83..6898efdb 100644
--- a/tests/src/com/android/providers/downloads/FakeSystemFacade.java
+++ b/tests/src/com/android/providers/downloads/FakeSystemFacade.java
@@ -1,17 +1,13 @@
package com.android.providers.downloads;
-import android.app.Notification;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
-import android.test.AssertionFailedError;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
-import java.util.Map;
import java.util.Queue;
public class FakeSystemFacade implements SystemFacade {
@@ -22,8 +18,6 @@ public class FakeSystemFacade implements SystemFacade {
Long mMaxBytesOverMobile = null;
Long mRecommendedMaxBytesOverMobile = null;
List<Intent> mBroadcastsSent = new ArrayList<Intent>();
- Map<Long,Notification> mActiveNotifications = new HashMap<Long,Notification>();
- List<Notification> mCanceledNotifications = new ArrayList<Notification>();
Queue<Thread> mStartedThreads = new LinkedList<Thread>();
private boolean returnActualTime = false;
@@ -73,29 +67,6 @@ public class FakeSystemFacade implements SystemFacade {
return true;
}
- @Override
- public void postNotification(long id, Notification notification) {
- if (notification == null) {
- throw new AssertionFailedError("Posting null notification");
- }
- mActiveNotifications.put(id, notification);
- }
-
- @Override
- public void cancelNotification(long id) {
- Notification notification = mActiveNotifications.remove(id);
- if (notification != null) {
- mCanceledNotifications.add(notification);
- }
- }
-
- @Override
- public void cancelAllNotifications() {
- for (long id : mActiveNotifications.keySet()) {
- cancelNotification(id);
- }
- }
-
public boolean startThreadsWithoutWaiting = false;
public void setStartThreadsWithoutWaiting(boolean flag) {
this.startThreadsWithoutWaiting = flag;