Merge "Address comments on NetworkStack AIDL v6" into rvc-dev am: 675ec9d30e
Change-Id: I58b6863e5f8417368c7cd83edc487404d5156e99
This commit is contained in:
@@ -169,7 +169,7 @@ public class DhcpServingParamsParcelExt extends DhcpServingParamsParcel {
|
|||||||
* <p>If not set, the default value is null.
|
* <p>If not set, the default value is null.
|
||||||
*/
|
*/
|
||||||
public DhcpServingParamsParcelExt setSingleClientAddr(@Nullable Inet4Address clientAddr) {
|
public DhcpServingParamsParcelExt setSingleClientAddr(@Nullable Inet4Address clientAddr) {
|
||||||
this.clientAddr = clientAddr == null ? 0 : inet4AddressToIntHTH(clientAddr);
|
this.singleClientAddr = clientAddr == null ? 0 : inet4AddressToIntHTH(clientAddr);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public class DhcpServingParamsParcelExtTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testSetClientAddr() {
|
public void testSetClientAddr() {
|
||||||
mParcel.setSingleClientAddr(TEST_CLIENT_ADDRESS);
|
mParcel.setSingleClientAddr(TEST_CLIENT_ADDRESS);
|
||||||
assertEquals(TEST_CLIENT_ADDRESS_PARCELED, mParcel.clientAddr);
|
assertEquals(TEST_CLIENT_ADDRESS_PARCELED, mParcel.singleClientAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Inet4Address inet4Addr(String addr) {
|
private static Inet4Address inet4Addr(String addr) {
|
||||||
|
|||||||
@@ -1689,7 +1689,7 @@ public class TetheringTest {
|
|||||||
final DhcpServingParamsParcel params = dhcpParamsCaptor.getValue();
|
final DhcpServingParamsParcel params = dhcpParamsCaptor.getValue();
|
||||||
assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress());
|
assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress());
|
||||||
assertEquals(24, params.serverAddrPrefixLength);
|
assertEquals(24, params.serverAddrPrefixLength);
|
||||||
assertEquals(clientAddrParceled, params.clientAddr);
|
assertEquals(clientAddrParceled, params.singleClientAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user