diff options
Diffstat (limited to 'test-runner/android/test/IsolatedContext.java')
-rw-r--r-- | test-runner/android/test/IsolatedContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-runner/android/test/IsolatedContext.java b/test-runner/android/test/IsolatedContext.java index 03d95b7..4bd9528 100644 --- a/test-runner/android/test/IsolatedContext.java +++ b/test-runner/android/test/IsolatedContext.java @@ -17,6 +17,7 @@ import android.os.Handler; import android.os.Looper; import java.util.List; +import java.io.File; /** * A mock context which prevents its users from talking to the rest of the device while @@ -101,4 +102,8 @@ public class IsolatedContext extends ContextWrapper { // do nothing } } + @Override + public File getFilesDir() { + return new File("/dev/null"); + } } |