]> git.localhorst.tv Git - blank.git/blob - tst/net/PacketTest.hpp
some unit tests for Packet et al
[blank.git] / tst / net / PacketTest.hpp
1 #ifndef BLANK_TEST_NET_PACKETTEST_HPP_
2 #define BLANK_TEST_NET_PACKETTEST_HPP_
3
4 #include <SDL_net.h>
5 #include <cppunit/extensions/HelperMacros.h>
6
7
8 namespace blank {
9 namespace test {
10
11 class PacketTest
12 : public CppUnit::TestFixture {
13
14 CPPUNIT_TEST_SUITE(PacketTest);
15
16 CPPUNIT_TEST(testControl);
17 CPPUNIT_TEST(testPing);
18 CPPUNIT_TEST(testLogin);
19 CPPUNIT_TEST(testJoin);
20 CPPUNIT_TEST(testPart);
21
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25         void setUp();
26         void tearDown();
27
28         void testControl();
29         void testPing();
30         void testLogin();
31         void testJoin();
32         void testPart();
33
34 private:
35         UDPpacket udp_pack;
36
37 };
38
39 }
40 }
41
42 #endif