Index: net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java |
diff --git a/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java b/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java |
index b2e180bf378979fafb1b3502cd3205f1a15b9e96..45fca4b635ef7f71c89f44f1570e8757b96ba6e5 100644 |
--- a/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java |
+++ b/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java |
@@ -15,6 +15,7 @@ import org.chromium.base.annotations.JNINamespace; |
import org.chromium.base.library_loader.LibraryLoader; |
import org.chromium.base.library_loader.LibraryProcessType; |
import org.chromium.base.library_loader.ProcessInitException; |
+import org.chromium.base.test.util.UrlUtils; |
import java.util.concurrent.Callable; |
import java.util.concurrent.ExecutionException; |
@@ -76,7 +77,7 @@ public class EmbeddedTestServerImpl extends IEmbeddedTestServerImpl.Stub { |
runOnHandlerThread(new Callable<Void>() { |
@Override |
public Void call() { |
- if (mNativeEmbeddedTestServer == 0) nativeInit(); |
+ if (mNativeEmbeddedTestServer == 0) nativeInit(UrlUtils.getIsolatedTestRoot()); |
assert mNativeEmbeddedTestServer != 0; |
return null; |
} |
@@ -205,7 +206,7 @@ public class EmbeddedTestServerImpl extends IEmbeddedTestServerImpl.Stub { |
mNativeEmbeddedTestServer = 0; |
} |
- private native void nativeInit(); |
+ private native void nativeInit(String testDataDir); |
private native void nativeDestroy(long nativeEmbeddedTestServerAndroid); |
private native boolean nativeStart(long nativeEmbeddedTestServerAndroid); |
private native boolean nativeShutdownAndWaitUntilComplete(long nativeEmbeddedTestServerAndroid); |