reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/unittests/Host/SocketAddressTest.cpp
   29   ASSERT_TRUE(sa.SetToLocalhost(AF_INET, 1138));
   30   ASSERT_STREQ("127.0.0.1", sa.GetIPAddress().c_str());
   31   ASSERT_EQ(1138, sa.GetPort());
   33   ASSERT_TRUE(sa.SetToAnyAddress(AF_INET, 0));
   34   ASSERT_STREQ("0.0.0.0", sa.GetIPAddress().c_str());
   35   ASSERT_EQ(0, sa.GetPort());
   37   ASSERT_TRUE(sa.SetToLocalhost(AF_INET6, 1139));
   38   ASSERT_TRUE(sa.GetIPAddress() == "::1" ||
   39               sa.GetIPAddress() == "0:0:0:0:0:0:0:1")
   40       << "Address was: " << sa.GetIPAddress();
   41   ASSERT_EQ(1139, sa.GetPort());