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.

73 lines
1.7 KiB

  1. #ifndef _DMOTESTNODE_H
  2. #define _DMOTESTNODE_H
  3. /*=============================================================================
  4. |
  5. | File: DmoTestNode.h
  6. |
  7. | Copyright (c) 2000 Microsoft Corporation. All rights reserved
  8. |
  9. | Abstract:
  10. | Redifining CTestCaseInfo in the process of creating a
  11. | test application
  12. |
  13. | Contents:
  14. |
  15. |
  16. | History:
  17. | 5/16/2000 wendyliu initial version
  18. |
  19. |
  20. \============================================================================*/
  21. #include <windows.h>
  22. #include <CaseNode.h>
  23. #include "dmotest.h"
  24. /*=============================================================================
  25. | CLASS DEFINITIONS
  26. \============================================================================*/
  27. /*-----------------------------------------------------------------------------
  28. | Class: CDmoTestCase
  29. | Purpose: Defines VarTestcase node for use in the test case tree
  30. | Notes: This is an example of add a new type of node of use in the
  31. | test case tree. It keeps the container object as protected
  32. | member variable, used by its subclass to get the information
  33. | (DMO and test file name) for the runtest method.
  34. \----------------------------------------------------------------------------*/
  35. class CDmoTestCase : public CTestNodeItem
  36. {
  37. protected:
  38. CDmoTest* m_pDmoTest;
  39. public:
  40. CDmoTestCase( LPSTR pszNewCaseID,
  41. LPSTR pszNewName,
  42. CDmoTest* dmoTest);
  43. virtual ~CDmoTestCase();
  44. virtual DWORD RunTest(void) = 0;
  45. };
  46. inline
  47. CDmoTestCase::CDmoTestCase( LPSTR pszNewCaseID,
  48. LPSTR pszNewName,
  49. CDmoTest* dmoTest)
  50. : CTestNodeItem(false, pszNewCaseID, pszNewName, 0),
  51. m_pDmoTest(dmoTest)
  52. {
  53. }
  54. inline
  55. CDmoTestCase::~CDmoTestCase()
  56. {
  57. }
  58. #endif