| 1 | // |
| 2 | // NetworkInterfaceTest.h |
| 3 | // |
| 4 | // Definition of the NetworkInterfaceTest class. |
| 5 | // |
| 6 | // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. |
| 7 | // and Contributors. |
| 8 | // |
| 9 | // SPDX-License-Identifier: BSL-1.0 |
| 10 | // |
| 11 | |
| 12 | |
| 13 | #ifndef NetworkInterfaceTest_INCLUDED |
| 14 | #define NetworkInterfaceTest_INCLUDED |
| 15 | |
| 16 | |
| 17 | #include "Poco/Net/Net.h" |
| 18 | |
| 19 | |
| 20 | #ifdef POCO_NET_HAS_INTERFACE |
| 21 | |
| 22 | |
| 23 | #include "Poco/CppUnit/TestCase.h" |
| 24 | |
| 25 | |
| 26 | class NetworkInterfaceTest: public CppUnit::TestCase |
| 27 | { |
| 28 | public: |
| 29 | NetworkInterfaceTest(const std::string& name); |
| 30 | ~NetworkInterfaceTest(); |
| 31 | |
| 32 | void testMap(); |
| 33 | void testList(); |
| 34 | void testForName(); |
| 35 | void testForAddress(); |
| 36 | void testForIndex(); |
| 37 | void testMapIpOnly(); |
| 38 | void testMapUpOnly(); |
| 39 | void testListMapConformance(); |
| 40 | |
| 41 | void setUp(); |
| 42 | void tearDown(); |
| 43 | |
| 44 | static CppUnit::Test* suite(); |
| 45 | |
| 46 | private: |
| 47 | }; |
| 48 | |
| 49 | |
| 50 | #endif // POCO_NET_HAS_INTERFACE |
| 51 | |
| 52 | |
| 53 | #endif // NetworkInterfaceTest_INCLUDED |
| 54 | |