1 /* 2 * Copyright 2011, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef NETWORK_INTERFACE_TEST_H 6 #define NETWORK_INTERFACE_TEST_H 7 8 9 #include <NetworkInterface.h> 10 11 #include <TestCase.h> 12 #include <TestSuite.h> 13 14 15 class NetworkInterfaceTest : public CppUnit::TestCase { 16 public: 17 NetworkInterfaceTest(); 18 virtual ~NetworkInterfaceTest(); 19 20 virtual void setUp(); 21 virtual void tearDown(); 22 23 void TestUnset(); 24 void TestFindAddress(); 25 void TestFindFirstAddress(); 26 27 static void AddTests(BTestSuite& suite); 28 29 private: 30 BNetworkInterface fInterface; 31 }; 32 33 34 #endif // NETWORK_INTERFACE_TEST_H 35