From cf16c29e39ae2765b51f0acc3cd135e81573e960 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jul 2019 14:12:25 +0200 Subject: [PATCH] Remove CppUnit boilerplate from wxEvent::Clone() test case Just remove the unnecessary macros and test case class. No real changes. --- tests/events/clone.cpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/tests/events/clone.cpp b/tests/events/clone.cpp index 6ee15e84b3..b020b57aaf 100644 --- a/tests/events/clone.cpp +++ b/tests/events/clone.cpp @@ -21,32 +21,7 @@ #include "wx/timer.h" #endif // WX_PRECOMP -// -------------------------------------------------------------------------- -// test class -// -------------------------------------------------------------------------- - -class EventCloneTestCase : public CppUnit::TestCase -{ -public: - EventCloneTestCase() {} - -private: - CPPUNIT_TEST_SUITE( EventCloneTestCase ); - CPPUNIT_TEST( CheckAll ); - CPPUNIT_TEST_SUITE_END(); - - void CheckAll(); - - wxDECLARE_NO_COPY_CLASS(EventCloneTestCase); -}; - -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( EventCloneTestCase ); - -// also include in its own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( EventCloneTestCase, "EventCloneTestCase" ); - -void EventCloneTestCase::CheckAll() +TEST_CASE("EventClone", "[wxEvent][clone]") { // Dummy timer needed just to create a wxTimerEvent. wxTimer dummyTimer;