tests: bluetooth: host: Add UT for bt_keys_update_usage()

Unit test project for bt_keys_update_usage().
This part of subsys/bluetooth/host/keys.c unit testing.

Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
This commit is contained in:
Ahmed Moheb 2022-09-08 20:28:46 +02:00 committed by Carles Cufí
commit 60345c1ddc
10 changed files with 323 additions and 0 deletions

View file

@ -542,5 +542,10 @@ uint32_t bt_keys_get_aging_counter_val(void)
{
return aging_counter_val;
}
struct bt_keys *bt_keys_get_last_keys_updated(void)
{
return last_keys_updated;
}
#endif /* CONFIG_BT_KEYS_OVERWRITE_OLDEST */
#endif /* ZTEST_UNITTEST */