zephyr/tests/bluetooth/host/host_mocks/assert.h
Ahmed Moheb cb5ba5bea8 tests: bluetooth: host: Add mocks for buf.c
Add required mocks to be able to compile and test /bluetooth/host/buf.c

Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00

16 lines
428 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/fff.h>
#include <zephyr/kernel.h>
/* List of fakes used by this unit tester */
#define ASSERT_FFF_FAKES_LIST(FAKE) \
FAKE(mock_check_if_assert_expected) \
DECLARE_FAKE_VALUE_FUNC(bool, mock_check_if_assert_expected);
#define expect_assert() (mock_check_if_assert_expected_fake.return_val = 1)