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.

57 lines
1.4 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_rpc2.hxx
  7. //
  8. // Contents: ORPC test class definition
  9. //
  10. // Classes: CRpcTest2
  11. //
  12. // Functions:
  13. //
  14. // History: 08-08-95 Rickhi Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_RPC2_HXX_
  18. #define _BM_RPC2_HXX_
  19. #include <bm_base.hxx>
  20. #include <rpctst.h> // IRpcTest
  21. #define TEST_MAX_ITERATIONS_PRIVATE 10
  22. class CRpcTest2 : public CTestBase
  23. {
  24. public:
  25. virtual TCHAR *Name ();
  26. virtual SCODE Setup (CTestInput *input);
  27. virtual SCODE Run ();
  28. virtual SCODE Report (CTestOutput &OutputFile);
  29. virtual SCODE Cleanup ();
  30. private:
  31. SCODE PrepareForRun();
  32. void CleanupFromRun();
  33. ULONG m_ulIterations;
  34. DWORD m_InitFlag; // flag to OleInit
  35. IStream *m_pStm;
  36. IRpcTest *m_pRPC;
  37. CLSID m_ClsID;
  38. IUnknown *m_punkInproc;
  39. ULONG m_ulNULLTime[TEST_MAX_ITERATIONS_PRIVATE];
  40. ULONG m_ulIUnknownBestInTime[TEST_MAX_ITERATIONS_PRIVATE];
  41. ULONG m_ulIUnknownWorstInTime[TEST_MAX_ITERATIONS_PRIVATE];
  42. ULONG m_ulIUnknownBestOutTime[TEST_MAX_ITERATIONS_PRIVATE];
  43. ULONG m_ulIUnknownWorstOutTime[TEST_MAX_ITERATIONS_PRIVATE];
  44. };
  45. #endif // _BM_RPC2_HXX_