Changeset 100204 in vbox for trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardTransfers.cpp
- Timestamp:
- Jun 19, 2023 9:11:37 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardTransfers.cpp
r98103 r100204 215 215 RTTESTI_CHECK_RC_OK(rc); 216 216 217 SHCLTXPROVIDER Provider; 218 RTTESTI_CHECK(VBClTransferProviderLocalQueryInterface(&Provider) != NULL); 219 RTTESTI_CHECK_RC_OK(ShClTransferSetProvider(pTransfer, &Provider)); 220 217 221 char szTestTransferRootsSetDir[RTPATH_MAX]; 218 222 rc = testCreateTempDir(hTest, "testTransferRootsSet", szTestTransferRootsSetDir, sizeof(szTestTransferRootsSetDir)); … … 227 231 RTTESTI_CHECK_RC_OK_RETV(rc); 228 232 229 rc = ShClTransferRoots Set(pTransfer, pszRoots, strlen(pszRoots) + 1);233 rc = ShClTransferRootsInitFromStringList(pTransfer, pszRoots, strlen(pszRoots) + 1); 230 234 RTTESTI_CHECK_RC(rc, rcExpected); 231 235 … … 243 247 PSHCLTRANSFER pTransfer; 244 248 int rc = ShClTransferCreate(&pTransfer); 249 RTTESTI_CHECK_RC_OK(rc); 250 251 SHCLTXPROVIDER Provider; 252 VBClTransferProviderLocalQueryInterface(&Provider); 253 254 rc = ShClTransferSetProvider(pTransfer, &Provider); 245 255 RTTESTI_CHECK_RC_OK(rc); 246 256 … … 262 272 RTTESTI_CHECK_RC_OK_RETV(rc); 263 273 264 rc = ShClTransferRoots Set(pTransfer, pszRoots, strlen(pszRoots) + 1);274 rc = ShClTransferRootsInitFromStringList(pTransfer, pszRoots, strlen(pszRoots) + 1); 265 275 RTTESTI_CHECK_RC_OK(rc); 266 276 … … 303 313 rc = ShClTransferDestroy(pTransfer); 304 314 RTTESTI_CHECK_RC_OK(rc); 315 rc = ShClTransferDestroy(pTransfer); /* Second time, intentional. */ 316 RTTESTI_CHECK_RC_OK(rc); 317 318 PSHCLLIST pList = ShClTransferListAlloc(); 319 RTTESTI_CHECK(pList != NULL); 320 rc = ShClTransferCreate(&pTransfer); 321 RTTESTI_CHECK_RC_OK(rc); 322 ShClTransferListFree(pList); 323 pList = NULL; 324 ShClTransferListFree(pList); /* Second time, intentional. */ 325 326 SHCLLISTENTRY Entry; 327 RTTESTI_CHECK_RC_OK(ShClTransferListEntryInit(&Entry)); 328 ShClTransferListEntryDestroy(&Entry); 329 ShClTransferListEntryDestroy(&Entry); /* Second time, intentional. */ 305 330 } 306 331 … … 387 412 return RTTestSummaryAndDestroy(hTest); 388 413 } 389
Note:
See TracChangeset
for help on using the changeset viewer.