1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #include <string.h>
7 
8 #include <zephyr/bluetooth/conn.h>
9 #include <zephyr/bluetooth/addr.h>
10 #include <zephyr/sys/printk.h>
11 #include <zephyr/sys/util.h>
12 
13 #include "babblekit/flags.h"
14 #include "babblekit/testcase.h"
15 
16 #include "common.h"
17 
18 extern enum bst_result_t bst_result;
19 
test_init(void)20 void test_init(void)
21 {
22 	bst_result = In_progress;
23 	bst_ticker_set_next_tick_absolute(WAIT_TIME);
24 }
25 
test_tick(bs_time_t HW_device_time)26 void test_tick(bs_time_t HW_device_time)
27 {
28 	if (bst_result != Passed) {
29 		TEST_FAIL("Test failed (not passed after %" PRIu64 " us)", WAIT_TIME);
30 	}
31 }
32