~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to lib/cppunit-1.10.0/include/cppunit/extensions/TestSuiteFactory.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
 
2
#define CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
 
3
 
 
4
#include <cppunit/extensions/TestFactory.h>
 
5
 
 
6
CPPUNIT_NS_BEGIN
 
7
 
 
8
 
 
9
  class Test;
 
10
 
 
11
  /*! \brief TestFactory for TestFixture that implements a static suite() method.
 
12
   * \see AutoRegisterSuite.
 
13
   */
 
14
  template<class TestCaseType>
 
15
  class TestSuiteFactory : public TestFactory
 
16
  {
 
17
  public:
 
18
    virtual Test *makeTest()
 
19
    {
 
20
      return TestCaseType::suite();
 
21
    }
 
22
  };
 
23
 
 
24
 
 
25
CPPUNIT_NS_END
 
26
 
 
27
#endif  // CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H