Add audio-reliability tests for interruption, routes and media reset - #12
Merged
Conversation
Covers the coordinator paths that previously had no unit coverage: - interruption began drops the sound device and publishes its state; - interruption ended with ShouldResume reactivates the session when a call is live, and stays inactive without ShouldResume or without calls; - a route change publishes the current route; - the speaker preference survives a Bluetooth route loss and is only cleared by an explicit user action; - a media-services reset reconfigures and reactivates the session; - CallWaveAudioRoute reports Bluetooth and speaker independently. The tests drive the private notification entry points through a test-only category, like the existing reliability suite.
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.
Что
Unit-покрытие аудио-надёжности, которого не было: код (interruption с
shouldResume, route change, media-services reset, восстановление speaker) появился в 0.4.0, но тестами не закрывался.Тесты (9 кейсов,
CallWaveAudioReliabilityTests.m)CallWaveAudioRoute— Bluetooth и speaker независимы.Тесты драйвят приватные entry point'ы уведомлений через test-only category, как существующий
CallWaveClientReliabilityTests.Прогон
Scripts/run-package-tests.sh: все сьюты зелёные, включая 9 новых тестов (полный прогон: 54 Swift + ObjC-таргеты, 0 падений).Независим от #11, конфликтов нет.