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/enginetest.cc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'test/enginetest.cc') diff --git a/test/enginetest.cc b/test/enginetest.cc index ad4315d..cb21609 100644 --- a/test/enginetest.cc +++ b/test/enginetest.cc @@ -24,7 +24,7 @@ * 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 #include @@ -67,18 +67,16 @@ public: bool isFreewheeling() const { return true; } }; -class test_engine : public CppUnit::TestFixture +class test_engine : public DGUnit { - CPPUNIT_TEST_SUITE(test_engine); - CPPUNIT_TEST(loading); - CPPUNIT_TEST_SUITE_END(); +public: + test_engine() + { + DGUNIT_TEST(test_engine::loading); + } DrumkitCreator drumkit_creator; -public: - void setUp() {} - void tearDown() {} - void loading() { Settings settings; @@ -119,4 +117,4 @@ public: }; // Registers the fixture into the 'registry' -CPPUNIT_TEST_SUITE_REGISTRATION(test_engine); +static test_engine test; -- cgit v1.2.3