This patch adds BAP unit tests for Broadcast Source stream establishment (BAP/BSRC/SCC/BV-35-C [Establishes Broadcast] - page 175), stream disable (BAP/BSRC/SCC/BV-36-C [Disables Broadcast] - page 176) and stream release (BAP/BSRC/SCC/BV-37-C [Releases Broadcast] - page 176). This patch also adds shared/bap fixes regarding broadcast stream management, required for successful test implementation. Iulia Tanasescu (6): shared/bap: Remove DISABLING case from bcast state cb shared/bap: Fix potential stream access after free test-bap: Update bsrc_state to just handle CONFIG state test-bap: Add Broadcast Source Establish test test-bap: Add Broadcast Source Disable test test-bap: Add Broadcast Source Release test src/shared/bap.c | 26 ++++-- unit/test-bap.c | 210 ++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 186 insertions(+), 50 deletions(-) base-commit: 75893035705da57efd6f8a84bba77d596c463d34 -- 2.39.2