home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / TestTools / Sources / TestStandardPool.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  1.2 KB  |  63 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TestStandardPool.h
  3.  
  4.     Contains:    Declaration for TTestStandardPool class
  5.  
  6.     Copyright:    © 1991-1994 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. #ifndef __TESTSTANDARDPOOL__
  11. #define __TESTSTANDARDPOOL__
  12.  
  13. #ifndef __TESTCLASS__
  14. #include "TestClass.h"
  15. #endif
  16. #ifndef __LIBRARYMANAGERCLASSES__
  17. #include <LibraryManagerClasses.h>
  18. #endif
  19.  
  20. #define kTTestStandardPoolID    kTestToolPrefix "TTestStandardPool,1.2"
  21.  
  22.  
  23. class TTestStandardPool : public TTestTool
  24. {
  25.     BodyTest(StandardPool, StandardPool);
  26.     
  27.     size_t    fSmallest;
  28.     size_t    fLargest;
  29.     size_t    fIterations;
  30.     size_t    fAllocs;
  31.     size_t    fDeletes;
  32.     size_t    fReallocs;
  33. };
  34.  
  35. /**********************************************************************
  36. ** Support class
  37. ***********************************************************************/
  38.  
  39. class TPoolTestOperation : public TOperation
  40. {
  41.     public:
  42.                         TPoolTestOperation(char** array, size_t fArraySize,
  43.                                            size_t small, size_t large);
  44.         virtual            ~_CDECL TPoolTestOperation();
  45.         
  46.         virtual void    _CDECL Process();
  47.         
  48.     char**    fArray;
  49.     size_t    fArraySize;
  50.     size_t    fSmallest;
  51.     size_t    fLargest;
  52.     size_t    fAllocs;
  53.     size_t    fDeletes;
  54.     size_t    fReallocs;
  55.     Boolean    fFinished;
  56. };
  57.  
  58.  
  59.  
  60. #endif
  61.  
  62.  
  63.