1 #ifndef CPPUNIT_EXTENSIONS_TESTNAMER_H
2 #define CPPUNIT_EXTENSIONS_TESTNAMER_H
32 #if CPPUNIT_USE_TYPEINFO_NAME
33 # define CPPUNIT_TESTNAMER_DECL( variableName, FixtureType ) \
34 CPPUNIT_NS::TestNamer variableName( typeid(FixtureType) )
36 # define CPPUNIT_TESTNAMER_DECL( variableName, FixtureType ) \
37 CPPUNIT_NS::TestNamer variableName( std::string(#FixtureType) )
40 #if CPPUNIT_NEED_DLL_DECL
41 #pragma warning( push )
42 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
60 TestNamer(
const std::type_info &typeInfo );
66 TestNamer(
const std::string &fixtureName );
73 virtual std::string getFixtureName()
const;
82 virtual std::string getTestNameFor(
const std::string &testMethodName )
const;
91 #if CPPUNIT_NEED_DLL_DECL
92 #pragma warning( pop )
95 #endif // CPPUNIT_EXTENSIONS_TESTNAMER_H