Skip to content

[camera_avfoundation] Tests backfilling - part 5 #8873

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

Merged

Conversation

RobertOdrowaz
Copy link
Contributor

@RobertOdrowaz RobertOdrowaz commented Mar 14, 2025

Backfills tests for the FLTCam class as part of flutter/flutter#119109

Adds tests for the setExposureMode and zoom-related methods of the FLTCam class. Modifies tests for focus mode to test the setFocusMode method instead of applyFocusMode because it's actually used by CameraPlugin. There is also a small refactor to make exposureMode, focusMode, and flashMode properties private since they are never access directly.

Pre-Review Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I linked to at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under.
  • I updated/added any relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or I have commented below to indicate which test exemption this PR falls under.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-tests-backfilling-part5 branch from 18cb936 to 341d896 Compare March 14, 2025 15:20
@RobertOdrowaz RobertOdrowaz marked this pull request as ready for review March 14, 2025 15:53
## 0.9.18+10

* Backfills unit tests for the `FLTCam` class.
* Makes `exposureMode`, `focusMode`, and `flashMode` properties of `FLTCam` private.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 18, 2025
@auto-submit auto-submit bot merged commit a675ca6 into flutter:main Mar 18, 2025
82 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 19, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Mar 19, 2025
flutter/packages@d450e1b...dd781d4

2025-03-19 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 4 (flutter/packages#8854)
2025-03-18 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 5 (flutter/packages#8873)
2025-03-18 zezohassam@gmail.com [video_player]: reduce video player
position update interval from 500ms to 100ms (flutter/packages#8346)
2025-03-18 joonas.kerttula@codemate.com [google_maps_flutter] Support
for Ground Overlay (flutter/packages#8432)
2025-03-18 joonas.kerttula@codemate.com [google_maps_flutter] Ground
overlay support - platform impls (flutter/packages#8563)

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 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
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
Backfills tests for the FLTCam class as part of flutter/flutter#119109

Adds tests for the `setExposureMode` and zoom-related methods of the `FLTCam` class. Modifies tests for focus mode to test the `setFocusMode` method instead of `applyFocusMode` because it's actually used by `CameraPlugin`. There is also a small refactor to make `exposureMode`, `focusMode`, and `flashMode` properties private since they are never access directly.

## Pre-Review Checklist
zhangyuang pushed a commit to zhangyuang/flutter-fork that referenced this pull request Jun 9, 2025
…r#165489)

flutter/packages@d450e1b...dd781d4

2025-03-19 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 4 (flutter/packages#8854)
2025-03-18 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 5 (flutter/packages#8873)
2025-03-18 zezohassam@gmail.com [video_player]: reduce video player
position update interval from 500ms to 100ms (flutter/packages#8346)
2025-03-18 joonas.kerttula@codemate.com [google_maps_flutter] Support
for Ground Overlay (flutter/packages#8432)
2025-03-18 joonas.kerttula@codemate.com [google_maps_flutter] Ground
overlay support - platform impls (flutter/packages#8563)

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 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
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
Backfills tests for the FLTCam class as part of flutter/flutter#119109

Adds tests for the `setExposureMode` and zoom-related methods of the `FLTCam` class. Modifies tests for focus mode to test the `setFocusMode` method instead of `applyFocusMode` because it's actually used by `CameraPlugin`. There is also a small refactor to make `exposureMode`, `focusMode`, and `flashMode` properties private since they are never access directly.

## Pre-Review Checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants