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