Changeset 70063 in vbox for trunk/src/VBox/HostServices/GuestProperties/testcase
- Timestamp:
- Dec 11, 2017 3:32:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp
r70061 r70063 229 229 aParms[2].setPointer((void *)g_au64TimestampBlock, 0); 230 230 aParms[3].setPointer((void *)g_apcszFlagsBlock, 0); 231 RTTESTI_CHECK_RC(ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_ SET_PROPS_HOST, 4, &aParms[0]), VINF_SUCCESS);231 RTTESTI_CHECK_RC(ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_HOST_SET_PROPS, 4, &aParms[0]), VINF_SUCCESS); 232 232 } 233 233 … … 340 340 aParms[1].setPointer((void *)abBuffer, g_aEnumStrings[i].cbBuffer - 1); 341 341 memset(abBuffer, 0x55, sizeof(abBuffer)); 342 int rc2 = ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_ ENUM_PROPS_HOST, 3, aParms);342 int rc2 = ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_HOST_ENUM_PROPS, 3, aParms); 343 343 if (rc2 == VERR_BUFFER_OVERFLOW) 344 344 { … … 356 356 aParms[1].setPointer((void *)abBuffer, g_aEnumStrings[i].cbBuffer); 357 357 memset(abBuffer, 0x55, sizeof(abBuffer)); 358 rc2 = ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_ ENUM_PROPS_HOST, 3, aParms);358 rc2 = ptable->pfnHostCall(ptable->pvService, GUEST_PROP_FN_HOST_ENUM_PROPS, 3, aParms); 359 359 if (rc2 == VINF_SUCCESS) 360 360 { … … 401 401 { 402 402 if (useSetProp) 403 command = GUEST_PROP_FN_ SET_PROP_HOST;403 command = GUEST_PROP_FN_HOST_SET_PROP; 404 404 else 405 command = GUEST_PROP_FN_ SET_PROP_VALUE_HOST;405 command = GUEST_PROP_FN_HOST_SET_PROP_VALUE; 406 406 } 407 407 else if (useSetProp) … … 498 498 int command = GUEST_PROP_FN_DEL_PROP; 499 499 if (isHost) 500 command = GUEST_PROP_FN_ DEL_PROP_HOST;500 command = GUEST_PROP_FN_HOST_DEL_PROP; 501 501 VBOXHGCMSVCPARM aParms[1]; 502 502 aParms[0].setString(pcszName); … … 604 604 memset(szBuffer, 0x55, sizeof(szBuffer)); 605 605 aParms[1].setPointer(szBuffer, sizeof(szBuffer)); 606 int rc2 = pTable->pfnHostCall(pTable->pvService, GUEST_PROP_FN_ GET_PROP_HOST, 4, aParms);606 int rc2 = pTable->pfnHostCall(pTable->pvService, GUEST_PROP_FN_HOST_GET_PROP, 4, aParms); 607 607 608 608 if (s_aGetProperties[i].exists && RT_FAILURE(rc2)) … … 824 824 VBOXHGCMSVCPARM paParm; 825 825 paParm.setUInt32(fFlags); 826 int rc = pTable->pfnHostCall(pTable->pvService, GUEST_PROP_FN_ SET_GLOBAL_FLAGS_HOST, 1, &paParm);826 int rc = pTable->pfnHostCall(pTable->pvService, GUEST_PROP_FN_HOST_SET_GLOBAL_FLAGS, 1, &paParm); 827 827 if (RT_FAILURE(rc)) 828 828 { … … 1009 1009 aParms[0].setString(s_szProp); 1010 1010 aParms[1].setPointer(pvBuf, cbBuf); 1011 svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_ GET_PROP_HOST, RT_ELEMENTS(aParms), aParms);1011 svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_HOST_GET_PROP, RT_ELEMENTS(aParms), aParms); 1012 1012 1013 1013 RTTestGuardedFree(g_hTest, pvBuf); … … 1045 1045 aParms[0].setString("*"); 1046 1046 aParms[1].setPointer(pvBuf, cbBuf); 1047 svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_ ENUM_PROPS_HOST, RT_ELEMENTS(aParms), aParms);1047 svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_HOST_ENUM_PROPS, RT_ELEMENTS(aParms), aParms); 1048 1048 1049 1049 RTTestGuardedFree(g_hTest, pvBuf); … … 1114 1114 aParms[0].setPointer(szProp, (uint32_t)cchProp + 1); 1115 1115 aParms[1].setPointer(szBuffer, sizeof(szBuffer)); 1116 RTTESTI_CHECK_RC_BREAK(svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_ GET_PROP_HOST, 4, aParms), VINF_SUCCESS);1116 RTTESTI_CHECK_RC_BREAK(svcTable.pfnHostCall(svcTable.pvService, GUEST_PROP_FN_HOST_GET_PROP, 4, aParms), VINF_SUCCESS); 1117 1117 } 1118 1118 cNsElapsed = RTTimeNanoTS() - cNsElapsed;
Note:
See TracChangeset
for help on using the changeset viewer.