2 /* Class hierarchy for the File I/O tests. */
4 #include "ace/Profile_Timer.h"
6 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 /* Base class for all the File I/O tests. */
15 // Initialize the test name
16 IO_Test (const char *name
,
17 ACE_Profile_Timer
&tm
);
22 // Return the name of the test
25 // Execute the IO test (note this is a pure virtual function...)
26 virtual int run_test (int iterations
,
34 // Reference to a timer
35 ACE_Profile_Timer
&tm_
;
38 class Slow_Read_Write_Test
: public IO_Test
41 Slow_Read_Write_Test (const char *name
,
42 ACE_Profile_Timer
&tm
);
43 virtual int run_test (int iterations
,
48 class Stdio_Test
: public IO_Test
51 Stdio_Test (const char *name
,
52 ACE_Profile_Timer
&tm
);
53 virtual int run_test (int iterations
,
58 class Block_Read_Write_Test
: public IO_Test
61 Block_Read_Write_Test (const char *name
,
62 ACE_Profile_Timer
&tm
);
63 virtual int run_test (int iterations
,
68 class Block_Fread_Fwrite_Test
: public IO_Test
71 Block_Fread_Fwrite_Test (const char *name
,
72 ACE_Profile_Timer
&tm
);
73 virtual int run_test (int iterations
,
78 class Mmap1_Test
: public IO_Test
81 Mmap1_Test (const char *name
,
82 ACE_Profile_Timer
&tm
);
83 virtual int run_test (int iterations
,
88 class Mmap2_Test
: public IO_Test
91 Mmap2_Test (const char *name
,
92 ACE_Profile_Timer
&tm
);
93 virtual int run_test (int iterations
,