X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fio%2FEventTest.hpp;fp=tst%2Fio%2FEventTest.hpp;h=78490638427831d24f7cfc9ae7a3884036da7333;hb=34e833025f0616ab4b86b808d0ce1cc49cecce5d;hp=0000000000000000000000000000000000000000;hpb=698d8120797383886d1386d3a8ac4b5fc1ca7f16;p=blobs.git diff --git a/tst/io/EventTest.hpp b/tst/io/EventTest.hpp new file mode 100644 index 0000000..7849063 --- /dev/null +++ b/tst/io/EventTest.hpp @@ -0,0 +1,68 @@ +#ifndef BLOBS_TEST_IO_EVENTTEST_HPP +#define BLOBS_TEST_IO_EVENTTEST_HPP + +#include + +#include + +namespace blobs { +namespace io { +namespace test { + +class EventTest +: public CppUnit::TestFixture { + +CPPUNIT_TEST_SUITE(EventTest); + +#if SDL_VERSION_ATLEAST(2, 0, 4) +CPPUNIT_TEST(testAudioDevice); +#endif + +CPPUNIT_TEST(testController); +CPPUNIT_TEST(testDollar); +CPPUNIT_TEST(testDrop); +CPPUNIT_TEST(testFinger); +CPPUNIT_TEST(testKey); +CPPUNIT_TEST(testJoystick); +CPPUNIT_TEST(testMouse); +CPPUNIT_TEST(testMultiGesture); +CPPUNIT_TEST(testQuit); +CPPUNIT_TEST(testSysWM); +CPPUNIT_TEST(testText); +CPPUNIT_TEST(testUser); +CPPUNIT_TEST(testWindow); +CPPUNIT_TEST(testUnknown); + +CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); + +#if SDL_VERSION_ATLEAST(2, 0, 4) + void testAudioDevice(); +#endif + + void testController(); + void testDollar(); + void testDrop(); + void testFinger(); + void testKey(); + void testJoystick(); + void testMouse(); + void testMultiGesture(); + void testQuit(); + void testSysWM(); + void testText(); + void testUser(); + void testWindow(); + void testUnknown(); + +}; + +} +} +} + + +#endif