- Timestamp:
- Jun 21, 2023 5:43:31 PM (18 months ago)
- Location:
- trunk/src/VBox/GuestHost/SharedClipboard/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/testcase/Makefile.kmk
r100204 r100242 80 80 ../clipboard-common.cpp \ 81 81 ../clipboard-transfers.cpp \ 82 ../clipboard-transfers-http.cpp 82 ../clipboard-transfers-http.cpp \ 83 ../clipboard-transfers-provider-local.cpp 83 84 tstClipboardHttpServer_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP 84 85 endif -
trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardHttpServer.cpp
r100204 r100242 176 176 SHCLHTTPSERVER HttpSrv; 177 177 ShClTransferHttpServerInit(&HttpSrv); 178 ShClTransferHttpServerStop(&HttpSrv); /* Try to stop a non-running server twice. */ 179 ShClTransferHttpServerStop(&HttpSrv); 178 180 RTTEST_CHECK(hTest, ShClTransferHttpServerIsRunning(&HttpSrv) == false); 179 181 if (uPort) … … 194 196 RTTEST_CHECK_RC_OK(hTest, ShClTransferCtxInit(&TxCtx)); 195 197 198 /* Query the local transfer provider. */ 199 SHCLTXPROVIDER Provider; 200 RTTESTI_CHECK(VBClTransferProviderLocalQueryInterface(&Provider) != NULL); 201 196 202 /* Parse options again, but this time we only fetch all files we want to serve. 197 203 * Only can be done after we initialized the HTTP server above. */ … … 207 213 PSHCLTRANSFER pTx; 208 214 RTTEST_CHECK_RC_OK(hTest, ShClTransferCreate(&pTx)); 215 RTTEST_CHECK_RC_OK(hTest, ShClTransferSetProvider(pTx, &Provider)); 209 216 RTTEST_CHECK_RC_OK(hTest, ShClTransferInit(pTx, SHCLTRANSFERDIR_TO_REMOTE, SHCLSOURCE_LOCAL)); 210 217 RTTEST_CHECK_RC_OK(hTest, ShClTransferRootsInitFromFile(pTx, ValueUnion.psz));
Note:
See TracChangeset
for help on using the changeset viewer.