]> git.localhorst.tv Git - blank.git/blob - tst/io/EventTest.hpp
test sdl event to string functions
[blank.git] / tst / io / EventTest.hpp
1 #ifndef BLANK_TEST_IO_EVENTTEST_HPP
2 #define BLANK_TEST_IO_EVENTTEST_HPP
3
4 #include <cppunit/extensions/HelperMacros.h>
5
6 #include <SDL_version.h>
7
8 namespace blank {
9 namespace test {
10
11 class EventTest
12 : public CppUnit::TestFixture {
13
14 CPPUNIT_TEST_SUITE(EventTest);
15
16 #if SDL_VERSION_ATLEAST(2, 0, 4)
17 CPPUNIT_TEST(testAudioDevice);
18 #endif
19
20 CPPUNIT_TEST(testController);
21 CPPUNIT_TEST(testDollar);
22 CPPUNIT_TEST(testDrop);
23 CPPUNIT_TEST(testFinger);
24 CPPUNIT_TEST(testKey);
25 CPPUNIT_TEST(testJoystick);
26 CPPUNIT_TEST(testMouse);
27 CPPUNIT_TEST(testMultiGesture);
28 CPPUNIT_TEST(testQuit);
29 CPPUNIT_TEST(testSysWM);
30 CPPUNIT_TEST(testText);
31 CPPUNIT_TEST(testUser);
32 CPPUNIT_TEST(testWindow);
33 CPPUNIT_TEST(testUnknown);
34
35 CPPUNIT_TEST_SUITE_END();
36
37 public:
38         void setUp();
39         void tearDown();
40
41 #if SDL_VERSION_ATLEAST(2, 0, 4)
42         void testAudioDevice();
43 #endif
44
45         void testController();
46         void testDollar();
47         void testDrop();
48         void testFinger();
49         void testKey();
50         void testJoystick();
51         void testMouse();
52         void testMultiGesture();
53         void testQuit();
54         void testSysWM();
55         void testText();
56         void testUser();
57         void testWindow();
58         void testUnknown();
59
60 };
61
62 }
63 }
64
65
66 #endif