testfixturefactory.h

来自「基于属性证书的访问控制源代码,由c++编写,包括openssl,xercesc等」· C头文件 代码 · 共 49 行

H
49
字号
#ifndef CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H#define CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H#include <cppunit/Portability.h>CPPUNIT_NS_BEGINclass TestFixture;/*! \brief Abstract TestFixture factory (Implementation). * * Implementation detail. Use by HelperMacros to handle TestFixture hierarchy. */class TestFixtureFactory{public:  //! Creates a new TestFixture instance.  virtual TestFixture *makeFixture() =0;};/*! \brief Concret TestFixture factory (Implementation). * * Implementation detail. Use by HelperMacros to handle TestFixture hierarchy. */template<class TestFixtureType>class ConcretTestFixtureFactory : public CPPUNIT_NS::TestFixtureFactory{  /*! \brief Returns a new TestFixture instance.   * \return A new fixture instance. The fixture instance is returned by   *         the TestFixtureFactory passed on construction. The actual type    *         is that of the fixture on which the static method suite()    *         was called.   */  TestFixture *makeFixture()  {    return new TestFixtureType();  }};CPPUNIT_NS_END#endif // CPPUNIT_EXTENSIONS_TESTFIXTUREFACTORY_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?