Skip to content

[tizen_audio_manager] Add regression integration tests#1050

Merged
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_audio_manager-add-integration-tests
Jul 1, 2026
Merged

[tizen_audio_manager] Add regression integration tests#1050
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_audio_manager-add-integration-tests

Conversation

@seungsoo47

@seungsoo47 seungsoo47 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Add 2 integration test cases for previously untested public API:

  • currentPlaybackType returns a valid AudioVolumeType: verifies the getter returns a recognized enum value.
  • onChanged emits VolumeChangedEvent when volume is changed: subscribes to the stream, triggers a volume change via setLevel, and asserts the emitted event carries the correct type and level.

All 19 tests pass on the Samsung TV emulator (T-samsung-10.0-x86_64).

#1039

Add 2 integration test cases for previously untested public API:
- currentPlaybackType returns a valid AudioVolumeType: verifies
  the getter returns a recognized enum value.
- onChanged emits VolumeChangedEvent when volume is changed: subscribes
  to the stream, triggers a volume change via setLevel, and asserts
  the emitted event carries the correct type and level.

All 19 tests pass on the Samsung TV emulator (T-samsung-10.0-x86_64).

@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 two integration tests to audio_manager_test.dart to verify currentPlaybackType and the onChanged event stream, and updates the changelog. Feedback suggests wrapping the volume level restoration and stream subscription cancellation in a try-finally block to ensure cleanup occurs even if the test fails or times out.

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.

Comment thread packages/tizen_audio_manager/example/integration_test/audio_manager_test.dart Outdated
Wrap the onChanged stream test body in a try-finally block so that the
original volume is restored and the stream subscription is cancelled
even when the timeout or an assertion fails.
@seungsoo47 seungsoo47 merged commit 1bb8868 into flutter-tizen:master Jul 1, 2026
6 checks passed
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.

2 participants