[tizen_app_manager] Add integration tests#1049
Merged
seungsoo47 merged 4 commits intoJul 1, 2026
Merged
Conversation
Add regression integration test cases for tizen_app_manager public API: - AppManager.getInstalledApps: returns non-empty list - AppManager.getInstalledApps: includes the current app - AppManager.isRunning: returns true for running app - AppManager.isRunning: returns false for non-running app - AppManager.isRunning: throws ArgumentError for empty appId - AppManager.getAppInfo: returns all AppInfo fields - AppManager.getAppInfo: throws ArgumentError for empty appId - AppRunningContext: packageId matches current app - AppRunningContext: throws PlatformException for non-running appId Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The native string returned by app_context_get_package_id must be released with free() per the API contract, but was never freed. This caused heap corruption when multiple tests called packageId, leading to crashes in subsequent native calls. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request addresses a memory leak in AppContext by freeing the native string pointer returned by app_context_get_package_id after converting it to a Dart string. Additionally, it introduces integration tests for AppManager and AppRunningContext within the example application, and updates the changelog. There are no review comments, so I have no feedback to provide.
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.
JSUYA
approved these changes
Jul 1, 2026
37 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix a memory leak in AppRunningContext.packageId where the native string returned by app_context_get_package_id was not freed, and add 9 integration test cases covering AppManager and AppRunningContext APIs.
#1039