Searched refs:fake_settings_buf (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_settings/src/ |
D | main.c | 44 static uint8_t fake_settings_buf[CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES][ENTRY_MAX_LEN]; variable 84 memcpy(data, fake_settings_buf[*idx], len); in custom_settings_read_cb() 97 memcpy(fake_settings_buf[i], value, val_len); in custom_settings_save_one() 111 memset(fake_settings_buf[i], 0, ENTRY_MAX_LEN); in custom_settings_delete() 144 zassert_equal(memcmp(buf, &fake_settings_buf[i], in custom_wifi_credentials_cache_ssid() 165 memset(fake_settings_buf, 0, CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES * ENTRY_MAX_LEN); in wifi_credentials_backend_settings_setup() 198 zassert_equal(strcmp(fake_settings_buf[0], "abc"), 0, "Value mismatch"); in ZTEST()
|
/Zephyr-latest/tests/net/lib/wifi_credentials/src/ |
D | main.c | 26 uint8_t fake_settings_buf[CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES][ENTRY_MAX_LEN]; 31 memcpy(fake_settings_buf[idx], buf, MIN(ENTRY_MAX_LEN, buf_len)); in custom_wifi_credentials_store_entry() 38 memcpy(buf, fake_settings_buf[idx], MIN(ENTRY_MAX_LEN, buf_len)); in custom_wifi_credentials_load_entry()
|