1
0

Moved NetworkInterfaceEnum test to a separate test project.

This commit is contained in:
Mattes D
2016-03-13 18:12:33 +01:00
parent ec998e821f
commit 3184433756
3 changed files with 59 additions and 28 deletions

View File

@@ -22,34 +22,6 @@
#ifdef SELF_TEST
static class cEnumIPAddressTest
{
public:
cEnumIPAddressTest(void)
{
cSelfTests::Get().Register(std::function<void(void)>(&Test), "Network IP enumeration");
}
static void Test(void)
{
LOG("Enumerating all IP addresses...");
auto IPs = cNetwork::EnumLocalIPAddresses();
for (auto & ip: IPs)
{
LOG(" %s", ip.c_str());
}
LOG("Done.");
}
} g_EnumIPAddressTest;
#endif // SELF_TEST
#ifdef _WIN32
/** Converts the SOCKET_ADDRESS structure received from the OS into an IP address string. */