1 /* 2 * Copyright 2010-2011, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef NETWORK_ADDRESS_TEST_H 6 #define NETWORK_ADDRESS_TEST_H 7 8 9 #include <TestCase.h> 10 #include <TestSuite.h> 11 12 13 class NetworkAddressTest : public CppUnit::TestCase { 14 public: 15 NetworkAddressTest(); 16 virtual ~NetworkAddressTest(); 17 18 void TestUnset(); 19 void TestSetTo(); 20 void TestWildcard(); 21 void TestNullAddr(); 22 void TestSetAddressFromFamilyPort(); 23 void TestIsLocal(); 24 void TestFlatten(); 25 void TestEquals(); 26 27 static void AddTests(BTestSuite& suite); 28 }; 29 30 31 #endif // NETWORK_ADDRESS_TEST_H 32