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
This commit is contained in:
Ken Shirriff
2009-07-28 15:57:50 -07:00
parent e640d259c2
commit 0f2e6663d9

View File

@@ -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");
}
}