Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f2e6663 authored by Ken Shirriff's avatar Ken Shirriff
Browse files

DO NOT MERGE. Already in master. Fix calendar test.

Test was failing because SSL caching calls getFileDir() which wasn't implemented in the mock.

bug=1966269
parent e640d259
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ import android.content.pm.PackageManager;
import android.net.Uri;

import java.util.List;
import java.io.File;

/**
     * A mock context which prevents its users from talking to the rest of the device while
@@ -82,4 +83,8 @@ public class IsolatedContext extends ContextWrapper {
        return null;
    }

    @Override
    public File getFilesDir() {
        return new File("/dev/null");
    }
}