Skip to content

Commit 6ddc988

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: Audio: Fix includes
Updates the includes in a a few files to avoid including unused header files and include the ones that are used. Signed-off-by: Emil Gydesen <[email protected]>
1 parent d38b0e9 commit 6ddc988

File tree

29 files changed

+30
-8
lines changed

29 files changed

+30
-8
lines changed

tests/bluetooth/audio/ascs/include/test_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6+
#include <stdbool.h>
67
#include <stdint.h>
78

89
#include <zephyr/bluetooth/audio/bap.h>

tests/bluetooth/audio/ascs/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#include <errno.h>
12+
#include <stdbool.h>
1213
#include <stdint.h>
1314
#include <stdlib.h>
1415
#include <string.h>

tests/bluetooth/audio/ascs/src/test_ase_control_params.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10+
#include <stdbool.h>
1011
#include <stdint.h>
1112
#include <stdlib.h>
13+
1214
#include <zephyr/bluetooth/gap.h>
1315
#include <zephyr/bluetooth/iso.h>
1416
#include <zephyr/bluetooth/uuid.h>

tests/bluetooth/audio/ascs/src/test_ase_register.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <errno.h>
1111
#include <stdlib.h>
12-
#include <stdint.h>
1312
#include <string.h>
1413

1514
#include <zephyr/autoconf.h>
@@ -26,7 +25,6 @@
2625
#include <zephyr/ztest_assert.h>
2726
#include <zephyr/ztest_test.h>
2827

29-
#include "assert.h"
3028
#include "bap_unicast_server.h"
3129
#include "bap_stream.h"
3230

tests/bluetooth/audio/ascs/src/test_ase_state_transition.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10+
#include <stdbool.h>
1011
#include <stdint.h>
1112
#include <stdlib.h>
1213
#include <string.h>

tests/bluetooth/audio/ascs/src/test_ase_state_transition_invalid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* SPDX-License-Identifier: Apache-2.0
88
*/
99

10+
#include <stdbool.h>
1011
#include <stdint.h>
1112
#include <stdlib.h>
1213
#include <string.h>

tests/bluetooth/audio/ascs/src/test_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
#include <stdarg.h>
7+
#include <stdbool.h>
78
#include <stddef.h>
89
#include <stdint.h>
910

tests/bluetooth/audio/ascs/uut/bap_unicast_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6+
#include <stdbool.h>
67
#include <stddef.h>
78
#include <stdint.h>
89

tests/bluetooth/audio/bap_base/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
#include <errno.h>
10+
#include <stdbool.h>
911
#include <stdint.h>
1012
#include <stdlib.h>
1113
#include <string.h>
12-
#include <errno.h>
1314

1415
#include <zephyr/bluetooth/audio/audio.h>
1516
#include <zephyr/bluetooth/audio/bap.h>

tests/bluetooth/audio/bap_broadcast_source/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
#include <stdbool.h>
910
#include <stdint.h>
1011
#include <stdlib.h>
1112
#include <string.h>

0 commit comments

Comments
 (0)