summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2019-05-09 21:01:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-05-09 21:01:16 +0000
commit0f3d5bff93018e192997d9fd59ced66932eb6129 (patch)
tree618e21ebfb0c484734342c6506ddc8795053ffcd
parentcf347721b74cbb08777e80ab719cf06b415a700e (diff)
parentd8a8b8f79140b39ce2e9a5417e0d9b97073e8053 (diff)
Merge "[AWARE] Verify the peer ID is consistent for re-discover" into qt-dev
-rw-r--r--tests/wifitests/src/com/android/server/wifi/aware/WifiAwareStateManagerTest.java4
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 b4f93c123..04ecfe7d4 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());