/[svn]/linuxsampler/trunk/src/testcases/PoolTest.h
ViewVC logotype

Annotation of /linuxsampler/trunk/src/testcases/PoolTest.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (hide annotations) (download) (as text)
Thu May 19 19:25:14 2005 UTC (19 years ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 2005 byte(s)
* All compile time options are now centrally alterable as arguments to the
  ./configure script. All options are C Macros beginning with CONFIG_
  prefix and will be placed into auto generated config.h file.

1 schoenebeck 276 #ifndef __LS_POOLTEST_H__
2     #define __LS_POOLTEST_H__
3    
4     #include <cppunit/TestFixture.h>
5     #include <cppunit/extensions/HelperMacros.h>
6    
7 schoenebeck 554 #ifdef HAVE_CONFIG_H
8     # include <config.h>
9     #endif
10    
11 schoenebeck 276 // set options for Pool.h
12    
13 schoenebeck 554 #ifdef CONFIG_DEVMODE
14     # undef CONFIG_DEVMODE
15     #endif
16     #define CONFIG_DEVMODE 1
17    
18     #ifdef CONFIG_RT_EXCEPTIONS
19     # undef CONFIG_RT_EXCEPTIONS
20     #endif
21     #define CONFIG_RT_EXCEPTIONS 1
22    
23 schoenebeck 276 #include "../common/Pool.h"
24    
25     class PoolTest : public CppUnit::TestFixture {
26    
27     CPPUNIT_TEST_SUITE(PoolTest);
28     CPPUNIT_TEST(printTestSuiteName);
29     CPPUNIT_TEST(testAllocPool);
30     CPPUNIT_TEST(testAllocAppendElements);
31     CPPUNIT_TEST(testIterateForward);
32     CPPUNIT_TEST(testIterateBackward);
33     CPPUNIT_TEST(testFreeElements);
34     CPPUNIT_TEST(testAllocPrependElements);
35     CPPUNIT_TEST(testIterateForward);
36     CPPUNIT_TEST(testIterateBackward);
37     CPPUNIT_TEST(testClear);
38     CPPUNIT_TEST(testAllocList);
39     CPPUNIT_TEST(testAllocElementsOnList);
40     CPPUNIT_TEST(testIterateForwardOnList);
41     CPPUNIT_TEST(testIterateBackwardOnList);
42     CPPUNIT_TEST(testClearList);
43     CPPUNIT_TEST(testMoveToEnd);
44     CPPUNIT_TEST(testMoveToBegin);
45     CPPUNIT_TEST(testFreeList);
46     CPPUNIT_TEST(testFreePool);
47     CPPUNIT_TEST(testAccessElements);
48     CPPUNIT_TEST(testInvalidIterators);
49     CPPUNIT_TEST_SUITE_END();
50    
51     public:
52     void printTestSuiteName();
53     void testAllocPool();
54     void testAllocAppendElements();
55     void testIterateForward();
56     void testIterateBackward();
57     void testFreeElements();
58     void testAllocPrependElements();
59     void testClear();
60     void testAllocList();
61     void testAllocElementsOnList();
62     void testIterateForwardOnList();
63     void testIterateBackwardOnList();
64     void testClearList();
65     void testMoveToEnd();
66     void testMoveToBegin();
67     void testFreeList();
68     void testFreePool();
69     void testAccessElements();
70     void testInvalidIterators();
71     };
72    
73     #endif // __LS_POOLTEST_H__

  ViewVC Help
Powered by ViewVC