1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/TestFactoryRegistry.h> using namespace Swift; class FooTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(FooTest); CPPUNIT_TEST(testBar); CPPUNIT_TEST_SUITE_END(); public: void setUp() { } void tearDown() { } void testBar() { } }; CPPUNIT_TEST_SUITE_REGISTRATION(FooTest);