From 2abc107b24f73b8c4664189c34196d9a27a3e339 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 16 Jun 2018 18:05:00 +0200 Subject: Port the rest of the unittests to DGUnit and remove the CppUnit dependency. --- test/audiocacheeventhandlertest.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'test/audiocacheeventhandlertest.cc') diff --git a/test/audiocacheeventhandlertest.cc b/test/audiocacheeventhandlertest.cc index 0b408e0..a2639fb 100644 --- a/test/audiocacheeventhandlertest.cc +++ b/test/audiocacheeventhandlertest.cc @@ -24,20 +24,22 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include +#include "dgunit.h" #include class AudioCacheEventHandlerTest - : public CppUnit::TestFixture + : public DGUnit { - CPPUNIT_TEST_SUITE(AudioCacheEventHandlerTest); - CPPUNIT_TEST(threadedTest); - CPPUNIT_TEST_SUITE_END(); +public: + AudioCacheEventHandlerTest() + { + DGUNIT_TEST(AudioCacheEventHandlerTest::threadedTest); + } public: - void setUp() {} - void tearDown() {} + void setup() override {} + void teardown() override {} void threadedTest() { @@ -49,4 +51,4 @@ public: }; // Registers the fixture into the 'registry' -CPPUNIT_TEST_SUITE_REGISTRATION(AudioCacheEventHandlerTest); +static AudioCacheEventHandlerTest test; -- cgit v1.2.3