Go to the documentation of this file.
9#ifndef SQUID_COMPAT_CPPUNIT_H
10#define SQUID_COMPAT_CPPUNIT_H
14#if HAVE_CPPUNIT_EXTENSIONS_HELPERMACROS_H
15#if defined(__cplusplus)
16#include <cppunit/extensions/HelperMacros.h>
18#undef CPPUNIT_TEST_SUITE_END
21#define CPPUNIT_TEST_SUITE_END() \
24 static CPPUNIT_NS::TestSuite *suite() \
26 const CPPUNIT_NS::TestNamer &namer = getTestNamer__(); \
27 std::unique_ptr<CPPUNIT_NS::TestSuite> suite( \
28 new CPPUNIT_NS::TestSuite( namer.getFixtureName() )); \
29 CPPUNIT_NS::ConcretTestFixtureFactory<TestFixtureType> factory; \
30 CPPUNIT_NS::TestSuiteBuilderContextBase context( *suite.get(), \
33 TestFixtureType::addTestsToSuite( context ); \
34 return suite.release(); \
37 typedef int CppUnitDummyTypedefForSemiColonEnding__
Introduction
Documentation
Support
Miscellaneous
Web Site Translations
Mirrors