1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include <zephyr/bluetooth/hci.h>
9 
10 #include <host/hci_core.h>
11 
12 #include "hci_core.h"
13 
14 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_alloc, k_timeout_t);
15 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
16 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_le_read_remote_features, struct bt_conn *);
17 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_disconnect, uint16_t, uint8_t);
18 DEFINE_FAKE_VALUE_FUNC(bool, bt_le_conn_params_valid, const struct bt_le_conn_param *);
19 DEFINE_FAKE_VOID_FUNC(bt_tx_irq_raise);
20 DEFINE_FAKE_VALUE_FUNC(int, bt_send, struct net_buf *);
21 DEFINE_FAKE_VOID_FUNC(bt_send_one_host_num_completed_packets, uint16_t);
22 DEFINE_FAKE_VOID_FUNC(bt_acl_set_ncp_sent, struct net_buf *, bool);
23 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn, const struct bt_conn *);
24 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn_cancel);
25 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn_synced, const struct bt_conn *,
26 		       const struct bt_le_ext_adv *, uint8_t);
27 DEFINE_FAKE_VALUE_FUNC(const bt_addr_le_t *, bt_lookup_id_addr, uint8_t, const bt_addr_le_t *);
28 DEFINE_FAKE_VALUE_FUNC(int, bt_le_set_phy, struct bt_conn *, uint8_t, uint8_t, uint8_t, uint8_t);
29 
30 struct bt_dev bt_dev = {
31 	.manufacturer = 0x1234,
32 };
33