zephyr/tests/bluetooth/host/id/mocks/net_buf_expects.h
Ahmed Moheb 053a7fdd37 tests: bluetooth: host: Add UT for bt_id_set_adv_random_addr()
Unit test project for bt_id_set_adv_random_addr().
This part of subsys/bluetooth/host/id.c unit testing.

Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2023-01-17 13:13:28 +01:00

40 lines
995 B
C

/*
* 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);