[Android] Photo Picker: Add test coverage for FileEnumWorker.
This changelist also refactors the FileEnumWorkerTask to facilitate easier testing. Functions createImageCursor and shouldShowCameraTile were added so that that behavior could be overridden during testing. Also, onCancelled was added so that the test would get notified when the thread has to be shut down due to an Exception being thrown (otherwise the Roboelectric test just hangs). Bug: 656015 Change-Id: Ie601a84c6e8028a57720ddaf9802eecd194c4f4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2127708 Commit-Queue: Finnur Thorarinsson <finnur@chromium.org> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Auto-Submit: Finnur Thorarinsson <finnur@chromium.org> Cr-Commit-Position: refs/heads/master@{#756316}
Showing
This diff is collapsed.
Please register or sign in to comment