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) )
57 TestNamer(
const std::type_info &typeInfo );
63 TestNamer(
const std::string &fixtureName );
79 virtual std::string
getTestNameFor(
const std::string &testMethodName )
const;
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition Portability.h:119
std::string m_fixtureName
Definition TestNamer.h:82
virtual std::string getFixtureName() const
Returns the name of the fixture.
Definition TestNamer.cpp:29
virtual std::string getTestNameFor(const std::string &testMethodName) const
Returns the name of the test for the specified method.
Definition TestNamer.cpp:36
TestNamer(const std::string &fixtureName)
Constructs a namer using the specified fixture name.
Definition TestNamer.cpp:17