1 /* 2 * Copyright (c) 2023 Codecoup 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef MOCKS_BAP_STREAM_H_ 8 #define MOCKS_BAP_STREAM_H_ 9 #include <stdint.h> 10 11 #include <zephyr/bluetooth/iso.h> 12 #include <zephyr/fff.h> 13 #include <zephyr/bluetooth/audio/bap.h> 14 #include <zephyr/net_buf.h> 15 16 extern struct bt_bap_stream_ops mock_bap_stream_ops; 17 18 void mock_bap_stream_init(void); 19 void mock_bap_stream_cleanup(void); 20 21 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_configured_cb, struct bt_bap_stream *, 22 const struct bt_bap_qos_cfg_pref *); 23 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_qos_set_cb, struct bt_bap_stream *); 24 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_enabled_cb, struct bt_bap_stream *); 25 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_metadata_updated_cb, struct bt_bap_stream *); 26 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_disabled_cb, struct bt_bap_stream *); 27 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_released_cb, struct bt_bap_stream *); 28 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_started_cb, struct bt_bap_stream *); 29 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_stopped_cb, struct bt_bap_stream *, uint8_t); 30 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_recv_cb, struct bt_bap_stream *, 31 const struct bt_iso_recv_info *, struct net_buf *); 32 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_sent_cb, struct bt_bap_stream *); 33 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_connected_cb, struct bt_bap_stream *); 34 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_disconnected_cb, struct bt_bap_stream *, uint8_t); 35 36 #endif /* MOCKS_BAP_STREAM_H_ */ 37