Lines Matching refs:ASSERT_EQUAL

149 			ASSERT_EQUAL(BT_MESH_DFD_PHASE_APPLYING_UPDATE, prev_phase);  in dist_phase_changed()
471 ASSERT_EQUAL(sizeof(target_fw_ver_new), fwid_len); in slot_add()
503 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in dist_dfu_start_and_confirm()
513 ASSERT_EQUAL(BT_MESH_DFD_PHASE_FAILED, dfd_srv.phase); in dist_dfu_start_and_confirm()
517 ASSERT_EQUAL(BT_MESH_DFD_PHASE_COMPLETED, dfd_srv.phase); in dist_dfu_start_and_confirm()
523 ASSERT_EQUAL(expected_status, dfd_srv.targets[i].status); in dist_dfu_start_and_confirm()
530 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLY_FAIL, in dist_dfu_start_and_confirm()
533 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
536 ASSERT_EQUAL(expected_phase, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
555 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in test_dist_dfu()
576 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in test_dist_dfu_self_update()
581 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in test_dist_dfu_self_update()
646 ASSERT_EQUAL(idx, (*i)++); in check_slot()
647 ASSERT_EQUAL(size, slot->size); in check_slot()
650 ASSERT_EQUAL(fwid_len, slot->fwid_len); in check_slot()
654 ASSERT_EQUAL(metadata_len, slot->metadata_len); in check_slot()
679 ASSERT_EQUAL(CONFIG_BT_MESH_DFU_SLOT_CNT - 2, slot_count); in test_dist_dfu_slot_create_recover()
684 ASSERT_EQUAL(idx, i - 2); in test_dist_dfu_slot_create_recover()
685 ASSERT_EQUAL(size, slot->size); in test_dist_dfu_slot_create_recover()
688 ASSERT_EQUAL(metadata_len, slot->metadata_len); in test_dist_dfu_slot_create_recover()
705 ASSERT_EQUAL(0, slot_count); in check_delete_all()
750 ASSERT_EQUAL(NULL, bt_mesh_dfu_slot_reserve()); in test_dist_dfu_slot_reservation()
755 ASSERT_EQUAL(NULL, bt_mesh_dfu_slot_reserve()); in test_dist_dfu_slot_reservation()
782 ASSERT_EQUAL(0, bt_mesh_dfu_slot_fwid_set(slot, fwid, fwid_len)); in test_dist_dfu_slot_idempotency()
783 ASSERT_EQUAL(0, bt_mesh_dfu_slot_info_set(slot, 100, NULL, 0)); in test_dist_dfu_slot_idempotency()
785 ASSERT_EQUAL(0, bt_mesh_dfu_slot_commit(slot)); in test_dist_dfu_slot_idempotency()
786 ASSERT_EQUAL(-EINVAL, bt_mesh_dfu_slot_commit(slot)); in test_dist_dfu_slot_idempotency()
788 ASSERT_EQUAL(0, bt_mesh_dfu_slot_del(slot)); in test_dist_dfu_slot_idempotency()
789 ASSERT_EQUAL(-EINVAL, bt_mesh_dfu_slot_del(slot)); in test_dist_dfu_slot_idempotency()
891 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, reason); in dfu_cli_ended()
1026 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[6].status); in test_cli_fail_on_persistency()
1027 ASSERT_EQUAL(BT_MESH_DFU_PHASE_UNKNOWN, dfu_cli_xfer.targets[6].phase); in test_cli_fail_on_persistency()
1029 ASSERT_EQUAL(BT_MESH_DFU_ERR_METADATA, dfu_cli_xfer.targets[0].status); in test_cli_fail_on_persistency()
1030 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[0].phase); in test_cli_fail_on_persistency()
1034 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[1].status); in test_cli_fail_on_persistency()
1035 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[1].phase); in test_cli_fail_on_persistency()
1037 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[2].status); in test_cli_fail_on_persistency()
1038 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[2].phase); in test_cli_fail_on_persistency()
1040 ASSERT_EQUAL(BT_MESH_DFU_ERR_WRONG_PHASE, dfu_cli_xfer.targets[3].status); in test_cli_fail_on_persistency()
1041 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[3].phase); in test_cli_fail_on_persistency()
1043 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, dfu_cli_xfer.targets[4].status); in test_cli_fail_on_persistency()
1044 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[4].phase); in test_cli_fail_on_persistency()
1045 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, dfu_cli_xfer.targets[5].status); in test_cli_fail_on_persistency()
1046 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[5].phase); in test_cli_fail_on_persistency()
1058 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[4].status); in test_cli_fail_on_persistency()
1059 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[4].phase); in test_cli_fail_on_persistency()
1071 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, dfu_cli_xfer.targets[5].status); in test_cli_fail_on_persistency()
1072 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLY_SUCCESS, dfu_cli_xfer.targets[5].phase); in test_cli_fail_on_persistency()
1111 ASSERT_EQUAL(BT_MESH_DFU_ERR_METADATA, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_metadata()
1112 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_metadata()
1116 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_metadata()
1128 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_caps_get()
1129 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, in test_cli_all_targets_lost_on_caps_get()
1134 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_caps_get()
1146 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_update_get()
1147 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, in test_cli_all_targets_lost_on_update_get()
1152 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_update_get()
1164 ASSERT_EQUAL(BT_MESH_DFU_ERR_WRONG_PHASE, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_verify()
1165 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_verify()
1169 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_verify()
1181 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_apply()
1182 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_apply()
1195 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_apply()
1196 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_apply()
1200 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_apply()
1225 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[0].status); in test_cli_stop()
1226 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1240 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[0].status); in test_cli_stop()
1241 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1260 ASSERT_EQUAL(BT_MESH_DFU_ERR_WRONG_PHASE, dfu_cli_xfer.targets[0].status); in test_cli_stop()
1261 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1280 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[0].status); in test_cli_stop()
1281 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1298 ASSERT_EQUAL(BT_MESH_DFU_SUCCESS, dfu_cli_xfer.targets[0].status); in test_cli_stop()
1299 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1570 ASSERT_EQUAL(expected_stop_phase, dfu_srv.update.phase); in test_target_dfu_stop()
1580 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ERR, dfu_srv.update.phase); in test_target_dfu_stop()
1584 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_srv.update.phase); in test_target_dfu_stop()
1587 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_srv.update.phase); in test_target_dfu_stop()
1589 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_srv.update.phase); in test_target_dfu_stop()
1592 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_srv.update.phase); in test_target_dfu_stop()
1596 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_srv.update.phase); in test_target_dfu_stop()
1599 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_srv.update.phase); in test_target_dfu_stop()
1601 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_srv.update.phase); in test_target_dfu_stop()
1608 ASSERT_EQUAL(0, dfu_srv.update.idx); in test_target_dfu_stop()