Home
last modified time | relevance | path

Searched refs:TestDhcpPacket (Results 1 – 1 of 1) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java100 class TestDhcpPacket extends DhcpPacket { class in DhcpPacketTest
105 public TestDhcpPacket(byte type, Inet4Address clientIp, Inet4Address yourIp) { in TestDhcpPacket() method in DhcpPacketTest.TestDhcpPacket
111 public TestDhcpPacket(byte type) { in TestDhcpPacket() method in DhcpPacketTest.TestDhcpPacket
115 public TestDhcpPacket setDomainBytes(byte[] domainBytes) { in setDomainBytes()
120 public TestDhcpPacket setVendorInfoBytes(byte[] vendorInfoBytes) { in setVendorInfoBytes()
125 public TestDhcpPacket setLeaseTimeBytes(byte[] leaseTimeBytes) { in setLeaseTimeBytes()
130 public TestDhcpPacket setNetmaskBytes(byte[] netmaskBytes) { in setNetmaskBytes()
171 ByteBuffer packet = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER) in assertDomainAndVendorInfoParses()
213 TestDhcpPacket testPacket = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER); in assertLeaseTimeParses()
272 ByteBuffer packet = new TestDhcpPacket(type, clientIp, yourIp) in checkIpAddress()