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.

53 lines
1.3 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bm_marsh.hxx
  7. //
  8. // Contents: test class definition
  9. //
  10. // Classes: COleMarshalTest
  11. //
  12. // Functions:
  13. //
  14. // History: 29-July-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BM_MARSH_HXX_
  18. #define _BM_MARSH_HXX_
  19. #include <bm_base.hxx>
  20. // # times to marshal consecutively
  21. #define REPS 3
  22. class COleMarshalTest : 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. ULONG m_ulIterations;
  32. DWORD m_dwClsCtx;
  33. CLSID m_ClsID;
  34. IUnknown *m_punk[TEST_MAX_ITERATIONS];
  35. IStream *m_pStm[REPS];
  36. ULONG m_ulUuidCreateTime[TEST_MAX_ITERATIONS];
  37. ULONG m_ulMarshalTime[REPS][TEST_MAX_ITERATIONS];
  38. ULONG m_ulUnmarshalTime[REPS][TEST_MAX_ITERATIONS];
  39. ULONG m_ulLockObjectTime[REPS][TEST_MAX_ITERATIONS];
  40. ULONG m_ulGetStdMarshalTime[REPS][TEST_MAX_ITERATIONS];
  41. ULONG m_ulGetMarshalSizeTime[REPS][TEST_MAX_ITERATIONS];
  42. ULONG m_ulDisconnectTime[REPS][TEST_MAX_ITERATIONS];
  43. };
  44. #endif