Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java

Issue 29424615: Issue 4231 - Fix unstable FilterEngineTest.testSetRemoveFilterChangeCallback (Closed)
Patch Set: changed impl for reading file as bytes array, modified test. AndroidFileSystem now does not resolveā€¦ Created May 29, 2017, 11:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java
index a300d7c1aa4856fb101b928bef62d20967349fad..974b54da2addaa5e4d8f965ed73a91ca82cecbe3 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockFilterChangeCallback.java
@@ -17,9 +17,15 @@
package org.adblockplus.libadblockplus;
+import android.util.Log;
+
+import org.adblockplus.libadblockplus.android.Utils;
+
public class MockFilterChangeCallback extends FilterChangeCallback
{
- private int timesCalled;
+ private static final String TAG = Utils.getTag(MockFilterChangeCallback.class);
+
+ private volatile int timesCalled;
public MockFilterChangeCallback(int timesCalled)
{
@@ -34,6 +40,7 @@ public class MockFilterChangeCallback extends FilterChangeCallback
@Override
public void filterChangeCallback(String action, JsValue jsValue)
{
+ Log.d(TAG, "callback: action=" + action + ", jsValue=" + jsValue);
timesCalled++;
}
}

Powered by Google App Engine
This is Rietveld