diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-05-10 07:32:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-10 07:32:41 +0000 |
commit | 449c3af7f103fb7d56bf1a53c0053c3613bc6084 (patch) | |
tree | 28f7ce7365db9eaa903d9dc7d8dcd5305a35f346 | |
parent | d68f7b3dd1a8a361a2c8712687150e8b27705d91 (diff) | |
parent | a8a73c53199cc1bd01d59d022c1b235f964c0565 (diff) |
Use doIpv6Provisioning in testPref64Option. am: a8a73c5319
Change-Id: I1d01958ae39cf2e0c750bfa583509ce87f7ed90f
-rw-r--r-- | tests/integration/src/android/net/ip/IpClientIntegrationTest.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java index d8ca520..d883433 100644 --- a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java +++ b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java @@ -1503,20 +1503,13 @@ public class IpClientIntegrationTest { ByteBuffer pref64 = new StructNdOptPref64(prefix, 600).toByteBuffer(); ByteBuffer ra = buildRaPacket(pio, rdnss, pref64); - waitForRouterSolicitation(); - mPacketReader.sendResponse(ra); - // The NAT64 prefix might be detected before or after provisioning success. // Don't test order between these two events. - ArgumentCaptor<LinkProperties> captor = ArgumentCaptor.forClass(LinkProperties.class); - verifyWithTimeout(null /*inOrder*/, mCb).onProvisioningSuccess(captor.capture()); + LinkProperties lp = doIpv6OnlyProvisioning(null /*inOrder*/, ra); expectAlarmSet(null /*inOrder*/, "PREF64", 600); - reset(mCb, mAlarm); // From now on expect events in order. InOrder inOrder = inOrder(mCb, mAlarm); - - LinkProperties lp = captor.getValue(); if (lp.getNat64Prefix() != null) { assertEquals(prefix, lp.getNat64Prefix()); } else { |