Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java |
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java |
similarity index 65% |
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java |
copy to libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java |
index c3e766416f6dae1a9e28158f5542dd0648a50455..b1a973a8432913847eae4287dab7ddd9a6b86273 100644 |
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java |
@@ -17,7 +17,20 @@ |
package org.adblockplus.libadblockplus; |
-public interface Disposable |
-{ |
- public void dispose(); |
+public class MockFilterChangeCallback extends FilterChangeCallback { |
+ |
+ public MockFilterChangeCallback(int timesCalled) { |
+ this.timesCalled = timesCalled; |
+ } |
+ |
+ private int timesCalled; |
+ |
+ public int getTimesCalled() { |
+ return timesCalled; |
+ } |
+ |
+ @Override |
+ public void filterChangeCallback(String action, JsValue jsValue) { |
+ timesCalled++; |
+ } |
} |