]> git.localhorst.tv Git - blobs.git/blobdiff - tst/io/EventTest.hpp
more stuff from blank
[blobs.git] / tst / io / EventTest.hpp
diff --git a/tst/io/EventTest.hpp b/tst/io/EventTest.hpp
new file mode 100644 (file)
index 0000000..7849063
--- /dev/null
@@ -0,0 +1,68 @@
+#ifndef BLOBS_TEST_IO_EVENTTEST_HPP
+#define BLOBS_TEST_IO_EVENTTEST_HPP
+
+#include <cppunit/extensions/HelperMacros.h>
+
+#include <SDL_version.h>
+
+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