1 /* 2 * Copyright (c) 2023 Codecoup 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef MOCKS_ISO_H_ 8 #define MOCKS_ISO_H_ 9 10 #include <zephyr/fff.h> 11 #include <zephyr/bluetooth/iso.h> 12 13 #if defined(CONFIG_BT_BAP_BROADCAST_SOURCE) 14 struct bt_iso_big { 15 struct bt_iso_chan *bis[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; 16 uint8_t num_bis; 17 }; 18 #endif /* CONFIG_BT_BAP_BROADCAST_SOURCE */ 19 20 void mock_bt_iso_init(void); 21 void mock_bt_iso_cleanup(void); 22 int mock_bt_iso_accept(struct bt_conn *conn, uint8_t cig_id, uint8_t cis_id, 23 struct bt_iso_chan **chan); 24 int mock_bt_iso_disconnected(struct bt_iso_chan *chan, uint8_t err); 25 26 DECLARE_FAKE_VALUE_FUNC(int, bt_iso_chan_get_tx_sync, const struct bt_iso_chan *, 27 struct bt_iso_tx_info *); 28 29 #endif /* MOCKS_ISO_H_ */ 30