zephyr/tests/bluetooth/host/ecc/mocks/net_buf_expects.h

24 lines
584 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
/*
* 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);