Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: RCSTTEST.HXX
  7. //
  8. // Contents: Tests for Recoverable Storage Objects
  9. //
  10. // Classes: CRcovStorageTest
  11. //
  12. // History: 08-Feb-94 SrikantS Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <pstore.hxx>
  17. #include <rcstxact.hxx>
  18. #include <rcstrmit.hxx>
  19. class CRcovStorageTest : INHERIT_UNWIND
  20. {
  21. DECLARE_UNWIND
  22. public:
  23. enum { CB_REC = 100 };
  24. CRcovStorageTest( PStorage & storage );
  25. void AppendTest( const char *szInfo, ULONG nRec );
  26. void ReadTest( ULONG nRec );
  27. void WriteTest( const char *szInfo, ULONG nRec );
  28. void ShrinkTest( ULONG cbDelta );
  29. void SetSizeTest( ULONG cbNew );
  30. void GrowTest( ULONG cbNew );
  31. void ShrinkFrontTest( ULONG nRec );
  32. private:
  33. PStorage & _storage;
  34. PRcovStorageObj * _pObj;
  35. SRcovStorageObj _sObj;
  36. };