Leaked source code of windows server 2003
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.

125 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: SIFT.hxx
  7. //
  8. // Contents: Simulated Iterated Failure Testing Header
  9. //
  10. // History: 25-Jan-93 AlexT Created
  11. //
  12. //--------------------------------------------------------------------------
  13. class CTestCase
  14. {
  15. protected:
  16. inline CTestCase(void) {}
  17. public:
  18. virtual BOOL Init(void) = 0;
  19. virtual SCODE Prep(LONG iteration) = 0;
  20. virtual SCODE Call(LONG iteration) = 0;
  21. virtual void EndCall(LONG iteration) = 0;
  22. virtual void CallVerify(LONG iteration) = 0;
  23. virtual void EndPrep(LONG iteration) = 0;
  24. virtual void EndVerify(LONG iteration) = 0;
  25. virtual BOOL Next(void) = 0;
  26. };
  27. /* Template
  28. BOOL CTestCase::Init(void)
  29. {
  30. }
  31. SCODE CTestCase::Prep(LONG iteration)
  32. {
  33. }
  34. SCODE CTestCase::Call(LONG iteration)
  35. {
  36. }
  37. void CTestCase::EndCall(LONG iteration)
  38. {
  39. }
  40. void CTestCase::CallVerify(LONG iteration)
  41. {
  42. }
  43. void CTestCase::EndPrep(LONG iteration)
  44. {
  45. }
  46. void CTestCase::EndVerify(LONG iteration)
  47. {
  48. }
  49. BOOL CTestCase::Next(void)
  50. {
  51. }
  52. */
  53. // The following functions are provided by the individual test
  54. int TestCount(void);
  55. CTestCase *TestItem(int iTest);
  56. // The following are provided by sift.cxx
  57. void SiftInit(void);
  58. void SiftDriver(CTestCase *);
  59. void SetFailLimit(LONG limit);
  60. class CModeDf
  61. {
  62. private:
  63. int _it, _ia, _is, _id, _ic; // Docfile mode component indices
  64. DWORD _dwMode;
  65. void CalcMode(void);
  66. public:
  67. void Init(void);
  68. DWORD GetMode(void) const {return _dwMode;}
  69. BOOL Next(void);
  70. };
  71. class CModeStg
  72. {
  73. private:
  74. int _it, _ia; // Storage mode component indices
  75. DWORD _dwMode;
  76. void CalcMode(void);
  77. public:
  78. void Init(void);
  79. DWORD GetMode(void) const {return _dwMode;}
  80. BOOL Next(void);
  81. };
  82. class CModeStm
  83. {
  84. private:
  85. int _ia; // Stream mode component indices
  86. DWORD _dwMode;
  87. void CalcMode(void);
  88. public:
  89. void Init(void);
  90. DWORD GetMode(void) const {return _dwMode;}
  91. BOOL Next(void);
  92. };