Changeset 84142 in vbox for trunk/src/VBox/HostServices/SharedClipboard/testcase
- Timestamp:
- May 5, 2020 7:13:00 AM (5 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp
r83624 r84142 308 308 } 309 309 310 int ShCl SvcImplInit() { return VINF_SUCCESS; }311 void ShCl SvcImplDestroy() { }312 int ShCl SvcImplDisconnect(PSHCLCLIENT) { return VINF_SUCCESS; }313 int ShCl SvcImplConnect(PSHCLCLIENT, bool) { return VINF_SUCCESS; }314 int ShCl SvcImplFormatAnnounce(PSHCLCLIENT, SHCLFORMATS) { AssertFailed(); return VINF_SUCCESS; }315 int ShCl SvcImplReadData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t, unsigned int *) { AssertFailed(); return VERR_WRONG_ORDER; }316 int ShCl SvcImplWriteData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t) { AssertFailed(); return VINF_SUCCESS; }317 int ShCl SvcImplSync(PSHCLCLIENT) { return VINF_SUCCESS; }310 int ShClBackendInit() { return VINF_SUCCESS; } 311 void ShClBackendDestroy() { } 312 int ShClBackendDisconnect(PSHCLCLIENT) { return VINF_SUCCESS; } 313 int ShClBackendConnect(PSHCLCLIENT, bool) { return VINF_SUCCESS; } 314 int ShClBackendFormatAnnounce(PSHCLCLIENT, SHCLFORMATS) { AssertFailed(); return VINF_SUCCESS; } 315 int ShClBackendReadData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t, unsigned int *) { AssertFailed(); return VERR_WRONG_ORDER; } 316 int ShClBackendWriteData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t) { AssertFailed(); return VINF_SUCCESS; } 317 int ShClBackendSync(PSHCLCLIENT) { return VINF_SUCCESS; } 318 318 319 319 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 320 int ShCl SvcImplTransferCreate(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; }321 int ShCl SvcImplTransferDestroy(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; }322 int ShCl SvcImplTransferGetRoots(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; }320 int ShClBackendTransferCreate(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; } 321 int ShClBackendTransferDestroy(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; } 322 int ShClBackendTransferGetRoots(PSHCLCLIENT, PSHCLTRANSFER) { return VINF_SUCCESS; } 323 323 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 324 324 -
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceImpl.cpp
r83687 r84142 52 52 } 53 53 54 int ShCl SvcImplInit(void) { return VINF_SUCCESS; }55 void ShCl SvcImplDestroy(void) { }56 int ShCl SvcImplDisconnect(PSHCLCLIENT) { return VINF_SUCCESS; }57 int ShCl SvcImplConnect(PSHCLCLIENT, bool) { return VINF_SUCCESS; }58 int ShCl SvcImplFormatAnnounce(PSHCLCLIENT, SHCLFORMATS) { AssertFailed(); return VINF_SUCCESS; }59 int ShCl SvcImplReadData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t, unsigned int *) { AssertFailed(); return VERR_WRONG_ORDER; }60 int ShCl SvcImplWriteData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t) { AssertFailed(); return VINF_SUCCESS; }61 int ShCl SvcImplSync(PSHCLCLIENT) { return VINF_SUCCESS; }54 int ShClBackendInit(void) { return VINF_SUCCESS; } 55 void ShClBackendDestroy(void) { } 56 int ShClBackendDisconnect(PSHCLCLIENT) { return VINF_SUCCESS; } 57 int ShClBackendConnect(PSHCLCLIENT, bool) { return VINF_SUCCESS; } 58 int ShClBackendFormatAnnounce(PSHCLCLIENT, SHCLFORMATS) { AssertFailed(); return VINF_SUCCESS; } 59 int ShClBackendReadData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t, unsigned int *) { AssertFailed(); return VERR_WRONG_ORDER; } 60 int ShClBackendWriteData(PSHCLCLIENT, PSHCLCLIENTCMDCTX, SHCLFORMAT, void *, uint32_t) { AssertFailed(); return VINF_SUCCESS; } 61 int ShClBackendSync(PSHCLCLIENT) { return VINF_SUCCESS; } 62 62 63 63 static void testAnnounceAndReadData(void)
Note:
See TracChangeset
for help on using the changeset viewer.