1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #include <stdint.h>
7 
8 #include <zephyr/bluetooth/audio/bap.h>
9 
10 #include "bap_broadcast_source.h"
11 #include "zephyr/fff.h"
12 
13 /* List of fakes used by this unit tester */
14 #define FFF_FAKES_LIST(FAKE)                                                                       \
15 	FAKE(mock_bap_broadcast_source_started_cb)                                                 \
16 	FAKE(mock_bap_broadcast_source_stopped_cb)
17 
18 DEFINE_FAKE_VOID_FUNC(mock_bap_broadcast_source_started_cb, struct bt_bap_broadcast_source *);
19 
20 DEFINE_FAKE_VOID_FUNC(mock_bap_broadcast_source_stopped_cb, struct bt_bap_broadcast_source *,
21 		      uint8_t);
22 
23 struct bt_bap_broadcast_source_cb mock_bap_broadcast_source_cb = {
24 	.started = mock_bap_broadcast_source_started_cb,
25 	.stopped = mock_bap_broadcast_source_stopped_cb,
26 };
27 
mock_bap_broadcast_source_init(void)28 void mock_bap_broadcast_source_init(void)
29 {
30 	FFF_FAKES_LIST(RESET_FAKE);
31 }
32