Lines Matching refs:targets

523 		ASSERT_EQUAL(expected_status, dfd_srv.targets[i].status);  in dist_dfu_start_and_confirm()
525 if (dfd_srv.targets[i].effect == BT_MESH_DFU_EFFECT_UNPROV) { in dist_dfu_start_and_confirm()
531 dfd_srv.targets[i].phase); 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()
838 struct bt_mesh_dfu_target targets[7]; member
849 sys_slist_init(&dfu_cli_xfer.inputs.targets); in dfu_cli_inputs_prepare()
853 uint16_t addr = dfu_cli_xfer.targets[i].blob.addr; in dfu_cli_inputs_prepare()
855 memset(&dfu_cli_xfer.targets[i], 0, sizeof(struct bt_mesh_dfu_target)); in dfu_cli_inputs_prepare()
856 dfu_cli_xfer.targets[i].blob.addr = addr; in dfu_cli_inputs_prepare()
860 dfu_cli_xfer.targets[i].blob.pull = &dfu_cli_xfer.pull[i]; in dfu_cli_inputs_prepare()
863 sys_slist_append(&dfu_cli_xfer.inputs.targets, &dfu_cli_xfer.targets[i].blob.n); in dfu_cli_inputs_prepare()
873 ASSERT_TRUE(dfu_cli_xfer.target_count < ARRAY_SIZE(dfu_cli_xfer.targets)); in target_srv_add()
874 struct bt_mesh_blob_target *t = &dfu_cli_xfer.targets[dfu_cli_xfer.target_count].blob; in target_srv_add()
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()
1128 ASSERT_EQUAL(BT_MESH_DFU_ERR_INTERNAL, dfu_cli_xfer.targets[i].status); in test_cli_all_targets_lost_on_caps_get()
1130 dfu_cli_xfer.targets[i].phase); 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()
1148 dfu_cli_xfer.targets[i].phase); 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()
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()
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()