Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockUpdateAvailableCallback.java |
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockUpdateAvailableCallback.java |
similarity index 67% |
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java |
copy to libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockUpdateAvailableCallback.java |
index c3e766416f6dae1a9e28158f5542dd0648a50455..1adac3fe4ca82fbd5ac4883ba5ca9e36212a7595 100644 |
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockUpdateAvailableCallback.java |
@@ -17,7 +17,23 @@ |
package org.adblockplus.libadblockplus; |
-public interface Disposable |
+public class MockUpdateAvailableCallback extends UpdateAvailableCallback |
{ |
- public void dispose(); |
+ private int timesCalled; |
+ |
+ public MockUpdateAvailableCallback(int timesCalled) |
+ { |
+ this.timesCalled = timesCalled; |
+ } |
+ |
+ public int getTimesCalled() |
+ { |
+ return timesCalled; |
+ } |
+ |
+ @Override |
+ public void updateAvailableCallback(String url) |
+ { |
+ timesCalled++; |
+ } |
} |