Skip to content

Conversation

@RobertOdrowaz
Copy link
Contributor

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

This PR adds tests for methods of CameraPlugin that only delegate to a FLTCam instance without any (or almost any for startVideoRecording) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.

Pre-launch Checklist

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

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

2025-03-10 [email protected] [camera_avfoundation] Tests
backfilling - part 2 (flutter/packages#8796)
2025-03-08 [email protected] [google_sign_in] Add Android account name
field as optional (flutter/packages#8573)
2025-03-07 [email protected] Roll Flutter from
321fbc0 to 6b93cf9 (18 revisions) (flutter/packages#8817)
2025-03-07 [email protected] Roll Flutter (stable) from
68415ad to 09de023 (1139 revisions) (flutter/packages#8813)
2025-03-07 [email protected] [google_maps_flutter_web] set
icon anchor for markers (flutter/packages#8077)

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 [email protected] 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 CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
romanejaquez pushed a commit to romanejaquez/flutter that referenced this pull request Aug 14, 2025
flutter/packages@4c5a7ed...464cea5

2025-03-10 [email protected] [camera_avfoundation] Tests
backfilling - part 2 (flutter/packages#8796)
2025-03-08 [email protected] [google_sign_in] Add Android account name
field as optional (flutter/packages#8573)
2025-03-07 [email protected] Roll Flutter from
321fbc0 to 6b93cf9 (18 revisions) (flutter/packages#8817)
2025-03-07 [email protected] Roll Flutter (stable) from
68415ad to 09de023 (1139 revisions) (flutter/packages#8813)
2025-03-07 [email protected] [google_maps_flutter_web] set
icon anchor for markers (flutter/packages#8077)

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 [email protected] 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
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.

3 participants