-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[camera_android] Remove TestUtils.java
#6490
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
… from cameratest.java
matanlurey
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.
Looks... better :)
We should chat in person sometime about what the testing strategy here is, like it's not common for me to see so many internal-state fields changed/probed during tests, but I also might be missing some bigger picture.
LGTM!
I agree, but I think fixing the testing strategy for the It is hard to justify spending much effort on it, when that effort could instead be spent improving the new CameraX implementation that we would ideally get everyone to switch to. Happy to talk about it either way though |
|
Yeah, maybe the take away will just be "what not to do in |
flutter/packages@6b4d8b6...17f55d3 2024-04-09 barpac02@gmail.com Release compileSdk changes (flutter/packages#6491) 2024-04-08 34871572+gmackall@users.noreply.github.com [camera_android] Remove `TestUtils.java` (flutter/packages#6490) 2024-04-08 engine-flutter-autoroll@skia.org Roll Flutter from 98d23f7 to 533d04d (12 revisions) (flutter/packages#6488) 2024-04-08 32538273+ValentinVignal@users.noreply.github.com [go_router_builder] Add `restorationScopeId` to `ShellRouteData` (flutter/packages#6238) 2024-04-08 39844581+kforjan@users.noreply.github.com [go_router] Fixes deep links with no path (flutter/packages#6447) 2024-04-08 stuartmorgan@google.com [in_app_purchase] Convert Android data objects to Pigeon (flutter/packages#6453) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@6b4d8b6...17f55d3 2024-04-09 barpac02@gmail.com Release compileSdk changes (flutter/packages#6491) 2024-04-08 34871572+gmackall@users.noreply.github.com [camera_android] Remove `TestUtils.java` (flutter/packages#6490) 2024-04-08 engine-flutter-autoroll@skia.org Roll Flutter from 98d23f7 to 533d04d (12 revisions) (flutter/packages#6488) 2024-04-08 32538273+ValentinVignal@users.noreply.github.com [go_router_builder] Add `restorationScopeId` to `ShellRouteData` (flutter/packages#6238) 2024-04-08 39844581+kforjan@users.noreply.github.com [go_router] Fixes deep links with no path (flutter/packages#6447) 2024-04-08 stuartmorgan@google.com [in_app_purchase] Convert Android data objects to Pigeon (flutter/packages#6453) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Removes `TestUtils.java`, in favor of using `@VisibileForTesting` instead. I had to change a couple of types from the interface type to the actual implementation type too, to accomplish the removal. fixes flutter/flutter#146457
Removes
TestUtils.java, in favor of using@VisibileForTestinginstead. I had to change a couple of types from the interface type to the actual implementation type too, to accomplish the removal.fixes flutter/flutter#146457
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.