diff options
| author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-15 17:28:02 +0200 |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-15 17:28:02 +0200 |
| commit | 42bd37a4b8d8feab2d30761648b51eaf20623abb (patch) | |
| tree | 271d4b3838fbf9c7889b6eeb31c8956cccbacc6b /src/cppunit/TestNamer.cpp | |
| parent | 2917f424d32dc9f7128ecf4d47cdcc48fb0781d2 (diff) | |
| download | cppunit-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.cpp | 11 |
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 |
