zephyr/tests/bluetooth/audio/mocks/include/mock_kernel.h
Emil Gydesen 026a2c54ae tests: Bluetooth: Audio: Spring cleanup for audio test files
Add missing and remove unused includes. Fix spelling mistakes.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-04 12:03:04 +01:00

26 lines
704 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
* Copyright (c) 2023 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef MOCKS_KERNEL_H_
#define MOCKS_KERNEL_H_
#include <zephyr/fff.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/sys_clock.h>
void mock_kernel_init(void);
void mock_kernel_cleanup(void);
DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
struct k_work_sync *);
DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
#endif /* MOCKS_KERNEL_H_ */