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 #include <stdint.h> 10 11 #include <zephyr/autoconf.h> 12 #include <zephyr/bluetooth/conn.h> 13 #include <zephyr/bluetooth/iso.h> 14 #include <zephyr/fff.h> 15 16 #if defined(CONFIG_BT_BAP_BROADCAST_SOURCE) 17 struct bt_iso_big { 18 struct bt_iso_chan *bis[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; 19 uint8_t num_bis; 20 }; 21 #endif /* CONFIG_BT_BAP_BROADCAST_SOURCE */ 22 23 void mock_bt_iso_init(void); 24 void mock_bt_iso_cleanup(void); 25 int mock_bt_iso_accept(struct bt_conn *conn, uint8_t cig_id, uint8_t cis_id, 26 struct bt_iso_chan **chan); 27 int mock_bt_iso_disconnected(struct bt_iso_chan *chan, uint8_t err); 28 29 DECLARE_FAKE_VALUE_FUNC(int, bt_iso_chan_get_tx_sync, const struct bt_iso_chan *, 30 struct bt_iso_tx_info *); 31 32 #endif /* MOCKS_ISO_H_ */ 33