VirtualBox

Changeset 100242 in vbox for trunk


Ignore:
Timestamp:
Jun 21, 2023 5:43:31 PM (18 months ago)
Author:
vboxsync
Message:

Shared Clipboard: More code for HTTP transfer testcase. bugref:9437

Location:
trunk/src/VBox/GuestHost/SharedClipboard/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/testcase/Makefile.kmk

    r100204 r100242  
    8080        ../clipboard-common.cpp \
    8181        ../clipboard-transfers.cpp \
    82         ../clipboard-transfers-http.cpp
     82        ../clipboard-transfers-http.cpp \
     83        ../clipboard-transfers-provider-local.cpp
    8384   tstClipboardHttpServer_DEFS    += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    8485  endif
  • trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardHttpServer.cpp

    r100204 r100242  
    176176    SHCLHTTPSERVER HttpSrv;
    177177    ShClTransferHttpServerInit(&HttpSrv);
     178    ShClTransferHttpServerStop(&HttpSrv); /* Try to stop a non-running server twice. */
     179    ShClTransferHttpServerStop(&HttpSrv);
    178180    RTTEST_CHECK(hTest, ShClTransferHttpServerIsRunning(&HttpSrv) == false);
    179181    if (uPort)
     
    194196    RTTEST_CHECK_RC_OK(hTest, ShClTransferCtxInit(&TxCtx));
    195197
     198    /* Query the local transfer provider. */
     199    SHCLTXPROVIDER Provider;
     200    RTTESTI_CHECK(VBClTransferProviderLocalQueryInterface(&Provider) != NULL);
     201
    196202    /* Parse options again, but this time we only fetch all files we want to serve.
    197203     * Only can be done after we initialized the HTTP server above. */
     
    207213                PSHCLTRANSFER pTx;
    208214                RTTEST_CHECK_RC_OK(hTest, ShClTransferCreate(&pTx));
     215                RTTEST_CHECK_RC_OK(hTest, ShClTransferSetProvider(pTx, &Provider));
    209216                RTTEST_CHECK_RC_OK(hTest, ShClTransferInit(pTx, SHCLTRANSFERDIR_TO_REMOTE, SHCLSOURCE_LOCAL));
    210217                RTTEST_CHECK_RC_OK(hTest, ShClTransferRootsInitFromFile(pTx, ValueUnion.psz));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette