1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "mocks/addr.h" 8 #include "mocks/addr_expects.h" 9 10 #include <zephyr/kernel.h> 11 expect_call_count_bt_addr_le_create_static(int call_count)12void expect_call_count_bt_addr_le_create_static(int call_count) 13 { 14 const char *func_name = "bt_addr_le_create_static"; 15 16 zassert_equal(bt_addr_le_create_static_fake.call_count, call_count, 17 "'%s()' was called more than once", func_name); 18 19 zassert_not_null(bt_addr_le_create_static_fake.arg0_val, 20 "'%s()' was called with incorrect '%s' value", func_name, "buf"); 21 } 22 expect_not_called_bt_addr_le_create_static(void)23void expect_not_called_bt_addr_le_create_static(void) 24 { 25 const char *func_name = "bt_addr_le_create_static"; 26 27 zassert_equal(bt_addr_le_create_static_fake.call_count, 0, "'%s()' was called unexpectedly", 28 func_name); 29 } 30