1 /*
2  * Copyright (c) 2023 Codecoup
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef MOCKS_BAP_UNICAST_SERVER_H_
8 #define MOCKS_BAP_UNICAST_SERVER_H_
9 #include <stddef.h>
10 #include <stdint.h>
11 
12 #include <zephyr/bluetooth/audio/audio.h>
13 #include <zephyr/bluetooth/conn.h>
14 #include <zephyr/fff.h>
15 #include <zephyr/bluetooth/audio/bap.h>
16 
17 extern const struct bt_bap_unicast_server_cb mock_bap_unicast_server_cb;
18 
19 void mock_bap_unicast_server_init(void);
20 void mock_bap_unicast_server_cleanup(void);
21 
22 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_config, struct bt_conn *,
23 			const struct bt_bap_ep *, enum bt_audio_dir,
24 			const struct bt_audio_codec_cfg *, struct bt_bap_stream **,
25 			struct bt_bap_qos_cfg_pref *const, struct bt_bap_ascs_rsp *);
26 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *,
27 			enum bt_audio_dir, const struct bt_audio_codec_cfg *,
28 			struct bt_bap_qos_cfg_pref *const, struct bt_bap_ascs_rsp *);
29 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *,
30 			const struct bt_bap_qos_cfg *, struct bt_bap_ascs_rsp *);
31 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *,
32 			const uint8_t *, size_t, struct bt_bap_ascs_rsp *);
33 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *,
34 			struct bt_bap_ascs_rsp *);
35 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *,
36 			const uint8_t *, size_t, struct bt_bap_ascs_rsp *);
37 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *,
38 			struct bt_bap_ascs_rsp *);
39 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *,
40 			struct bt_bap_ascs_rsp *);
41 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
42 			struct bt_bap_ascs_rsp *);
43 
44 #endif /* MOCKS_BAP_UNICAST_SERVER_H_ */
45