Searched refs:ipv4_network (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_ipaddress.py | 811 self.ipv4_network = ipaddress.IPv4Network('1.2.3.0/24') 968 self.assertEqual("IPv4Network('1.2.3.0/24')", repr(self.ipv4_network)) 985 self.assertEqual(int(self.ipv4_network.network_address), 16909056) 986 self.assertEqual(str(self.ipv4_network.network_address), '1.2.3.0') 1039 self.assertEqual(int(self.ipv4_network.netmask), 4294967040) 1040 self.assertEqual(str(self.ipv4_network.netmask), '255.255.255.0') 1058 net = self.ipv4_network 1074 self.assertEqual(int(self.ipv4_network.broadcast_address), 16909311) 1075 self.assertEqual(str(self.ipv4_network.broadcast_address), '1.2.3.255') 1087 self.assertEqual(self.ipv4_network.supernet().prefixlen, 23) [all …]
|
/external/webrtc/webrtc/base/ |
D | network_unittest.cc | 408 Network* ipv4_network = new Network("test_eth0", "Test Network Adapter 1", in TEST_F() local 410 ipv4_network->AddIP(IPAddress(0x12345600U)); in TEST_F() 411 original_list.push_back(ipv4_network); in TEST_F() 423 EXPECT_NE(list.end(), std::find(list.begin(), list.end(), ipv4_network)); in TEST_F()
|