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 10 #include <zephyr/fff.h> 11 #include <zephyr/bluetooth/audio/bap.h> 12 13 extern struct bt_bap_stream_ops mock_bap_stream_ops; 14 15 void mock_bap_stream_init(void); 16 void mock_bap_stream_cleanup(void); 17 18 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_configured_cb, struct bt_bap_stream *, 19 const struct bt_bap_qos_cfg_pref *); 20 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_qos_set_cb, struct bt_bap_stream *); 21 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_enabled_cb, struct bt_bap_stream *); 22 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_metadata_updated_cb, struct bt_bap_stream *); 23 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_disabled_cb, struct bt_bap_stream *); 24 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_released_cb, struct bt_bap_stream *); 25 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_started_cb, struct bt_bap_stream *); 26 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_stopped_cb, struct bt_bap_stream *, uint8_t); 27 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_recv_cb, struct bt_bap_stream *, 28 const struct bt_iso_recv_info *, struct net_buf *); 29 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_sent_cb, struct bt_bap_stream *); 30 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_connected_cb, struct bt_bap_stream *); 31 DECLARE_FAKE_VOID_FUNC(mock_bap_stream_disconnected_cb, struct bt_bap_stream *, uint8_t); 32 33 #endif /* MOCKS_BAP_STREAM_H_ */ 34