- Timestamp:
- Jun 22, 2012 6:00:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/service.cpp
r37472 r41892 745 745 } 746 746 747 #ifdef UNIT_TEST748 static int testSSMStubRC(void) { AssertFailedReturn(VERR_WRONG_ORDER); }749 static uint32_t testSSMStubU32(void) { AssertFailedReturn(0); }750 # define SSMR3PutU32(pSSM, u32) testSSMStubRC()751 # define SSMR3PutStructEx(pSSM, pvStruct, cbStruct, fFlags, paFields, pvUser) \752 testSSMStubRC()753 # define SSMR3GetU32(pSSM, pu32) ( *(pu32) = 0, testSSMStubRC() )754 # define SSMR3HandleHostBits(pSSM) testSSMStubU32()755 # define SSMR3GetStructEx(pSSM, pvStruct, cbStruct, fFlags, paFields, pvUser) \756 testSSMStubRC()757 #endif758 759 747 /** 760 748 * SSM descriptor table for the VBOXCLIPBOARDCLIENTDATA structure. … … 772 760 static DECLCALLBACK(int) svcSaveState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM) 773 761 { 762 #ifndef UNIT_TEST 774 763 /* If there are any pending requests, they must be completed here. Since 775 764 * the service is single threaded, there could be only requests … … 801 790 vboxSvcClipboardCompleteReadData (pClient, VINF_SUCCESS, 0); 802 791 792 #endif /* !UNIT_TEST */ 803 793 return VINF_SUCCESS; 804 794 } … … 848 838 static DECLCALLBACK(int) svcLoadState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM) 849 839 { 840 #ifndef UNIT_TEST 850 841 LogRel2 (("svcLoadState: u32ClientID = %d\n", u32ClientID)); 851 842 … … 918 909 vboxClipboardSync (pClient); 919 910 911 #endif /* !UNIT_TEST */ 920 912 return VINF_SUCCESS; 921 913 } 922 923 #ifdef UNIT_TEST924 # undef SSMR3PutU32925 # undef SSMR3GetU32926 # undef SSMR3HandleHostBits927 # undef SSMR3GetStructEx928 #endif929 914 930 915 static DECLCALLBACK(int) extCallback (uint32_t u32Function, uint32_t u32Format, void *pvData, uint32_t cbData)
Note:
See TracChangeset
for help on using the changeset viewer.