Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Jun 4, 2024

For the LE Audio unittests there exists a few mock files
that implement mock versions, or callbacks, for some of the
roles and features tested.

These have been moved to where they are actually used,
reducing the scope of these files.

This both allows the individual tests to implement their own
versions of it, but more importantly it prevents issues when
adding tests for these roles. For example, due to the
bap_unicast_client.c mock file, it is impossible to implement
unit tests for the unicast client, as the functions are already
defined.

@Thalley Thalley force-pushed the audio_unittest_refactor branch 3 times, most recently from ab43a09 to 39aef41 Compare June 4, 2024 18:42
@Thalley Thalley force-pushed the audio_unittest_refactor branch 2 times, most recently from f0d32b3 to 4cf2019 Compare June 13, 2024 11:41
@Thalley Thalley marked this pull request as ready for review June 13, 2024 11:42
kruithofa
kruithofa previously approved these changes Jun 13, 2024
larsgk
larsgk previously approved these changes Jun 13, 2024
@Thalley Thalley dismissed stale reviews from larsgk and kruithofa via c05520b June 14, 2024 07:32
@Thalley Thalley force-pushed the audio_unittest_refactor branch from 4cf2019 to c05520b Compare June 14, 2024 07:32
@Thalley Thalley requested review from kruithofa and larsgk June 14, 2024 07:32
@Thalley Thalley force-pushed the audio_unittest_refactor branch from c05520b to 4a55935 Compare June 17, 2024 13:12
@Thalley Thalley added this to the v4.0.0 milestone Jun 20, 2024
For the LE Audio unittests there exists a few mock files
that implement mock versions, or callbacks, for some of the
roles and features tested.

These have been moved to where they are actually used,
reducing the scope of these files.

This both allows the individual tests to implement their own
versions of it, but more importantly it prevents issues when
adding tests for these roles. For example, due to the
bap_unicast_client.c mock file, it is impossible to implement
unit tests for the unicast client, as the functions are already
defined.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the audio_unittest_refactor branch from 4a55935 to 72e7851 Compare July 15, 2024 13:57
Copy link
Contributor

@pin-zephyr pin-zephyr left a comment

Choose a reason for hiding this comment

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

LGTM

@fabiobaltieri fabiobaltieri merged commit a94bfe0 into zephyrproject-rtos:main Jul 30, 2024
@Thalley Thalley deleted the audio_unittest_refactor branch July 30, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants