| commit | 96de64ab5541d19f7b15f01427cc8faf0541d01e | [log] [tgz] |
|---|---|---|
| author | Jenn Magder <magder@google.com> | Fri Jan 16 21:09:07 2026 |
| committer | GitHub <noreply@github.com> | Fri Jan 16 21:09:07 2026 |
| tree | 1fe4f9622fea4458990397b1da7f64d99dafb8ac | |
| parent | c1b1183ec1ede363501f565e0e7cde6dc9845360 [diff] |
[local_auth_darwin] Migrate XCTest to Swift Testing (#10802) Part of https://github.com/flutter/flutter/issues/180787 ``` ◇ Test run started. ↳ Testing Library Version: 102 (arm64-apple-ios13.0-simulator) ◇ Suite LocalAuthPluginTests started. ◇ Test failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) started. ◇ Test getEnrolledBiometricsWithTouchID() started. ◇ Test successfullAuthWithBiometrics() started. ◇ Test deviceSupportsBiometrics_withEnrolledHardware() started. ◇ Test deviceSupportsBiometrics_withBiometryNotAvailable() started. ◇ Test deviceSupportsBiometrics_withNonEnrolledHardware() started. ◇ Test failedAuthWithCanEvaluateError(error:expectedResult:) started. ◇ Test localizedFallbackTitle() started. ◇ Test deviceSupportsBiometrics_withBiometryNotAvailableWhenPermissionsDenied() started. ◇ Test successfullAuthWithoutBiometrics() started. ◇ Test getEnrolledBiometricsWithoutEnrolledHardware() started. ◇ Test skippedLocalizedFallbackTitle() started. ◇ Test isDeviceSupportedHandlesSupported() started. ◇ Passing 3 arguments errorCode → -9, expectedResult → .appCancel, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Test getEnrolledBiometricsWithFaceID() started. ◇ Passing 3 arguments errorCode → -1, expectedResult → .authenticationFailed, expectBiometrics → true to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 3 arguments errorCode → -4, expectedResult → .systemCancel, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 3 arguments errorCode → 99, expectedResult → .unknownError, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 3 arguments errorCode → -2, expectedResult → .userCancel, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 3 arguments errorCode → -3, expectedResult → .userFallback, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 3 arguments errorCode → -1, expectedResult → .authenticationFailed, expectBiometrics → false to failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) ◇ Passing 2 arguments error → LAError(rawValue: -8), expectedResult → .biometryLockout to failedAuthWithCanEvaluateError(error:expectedResult:) ◇ Passing 2 arguments error → LAError(rawValue: -6), expectedResult → .biometryNotAvailable to failedAuthWithCanEvaluateError(error:expectedResult:) ◇ Test isDeviceSupportedHandlesUnsupported() started. ◇ Passing 2 arguments error → LAError(rawValue: -7), expectedResult → .biometryNotEnrolled to failedAuthWithCanEvaluateError(error:expectedResult:) ◇ Passing 2 arguments error → LAError(rawValue: -10), expectedResult → .invalidContext to failedAuthWithCanEvaluateError(error:expectedResult:) ◇ Passing 2 arguments error → LAError(rawValue: -5), expectedResult → .passcodeNotSet to failedAuthWithCanEvaluateError(error:expectedResult:) ◇ Passing 2 arguments error → LAError(rawValue: -1004), expectedResult → .notInteractive to failedAuthWithCanEvaluateError(error:expectedResult:) ✔ Test getEnrolledBiometricsWithTouchID() passed after 0.041 seconds. ✔ Test deviceSupportsBiometrics_withBiometryNotAvailable() passed after 0.041 seconds. ✔ Test deviceSupportsBiometrics_withBiometryNotAvailableWhenPermissionsDenied() passed after 0.041 seconds. ✔ Test deviceSupportsBiometrics_withNonEnrolledHardware() passed after 0.041 seconds. ✔ Test isDeviceSupportedHandlesSupported() passed after 0.041 seconds. ✔ Test getEnrolledBiometricsWithoutEnrolledHardware() passed after 0.041 seconds. ✔ Test deviceSupportsBiometrics_withEnrolledHardware() passed after 0.041 seconds. ✔ Test failedAuthWithCanEvaluateError(error:expectedResult:) passed after 0.041 seconds. ✔ Test getEnrolledBiometricsWithFaceID() passed after 0.041 seconds. ✔ Test successfullAuthWithBiometrics() passed after 0.041 seconds. ✔ Test isDeviceSupportedHandlesUnsupported() passed after 0.002 seconds. ✔ Test successfullAuthWithoutBiometrics() passed after 0.042 seconds. ✔ Test failedAuthWithEvaluateError(errorCode:expectedResult:expectBiometrics:) passed after 0.042 seconds. ✔ Test skippedLocalizedFallbackTitle() passed after 0.042 seconds. ✔ Test localizedFallbackTitle() passed after 0.042 seconds. ✔ Suite LocalAuthPluginTests passed after 0.042 seconds. ✔ Test run with 15 tests passed after 0.042 seconds. ``` https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8692498766458966161/+/u/Run_package_tests/native_test/stdout Adding CHANGELOG override per https://github.com/flutter/packages/pull/10761#discussion_r2686738994 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: