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

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

Issue 29347315: Issue 4231 - Fix unstable FilterEngineTest.testSetRemoveFilterChangeCallback (Closed)
Patch Set: Introduced file system abstraction to java and using LazyFileSystem for filter tests Created July 10, 2016, 10:47 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 c889cd81d8727718d1ba70008119e5bd54447483..80eb014893f46bd621ccd9377f0ac889e61a491d 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