Index: webrtc/base/ipaddress_unittest.cc |
diff --git a/webrtc/base/ipaddress_unittest.cc b/webrtc/base/ipaddress_unittest.cc |
index cbe8f2654806ba697d00fac29f92dafad693dd2f..802b47b28e2fa1188ca48e2f1b38b1d9640116d9 100644 |
--- a/webrtc/base/ipaddress_unittest.cc |
+++ b/webrtc/base/ipaddress_unittest.cc |
@@ -575,6 +575,9 @@ TEST(IPAddressTest, TestIsLoopback) { |
EXPECT_FALSE(IPIsLoopback(IPAddress(kIPv4MappedPublicAddr))); |
EXPECT_TRUE(IPIsLoopback(IPAddress(INADDR_LOOPBACK))); |
+ // Try an address in the loopback range (127.0.0.0/8) other than the typical |
+ // 127.0.0.1. |
+ EXPECT_TRUE(IPIsLoopback(IPAddress(0x7f010203))); |
EXPECT_TRUE(IPIsLoopback(IPAddress(in6addr_loopback))); |
} |