engine/dlib/src/test/test_dns.cpp
/////////////////////////////////////////////////////////////
// These tests are exact same as test_socket.cpp : 818 - 900
These tests are exact same as test_socket.cpp : 818 - 900
These tests are exact same as test_socket . cpp : 818 - 900
TEST_F(dmDNSTest, GetHostByName_IPv4_Localhost)
{
    dmSocket::Address address;
    const char* hostname = DM_LOOPBACK_ADDRESS_IPV4;
    dmDNS::Result result = dmDNS::GetHostByName(hostname, &address, channel, 0, true, false);
    ASSERT_EQ(dmDNS::RESULT_OK, result);
    ASSERT_EQ(dmSocket::DOMAIN_IPV4, address.m_family);
    ASSERT_EQ(0x0100007f, *dmSocket::IPv4(&address));
}
TEST_F ( dmDNSTest , GetHostByName_IPv4_Localhost ) { dmSocket :: Address address ; const char * hostname = DM_LOOPBACK_ADDRESS_IPV4 ; dmDNS :: Result result = dmDNS :: GetHostByName ( hostname , & address , channel , 0 , true , false ) ; ASSERT_EQ ( dmDNS :: RESULT_OK , result ) ; ASSERT_EQ ( dmSocket :: DOMAIN_IPV4 , address . m_family ) ; ASSERT_EQ ( 0x0100007f , * dmSocket :: IPv4 ( & address ) ) ; }
These tests are exact same as test_socket.cpp : 818 - 900
These tests are exact same as test_socket . cpp : 818 - 900