1 /* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/fff.h> 9 10 /* List of fakes used by this unit tester */ 11 #define SPINLOCK_MOCKS_FFF_FAKES_LIST(FAKE) \ 12 FAKE(z_spin_lock_valid) \ 13 FAKE(z_spin_unlock_valid) \ 14 FAKE(z_spin_lock_set_owner) 15 16 DECLARE_FAKE_VALUE_FUNC(bool, z_spin_lock_valid, struct k_spinlock *); 17 DECLARE_FAKE_VALUE_FUNC(bool, z_spin_unlock_valid, struct k_spinlock *); 18 DECLARE_FAKE_VOID_FUNC(z_spin_lock_set_owner, struct k_spinlock *); 19