1 /*
2  * Copyright (c) 2023 Codecoup
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef MOCKS_GATT_H_
8 #define MOCKS_GATT_H_
9 #include <stdbool.h>
10 #include <stdint.h>
11 
12 #include <zephyr/fff.h>
13 #include <zephyr/bluetooth/conn.h>
14 #include <zephyr/bluetooth/gatt.h>
15 
16 void mock_bt_gatt_init(void);
17 void mock_bt_gatt_cleanup(void);
18 
19 DECLARE_FAKE_VALUE_FUNC(int, mock_bt_gatt_notify_cb, struct bt_conn *,
20 			struct bt_gatt_notify_params *);
21 DECLARE_FAKE_VALUE_FUNC(bool, mock_bt_gatt_is_subscribed, struct bt_conn *,
22 			const struct bt_gatt_attr *, uint16_t);
23 
24 void bt_gatt_notify_cb_reset(void);
25 uint16_t bt_gatt_get_mtu(struct bt_conn *conn);
26 int bt_gatt_service_register(struct bt_gatt_service *svc);
27 int bt_gatt_service_unregister(struct bt_gatt_service *svc);
28 
29 #endif /* MOCKS_GATT_H_ */
30