Lines Matching refs:ASSERT_TRUE
151 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in tx_on_iv_update_test()
152 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
153 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in tx_on_iv_update_test()
154 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test()
155 ASSERT_TRUE(bt_mesh.iv_index == 0); in tx_on_iv_update_test()
161 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test()
163 ASSERT_TRUE(bt_mesh_iv_update()); in tx_on_iv_update_test()
164 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
165 ASSERT_TRUE(bt_mesh.iv_index == 1); in tx_on_iv_update_test()
169 ASSERT_TRUE(!bt_mesh_iv_update()); in tx_on_iv_update_test()
170 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
171 ASSERT_TRUE(bt_mesh.iv_index == 1); in tx_on_iv_update_test()
175 ASSERT_TRUE(bt_mesh_iv_update()); in tx_on_iv_update_test()
176 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
177 ASSERT_TRUE(bt_mesh.iv_index == 2); in tx_on_iv_update_test()
197 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in test_rx_on_iv_update()
198 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
199 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in test_rx_on_iv_update()
200 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_rx_on_iv_update()
201 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_rx_on_iv_update()
207 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_rx_on_iv_update()
212 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
213 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_rx_on_iv_update()
218 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
219 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_rx_on_iv_update()
224 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
225 ASSERT_TRUE(bt_mesh.iv_index == 2); in test_rx_on_iv_update()
238 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
239 ASSERT_TRUE(phase == BT_MESH_KR_NORMAL); in tx_on_key_refresh_test()
245 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
247 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
248 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_1); in tx_on_key_refresh_test()
254 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
256 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
257 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_2); in tx_on_key_refresh_test()
263 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
265 ASSERT_TRUE(status == STATUS_SUCCESS); in tx_on_key_refresh_test()
266 ASSERT_TRUE(phase == BT_MESH_KR_NORMAL); in tx_on_key_refresh_test()
292 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
293 ASSERT_TRUE(phase == BT_MESH_KR_NORMAL); in test_rx_on_key_refresh()
299 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
301 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
302 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_1); in test_rx_on_key_refresh()
307 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
308 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_1); in test_rx_on_key_refresh()
313 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
314 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_2); in test_rx_on_key_refresh()
319 ASSERT_TRUE(status == STATUS_SUCCESS); in test_rx_on_key_refresh()
320 ASSERT_TRUE(phase == BT_MESH_KR_NORMAL); in test_rx_on_key_refresh()
479 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in corrupted_beacon_test()
480 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in corrupted_beacon_test()
497 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in corrupted_beacon_test()
549 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_invalid()
585 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
593 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
604 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
613 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
614 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
624 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
633 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
634 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
644 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_tx_kr_old_key()
782 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, in test_tx_multiple_netkeys()
799 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, in test_tx_multiple_netkeys()
814 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, in test_tx_multiple_netkeys()
816 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, in test_tx_multiple_netkeys()
833 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, in test_tx_multiple_netkeys()
852 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, beacon_confirm_all_subnets, in test_tx_multiple_netkeys()
854 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, beacon_confirm_all_subnets, in test_tx_multiple_netkeys()
956 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_secure_beacon_interval()
970 ASSERT_TRUE( in test_rx_secure_beacon_interval()
980 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_secure_beacon_interval()
981 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_secure_beacon_interval()
999 ASSERT_TRUE(delta >= (600 * MSEC_PER_SEC)); in test_rx_secure_beacon_interval()
1334 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_priv_invalid()
1372 ASSERT_TRUE(sub != NULL); in test_tx_priv_interleave()
1374 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in test_tx_priv_interleave()
1375 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_priv_interleave()
1376 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in test_tx_priv_interleave()
1377 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_priv_interleave()
1378 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_tx_priv_interleave()
1381 ASSERT_TRUE(status == STATUS_SUCCESS); in test_tx_priv_interleave()
1382 ASSERT_TRUE(phase == BT_MESH_KR_NORMAL); in test_tx_priv_interleave()
1390 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_priv_interleave()
1392 ASSERT_TRUE(bt_mesh_iv_update()); in test_tx_priv_interleave()
1393 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_priv_interleave()
1394 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_tx_priv_interleave()
1404 ASSERT_TRUE(status == STATUS_SUCCESS); in test_tx_priv_interleave()
1406 ASSERT_TRUE(status == STATUS_SUCCESS); in test_tx_priv_interleave()
1407 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_1); in test_tx_priv_interleave()
1411 ASSERT_TRUE(status == STATUS_SUCCESS); in test_tx_priv_interleave()
1413 ASSERT_TRUE(status == STATUS_SUCCESS); in test_tx_priv_interleave()
1414 ASSERT_TRUE(phase == BT_MESH_KR_PHASE_2); in test_tx_priv_interleave()
1442 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_priv_interleave()
1445 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, private_beacon_check, in test_rx_priv_interleave()
1449 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, private_beacon_check, in test_rx_priv_interleave()
1457 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_priv_interleave()
1462 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, NULL, NULL)); in test_rx_priv_interleave()
1470 ASSERT_TRUE(wait_for_beacon(beacon_scan_cb, BEACON_INTERVAL + 1, private_beacon_check, in test_rx_priv_interleave()
1740 ASSERT_TRUE( in test_rx_priv_net_id()
1749 ASSERT_TRUE( in test_rx_priv_net_id()
1794 ASSERT_TRUE( in test_rx_priv_node_id()
1804 ASSERT_TRUE( in test_rx_priv_node_id()
1923 ASSERT_TRUE(wait_for_beacon(proxy_adv_scan_all_cb, 2, NULL, &beac)); in proxy_adv_scan_all()
2095 ASSERT_TRUE(wait_for_beacon(priv_scan_cb, 5, NULL, &ctx)); in test_rx_priv_multi_net_id()
2140 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_tx_priv_gatt_proxy()
2155 ASSERT_TRUE(bt_mesh_iv_update()); in test_tx_priv_gatt_proxy()
2158 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_tx_priv_gatt_proxy()
2169 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_rx_priv_gatt_proxy()