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

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

Issue 29424615: Issue 4231 - Fix unstable FilterEngineTest.testSetRemoveFilterChangeCallback (Closed)
Patch Set: Created April 28, 2017, 8:24 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/src/org/adblockplus/libadblockplus/JsEngine.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
index 3b806122759d8dd8b2d496868bbf401703cf0a1b..a0eed87459be205faaf55dd562125eb0a81529db 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
@@ -78,6 +78,11 @@ public final class JsEngine implements Disposable
triggerEvent(this.ptr, eventName, null);
}
+ public void setFileSystem(FileSystem fileSystem)
+ {
+ setFileSystem(this.ptr, fileSystem.ptr);
+ }
+
public void setDefaultFileSystem(final String basePath)
{
setDefaultFileSystem(this.ptr, basePath);
@@ -152,6 +157,8 @@ public final class JsEngine implements Disposable
private final static native void triggerEvent(long ptr, String eventName, long[] args);
+ private final static native void setFileSystem(long ptr, long fileSystemPtr);
+
private final static native void setDefaultFileSystem(long ptr, String basePath);
private final static native void setLogSystem(long ptr, long logSystemPtr);

Powered by Google App Engine
This is Rietveld