diff options
author | Etan Cohen <etancohen@google.com> | 2019-05-10 01:32:18 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-10 01:32:18 -0700 |
commit | 1f616fba30f7640ca3b5a82fb100fecf08727746 (patch) | |
tree | 9177f0203a1f1baaf0ce76db1de1ec3ca51c6449 /tests | |
parent | f85da86d489bb87d9b4366a213e7c7514de001d9 (diff) | |
parent | 888674c3817240b3a24f15db413f94e9f319b690 (diff) |
Merge "[AWARE] Verify the peer ID is consistent for re-discover" into qt-dev am: 0f3d5bff93
am: 888674c381
Change-Id: I596619ad2b34a15b06be9fdbc700668d8bf5b275
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java index 487d551b1..70aae0896 100644 --- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java @@ -1418,6 +1418,7 @@ public class WifiAwareStateManagerTest { inOrder.verify(mockSessionCallback).onMatch(peerIdCaptor.capture(), eq(peerSsi.getBytes()), eq(peerMatchFilter.getBytes())); inOrderM.verify(mAwareMetricsMock).recordMatchIndicationForRangeEnabledSubscribe(false); + int peerId1 = peerIdCaptor.getValue(); mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), peerMatchFilter.getBytes(), EGRESS_MET_MASK, rangedDistance); @@ -1425,6 +1426,9 @@ public class WifiAwareStateManagerTest { inOrder.verify(mockSessionCallback).onMatchWithDistance(peerIdCaptor.capture(), eq(peerSsi.getBytes()), eq(peerMatchFilter.getBytes()), eq(rangedDistance)); inOrderM.verify(mAwareMetricsMock).recordMatchIndicationForRangeEnabledSubscribe(true); + int peerId2 = peerIdCaptor.getValue(); + + assertEquals(peerId1, peerId2); // (3) message Rx mDut.onMessageReceivedNotification(subscribeId, requestorId, peerMac, peerMsg.getBytes()); |