Loading tests/integration/src/android/net/ip/IpClientIntegrationTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -1899,6 +1899,9 @@ public class IpClientIntegrationTest { doAnswer(invocation -> { // we don't rely on the Init-Reboot state to renew previous cached IP lease. // Just return null and force state machine enter INIT state. final String l2Key = invocation.getArgument(0); ((OnNetworkAttributesRetrievedListener) invocation.getArgument(1)) .onNetworkAttributesRetrieved(new Status(SUCCESS), l2Key, null); return null; }).when(mIpMemoryStore).retrieveNetworkAttributes(eq(TEST_L2KEY), any()); Loading Loading
tests/integration/src/android/net/ip/IpClientIntegrationTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -1899,6 +1899,9 @@ public class IpClientIntegrationTest { doAnswer(invocation -> { // we don't rely on the Init-Reboot state to renew previous cached IP lease. // Just return null and force state machine enter INIT state. final String l2Key = invocation.getArgument(0); ((OnNetworkAttributesRetrievedListener) invocation.getArgument(1)) .onNetworkAttributesRetrieved(new Status(SUCCESS), l2Key, null); return null; }).when(mIpMemoryStore).retrieveNetworkAttributes(eq(TEST_L2KEY), any()); Loading