-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[image_picker_android] Removes unneeded permissions from tests #3433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, i noticed this while I was working on MethodCall untangling yesterday and was thinking we should clean it up. Can you update the test names too so they don't say that's part of the test state?
...er_android/android/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java
Outdated
Show resolved
Hide resolved
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| chooseImageFromGallery_whenHasExternalStoragePermission_launchesChooseFromGalleryIntent() { | ||
| when(mockPermissionManager.isPermissionGranted(Manifest.permission.READ_EXTERNAL_STORAGE)) | ||
| .thenReturn(true); | ||
| public void chooseImageFromGallery_LaunchesChooseFromGalleryIntent() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, you regressed the capitalization fixes I made. Can you sweep this to make sure the letter after _ is always lower case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for sure, I had some weird merge conflict issues I should have handled more carefully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found a couple you missed too I think
…er#3433) [image_picker_android] Removes unneeded permissions from tests
Some tests were using a check for permissions that is not needed for image_picker to function. This pr removes them.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.