Can we provide similar functionality to match IntentSender and mock the ActivityResult for startIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, @Nullable Bundle options)?
Description
Background: to mock the ActivityResult for
startActivityForResult(Intent, int)
, we can useintending(fakeIntent).respondWith(new Instrumentation.ActivityResult(Activity.RESULT_OK, null));
.Can we provide similar functionality to match
IntentSender
and mock the ActivityResult forstartIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, @Nullable Bundle options)
?