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 10 #include <zephyr/fff.h> 11 #include <zephyr/bluetooth/audio/bap.h> 12 13 extern const struct bt_bap_unicast_server_cb mock_bap_unicast_server_cb; 14 15 void mock_bap_unicast_server_init(void); 16 void mock_bap_unicast_server_cleanup(void); 17 18 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_config, struct bt_conn *, 19 const struct bt_bap_ep *, enum bt_audio_dir, 20 const struct bt_audio_codec_cfg *, struct bt_bap_stream **, 21 struct bt_audio_codec_qos_pref *const, struct bt_bap_ascs_rsp *); 22 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *, 23 enum bt_audio_dir, const struct bt_audio_codec_cfg *, 24 struct bt_audio_codec_qos_pref *const, struct bt_bap_ascs_rsp *); 25 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *, 26 const struct bt_audio_codec_qos *, struct bt_bap_ascs_rsp *); 27 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *, 28 const uint8_t *, size_t, struct bt_bap_ascs_rsp *); 29 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *, 30 struct bt_bap_ascs_rsp *); 31 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, 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_disable, struct bt_bap_stream *, 34 struct bt_bap_ascs_rsp *); 35 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *, 36 struct bt_bap_ascs_rsp *); 37 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *, 38 struct bt_bap_ascs_rsp *); 39 40 #endif /* MOCKS_BAP_UNICAST_SERVER_H_ */ 41