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.

71 lines
1.9 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_rpc.hxx
  7. //
  8. // Contents: test class definition
  9. //
  10. // Classes: CRpcTest
  11. //
  12. // Functions:
  13. //
  14. // History: 19-July-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_RPC_HXX_
  18. #define _BM_RPC_HXX_
  19. #include <bm_base.hxx>
  20. #include <rpctst.h> // IRpcTest
  21. class CRpcTest : public CTestBase
  22. {
  23. public:
  24. virtual TCHAR *Name ();
  25. virtual SCODE Setup (CTestInput *input);
  26. virtual SCODE Run ();
  27. virtual SCODE Report (CTestOutput &OutputFile);
  28. virtual SCODE Cleanup ();
  29. private:
  30. ULONG m_ulIterations;
  31. BOOL m_fAverage;
  32. IRpcTest *m_pRPC;
  33. CLSID m_ClsID;
  34. IUnknown *m_punkInproc;
  35. IUnknown *m_punkLocal;
  36. ULONG m_ulVoidTime[TEST_MAX_ITERATIONS];
  37. ULONG m_ulVoidRCTime[TEST_MAX_ITERATIONS];
  38. ULONG m_ulDwordInTime[TEST_MAX_ITERATIONS];
  39. ULONG m_ulDwordOutTime[TEST_MAX_ITERATIONS];
  40. ULONG m_ulDwordInOutTime[TEST_MAX_ITERATIONS];
  41. ULONG m_ulStringInTime[TEST_MAX_ITERATIONS];
  42. ULONG m_ulStringOutTime[TEST_MAX_ITERATIONS];
  43. ULONG m_ulStringInOutTime[TEST_MAX_ITERATIONS];
  44. ULONG m_ulGuidInTime[TEST_MAX_ITERATIONS];
  45. ULONG m_ulGuidOutTime[TEST_MAX_ITERATIONS];
  46. ULONG m_ulIUnknownInprocInTime[TEST_MAX_ITERATIONS];
  47. ULONG m_ulIUnknownInprocOutTime[TEST_MAX_ITERATIONS];
  48. ULONG m_ulIUnknownLocalInTime[TEST_MAX_ITERATIONS];
  49. ULONG m_ulIUnknownLocalOutTime[TEST_MAX_ITERATIONS];
  50. ULONG m_ulIUnknownKeepInTime[TEST_MAX_ITERATIONS];
  51. ULONG m_ulIUnknownKeepOutTime[TEST_MAX_ITERATIONS];
  52. ULONG m_ulInterfaceInprocInTime[TEST_MAX_ITERATIONS];
  53. ULONG m_ulInterfaceLocalInTime[TEST_MAX_ITERATIONS];
  54. };
  55. #endif