diff options
author | Etan Cohen <etancohen@google.com> | 2017-03-08 14:55:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-08 14:55:06 +0000 |
commit | df5dc451ffe849d3dc2f3d6cb6e2360690a3c9a9 (patch) | |
tree | 901aef54ec25d9cd01fa16f7c6536cf05b3c3d02 /tests | |
parent | e8b70faa6cdcb96ded670444696f0861c60031a5 (diff) | |
parent | 31389a22a6f12b12cca89d53b5f9f80fdcd76385 (diff) |
Merge "[AWARE] Add data-path security configuration (Passphrase)"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java index 6a13576e6..724a4b053 100644 --- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java @@ -139,10 +139,10 @@ public class WifiAwareDataPathStateManagerTest { when(mMockNative.createAwareNetworkInterface(anyShort(), anyString())).thenReturn(true); when(mMockNative.deleteAwareNetworkInterface(anyShort(), anyString())).thenReturn(true); when(mMockNative.initiateDataPath(anyShort(), anyInt(), anyInt(), anyInt(), - any(byte[].class), anyString(), any(byte[].class), + any(byte[].class), anyString(), any(byte[].class), anyString(), any(Capabilities.class))).thenReturn(true); when(mMockNative.respondToDataPathRequest(anyShort(), anyBoolean(), anyInt(), anyString(), - any(byte[].class), any(Capabilities.class))).thenReturn(true); + any(byte[].class), anyString(), any(Capabilities.class))).thenReturn(true); when(mMockNative.endDataPath(anyShort(), anyInt())).thenReturn(true); when(mMockNetworkInterface.configureAgentProperties( @@ -444,7 +444,7 @@ public class WifiAwareDataPathStateManagerTest { mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId); mMockLooper.dispatchAll(); inOrder.verify(mMockNative).respondToDataPathRequest(anyShort(), eq(false), - eq(ndpId), eq(""), eq(null), any(Capabilities.class)); + eq(ndpId), eq(""), eq(null), eq(null), any(Capabilities.class)); } verifyNoMoreInteractions(mMockNative, mMockCm); @@ -468,7 +468,7 @@ public class WifiAwareDataPathStateManagerTest { if (immediateHalFailure) { when(mMockNative.initiateDataPath(anyShort(), anyInt(), anyInt(), anyInt(), - any(byte[].class), anyString(), any(byte[].class), + any(byte[].class), anyString(), any(byte[].class), anyString(), any(Capabilities.class))).thenReturn(false); } @@ -497,7 +497,7 @@ public class WifiAwareDataPathStateManagerTest { inOrder.verify(mMockNative).initiateDataPath(transactionId.capture(), eq(useDirect ? 0 : peerHandle.peerId), eq(REQUEST_CHANNEL_SETUP), eq(2437), eq(peerDiscoveryMac), - eq(sAwareInterfacePrefix + "0"), eq(pmk), any(Capabilities.class)); + eq(sAwareInterfacePrefix + "0"), eq(pmk), eq(null), any(Capabilities.class)); if (immediateHalFailure) { // short-circuit the rest of this test verifyNoMoreInteractions(mMockNative, mMockCm); @@ -586,7 +586,7 @@ public class WifiAwareDataPathStateManagerTest { mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId); mMockLooper.dispatchAll(); inOrder.verify(mMockNative).respondToDataPathRequest(transactionId.capture(), eq(true), - eq(ndpId), eq(sAwareInterfacePrefix + "0"), eq(providePmk ? pmk : null), + eq(ndpId), eq(sAwareInterfacePrefix + "0"), eq(providePmk ? pmk : null), eq(null), any(Capabilities.class)); mDut.onRespondToDataPathSetupRequestResponse(transactionId.getValue(), true, 0); mMockLooper.dispatchAll(); |