Uh oh!
There was an error while loading. Please reload this page.
[camera_avfoundation] Tests backfilling - part 1 - #8698
Conversation
cead82f to
1ad685dCompare
hellohuanlin
left a comment
There was a problem hiding this comment.
i didn't finish reviewing. can you split the PR into multiple smaller PRs so it's easier to review? thanks
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1ad685d to
72edba6CompareRobertOdrowaz
commented
Mar 3, 2025
@hellohuanlin thanks for the review. I extracted the forwarding method tests from this PR and resolved most of the comments |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
flutter/packages@9e4684e...abba683 2025-03-05 robert.odrowaz@leancode.pl [camera_avfoundation] Tests backfilling - part 1 (flutter/packages#8698) 2025-03-04 57854043+CaoGiaHieu-dev@users.noreply.github.com [go_router_builder]: Fix `The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' ` on path and query params (flutter/packages#8737) 2025-03-04 pawel.jakubowski@leancode.pl [video_player_android] Platform view support (flutter/packages#8466) 2025-03-04 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes crash with nil `WKFrameInfo.request` (flutter/packages#8766) 2025-03-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 842db35 to 04d3934 (4 revisions) (flutter/packages#8775) 2025-03-03 engine-flutter-autoroll@skia.org Roll Flutter from 842db35 to 04d3934 (4 revisions) (flutter/packages#8774) 2025-03-03 reidbaker@google.com [flutter_plugin_android_lifecycle] Uses flutter.compileSdkVersion, bumps minimum flutter version to 3.27 (flutter/packages#8760) 2025-03-03 neilself@gmail.com [google_sign_in] Add Android account name field as optional (platform interface changes) (flutter/packages#8735) 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
Backfills tests for the `CameraPlugin` class as part of flutter/flutter#119109 There are 3 new test files: - CameraPluginCreateCameraTests contains tests for the `createCamera(withName)` method - CameraPluginInitializeCameraTests contains tests for the `initializeCamera` method - ~CameraPluginForwardingMethodTests contains tests for all methods that only forward to the `FLTCam` instance without any (or almost any for `startVideoRecording`) logic~ extracted to separate PR I've also added `minimumExposureOffset` and `maximumExposureOffset` to `FLTCam` to make both easier to mock and more consistent. Before the `CameraPlugin` class used the `CaptureDevice` methods directly by accessing the `captureDevice` field of the `FLTCam` class.
Backfills tests for the `CameraPlugin` class as part of flutter/flutter#119109 There are 3 new test files: - CameraPluginCreateCameraTests contains tests for the `createCamera(withName)` method - CameraPluginInitializeCameraTests contains tests for the `initializeCamera` method - ~CameraPluginForwardingMethodTests contains tests for all methods that only forward to the `FLTCam` instance without any (or almost any for `startVideoRecording`) logic~ extracted to separate PR I've also added `minimumExposureOffset` and `maximumExposureOffset` to `FLTCam` to make both easier to mock and more consistent. Before the `CameraPlugin` class used the `CaptureDevice` methods directly by accessing the `captureDevice` field of the `FLTCam` class.
Backfills tests for the `CameraPlugin` class as part of flutter/flutter#119109 There are 3 new test files: - CameraPluginCreateCameraTests contains tests for the `createCamera(withName)` method - CameraPluginInitializeCameraTests contains tests for the `initializeCamera` method - ~CameraPluginForwardingMethodTests contains tests for all methods that only forward to the `FLTCam` instance without any (or almost any for `startVideoRecording`) logic~ extracted to separate PR I've also added `minimumExposureOffset` and `maximumExposureOffset` to `FLTCam` to make both easier to mock and more consistent. Before the `CameraPlugin` class used the `CaptureDevice` methods directly by accessing the `captureDevice` field of the `FLTCam` class.
Backfills tests for the `CameraPlugin` class as part of flutter/flutter#119109 There are 3 new test files: - CameraPluginCreateCameraTests contains tests for the `createCamera(withName)` method - CameraPluginInitializeCameraTests contains tests for the `initializeCamera` method - ~CameraPluginForwardingMethodTests contains tests for all methods that only forward to the `FLTCam` instance without any (or almost any for `startVideoRecording`) logic~ extracted to separate PR I've also added `minimumExposureOffset` and `maximumExposureOffset` to `FLTCam` to make both easier to mock and more consistent. Before the `CameraPlugin` class used the `CaptureDevice` methods directly by accessing the `captureDevice` field of the `FLTCam` class.
Backfills tests for the
CameraPluginclass as part of flutter/flutter#119109There are 3 new test files:
createCamera(withName)methodinitializeCameramethodCameraPluginForwardingMethodTests contains tests for all methods that only forward to theextracted to separate PRFLTCaminstance without any (or almost any forstartVideoRecording) logicI've also added
minimumExposureOffsetandmaximumExposureOffsettoFLTCamto make both easier to mock and more consistent. Before theCameraPluginclass used theCaptureDevicemethods directly by accessing thecaptureDevicefield of theFLTCamclass.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, or this PR is exempt from CHANGELOG changes.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.