CppUnit project page FAQ CppUnit home page

TestFixtureFactory.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H
2 #define CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H
3 
4 #include <cppunit/Portability.h>
5 
6 
8 
9 
10 class TestFixture;
11 
17 {
18 public:
20  virtual TestFixture *makeFixture() =0;
21 };
22 
23 
28 template<class TestFixtureType>
29 class ConcretTestFixtureFactory : public CPPUNIT_NS::TestFixtureFactory
30 {
38  {
39  return new TestFixtureType();
40  }
41 };
42 
43 
45 
46 
47 #endif // CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H
48 

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers