1 /*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include "mocks/kernel.h"
8 #include "mocks/kernel_expects.h"
9
10 #include <zephyr/kernel.h>
11
expect_single_call_k_work_init_delayable(struct k_work_delayable * dwork)12 void expect_single_call_k_work_init_delayable(struct k_work_delayable *dwork)
13 {
14 const char *func_name = "k_work_init_delayable";
15
16 zassert_equal(k_work_init_delayable_fake.call_count, 1, "'%s()' was called more than once",
17 func_name);
18 zassert_equal(k_work_init_delayable_fake.arg0_val, dwork,
19 "'%s()' was called with incorrect '%s' value", func_name, "dwork");
20 zassert_not_null(k_work_init_delayable_fake.arg1_val,
21 "'%s()' was called with incorrect '%s' value", func_name, "handler");
22 }
23