blob: 4e64ad7c715fff30692d8914e71a4546904ac559 [file] [log] [blame]
/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
/*
* Validate expected behaviour when net_buf_unref() is called
*
* Expected behaviour:
* - net_buf_unref() to be called once with correct parameters
*/
void expect_single_call_net_buf_unref(struct net_buf *buf);
/*
* Validate expected behaviour when net_buf_unref() isn't called
*
* Expected behaviour:
* - net_buf_unref() isn't called at all
*/
void expect_not_called_net_buf_unref(void);
/*
* Validate expected behaviour when net_buf_simple_add() is called
*
* Expected behaviour:
* - net_buf_simple_add() to be called once with correct parameters
*/
void expect_single_call_net_buf_simple_add(struct net_buf_simple *buf, size_t len);
/*
* Validate expected behaviour when net_buf_simple_add() isn't called
*
* Expected behaviour:
* - net_buf_simple_add() isn't called at all
*/
void expect_not_called_net_buf_simple_add(void);