Add a test that checks behavior of CONFIG_BT_CONN_CHECK_NULL_BEFORE_CREATE Kconfig option. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
17 lines
568 B
C
17 lines
568 B
C
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/fff.h>
|
|
|
|
/* List of fakes used by this unit tester */
|
|
#define SYS_CLOCK_MOCKS_FFF_FAKES_LIST(FAKE) \
|
|
FAKE(sys_timepoint_calc) \
|
|
FAKE(sys_timepoint_timeout)
|
|
|
|
DECLARE_FAKE_VALUE_FUNC(k_timepoint_t, sys_timepoint_calc, k_timeout_t);
|
|
DECLARE_FAKE_VALUE_FUNC(k_timeout_t, sys_timepoint_timeout, k_timepoint_t);
|