CppUnit project page | FAQ | CppUnit home page |
(Implementation) Automatically register the test suite of the specified type. More...
#include <AutoRegisterSuite.h>
Public Member Functions | |
AutoRegisterSuite () | |
Auto-register the suite factory in the global registry. | |
AutoRegisterSuite (const std::string &name) | |
Auto-register the suite factory in the specified registry. | |
~AutoRegisterSuite () | |
Private Attributes | |
TestFactoryRegistry * | m_registry |
TestSuiteFactory< TestCaseType > | m_factory |
(Implementation) Automatically register the test suite of the specified type.
You should not use this class directly. Instead, use the following macros:
This object will register the test returned by TestCaseType::suite() when constructed to the test registry.
This object is intented to be used as a static variable.
TestCaseType | Type of the test case which suite is registered. |
AutoRegisterSuite< TestCaseType >::AutoRegisterSuite | ( | ) | [inline] |
Auto-register the suite factory in the global registry.
AutoRegisterSuite< TestCaseType >::AutoRegisterSuite | ( | const std::string & | name | ) | [inline] |
Auto-register the suite factory in the specified registry.
name | Name of the registry. |
AutoRegisterSuite< TestCaseType >::~AutoRegisterSuite | ( | ) | [inline] |
TestSuiteFactory<TestCaseType> AutoRegisterSuite< TestCaseType >::m_factory [private] |
TestFactoryRegistry* AutoRegisterSuite< TestCaseType >::m_registry [private] |
|
hosts this site. |
Send comments to: CppUnit Developers |