zephyr/tests/net/mocks/assert.h

17 lines
495 B
C
Raw Normal View History

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