Open saket opened 9 months ago
There is something very very low quality here:
Also could Robolectric.setupContentProvider(ContentProviderClass, authority)
help here?
You could create a fake MediaStore content provider.
You could create a fake MediaStore content provider.
Yep this is what I ended up doing, but it'd be really nice if I didn't have to maintain this code 😄. An implementation provided by robolectric would be battle tested.
Is your feature request related to a problem? Please describe. Considering that robolectric already implements
Environment.getExternalStoragePublicDirectory()
and related functions for file storage, it'd be nice ifcontext.contentResolver.insert("content://media…")
andcontext.contentResolver.query("content://media…")
functions were also usable in robolectric tests.Describe the solution you'd like Could robolectric add a fake implementation of
MediaStore
?