summaryrefslogtreecommitdiff
path: root/src/cppunit/TestNamer.cpp
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-15 17:28:02 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-15 17:28:02 +0200
commit42bd37a4b8d8feab2d30761648b51eaf20623abb (patch)
tree271d4b3838fbf9c7889b6eeb31c8956cccbacc6b /src/cppunit/TestNamer.cpp
parent2917f424d32dc9f7128ecf4d47cdcc48fb0781d2 (diff)
downloadcppunit-42bd37a4b8d8feab2d30761648b51eaf20623abb.tar.gz
we always require RTTI now
RTTI is supported by any decent compiler and with the mandatory c++11 support we are no longer supporting older compilers anyway.
Diffstat (limited to 'src/cppunit/TestNamer.cpp')
-rw-r--r--src/cppunit/TestNamer.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cppunit/TestNamer.cpp b/src/cppunit/TestNamer.cpp
index 3bfe985..0cdf258 100644
--- a/src/cppunit/TestNamer.cpp
+++ b/src/cppunit/TestNamer.cpp
@@ -2,43 +2,32 @@
#include <cppunit/extensions/TypeInfoHelper.h>
#include <string>
-
CPPUNIT_NS_BEGIN
-
-#if CPPUNIT_HAVE_RTTI
TestNamer::TestNamer( const std::type_info &typeInfo )
: m_fixtureName( TypeInfoHelper::getClassName( typeInfo ) )
{
}
-#endif
-
TestNamer::TestNamer( const std::string &fixtureName )
: m_fixtureName( fixtureName )
{
}
-
TestNamer::~TestNamer()
{
}
-
std::string
TestNamer::getFixtureName() const
{
return m_fixtureName;
}
-
std::string
TestNamer::getTestNameFor( const std::string &testMethodName ) const
{
return getFixtureName() + "::" + testMethodName;
}
-
-
-
CPPUNIT_NS_END