1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/fff.h> 8 #include <zephyr/kernel.h> 9 10 /* List of fakes used by this unit tester */ 11 #define NET_BUF_FFF_FAKES_LIST(FAKE) \ 12 FAKE(net_buf_unref) \ 13 FAKE(net_buf_simple_add) \ 14 FAKE(net_buf_simple_add_u8) \ 15 FAKE(net_buf_simple_add_mem) 16 17 DECLARE_FAKE_VOID_FUNC(net_buf_unref, struct net_buf *); 18 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t); 19 DECLARE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t); 20 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add_mem, struct net_buf_simple *, const void *, 21 size_t); 22