1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/fff.h> 8 #include <stdint.h> 9 #include <stdbool.h> 10 11 #include <zephyr/kernel.h> 12 13 /* List of fakes used by this unit tester */ 14 #define ASSERT_FFF_FAKES_LIST(FAKE) \ 15 FAKE(mock_check_if_assert_expected) \ 16 17 DECLARE_FAKE_VALUE_FUNC(bool, mock_check_if_assert_expected); 18 19 #define expect_assert() (mock_check_if_assert_expected_fake.return_val = 1) 20