Skip to content

[shared_preferences] Add integration tests based on upstream v2.5.5#1047

Open
seungsoo47 wants to merge 1 commit into
flutter-tizen:masterfrom
seungsoo47:shared_preferences-add-integration-tests
Open

[shared_preferences] Add integration tests based on upstream v2.5.5#1047
seungsoo47 wants to merge 1 commit into
flutter-tizen:masterfrom
seungsoo47:shared_preferences-add-integration-tests

Conversation

@seungsoo47

Copy link
Copy Markdown
Contributor

Port the upstream legacy-to-async migration-utility integration tests from shared_preferences v2.5.5, consolidated into the existing test file. For each of the no-prefix, setPrefix, setPrefix+allowList, and empty-prefix legacy configurations:

  • data is successfully transferred to new system
  • migrationCompleted key is set
  • re-running migration tool does not overwrite data

The upstream platform-specific async option variants (Android/iOS/Linux/ Windows) collapse to the default options on Tizen and were omitted. The empty-prefix "re-running" case is skipped because the Tizen legacy and async stores share a single preference namespace (matching how upstream skips it on other shared-namespace platforms).

Test-only change; recorded under a NEXT changelog entry without a version bump. Validated on a Raspberry Pi 4 device: 75 passed, 1 skipped, 0 failed.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds 12 integration test cases for the legacy-to-async migration utility in shared_preferences_test.dart and updates the changelog. The feedback suggests replacing the integer literal -0 with -1 in the test suite to avoid confusion, as -0 is equivalent to 0 for integers in Dart.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Port the upstream legacy-to-async migration-utility integration tests from
shared_preferences v2.5.5, consolidated into the existing test file. For each
of the no-prefix, setPrefix, setPrefix+allowList, and empty-prefix legacy
configurations:
- data is successfully transferred to new system
- migrationCompleted key is set
- re-running migration tool does not overwrite data

The upstream platform-specific async option variants (Android/iOS/Linux/
Windows) collapse to the default options on Tizen and were omitted. The
empty-prefix "re-running" case is skipped because the Tizen legacy and async
stores share a single preference namespace (matching how upstream skips it on
other shared-namespace platforms).

Test-only change; recorded under a NEXT changelog entry without a version bump.
Validated on a Raspberry Pi 4 device: 75 passed, 1 skipped, 0 failed.
@seungsoo47 seungsoo47 force-pushed the shared_preferences-add-integration-tests branch from 558a69d to 17d4e2a Compare June 23, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant