diff options
author | Roshan Pius <rpius@google.com> | 2017-03-25 02:52:23 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-25 02:52:23 +0000 |
commit | 243de96fd1d75d1a2e3361af51938c0d4702d6b4 (patch) | |
tree | fdcc04c4e1a99562d02d50ffa5b585d653e8c624 | |
parent | 8127b1ea3c77e07c03c6dc0fdeefc8116fd5a086 (diff) | |
parent | e31ef130820979e9a5487299ad4486291d840272 (diff) |
Unit test fixes for SupplicantP2pIfaceHalTest
am: e31ef13082
Change-Id: I295b593d7442d82f859dd3a8b4b72c9b4befe412
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceHalTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceHalTest.java b/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceHalTest.java index da20eaad3..161296f47 100644 --- a/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceHalTest.java +++ b/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceHalTest.java @@ -1760,7 +1760,7 @@ public class SupplicantP2pIfaceHalTest { @Test public void testCancelServiceDiscovery_invalidArguments() throws Exception { executeAndValidateInitializationSequence(false, false, false); - when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyInt())) + when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) .thenReturn(mStatusFailure); assertFalse(mDut.cancelServiceDiscovery(null)); assertFalse(mDut.cancelServiceDiscovery("not a number")); @@ -1772,7 +1772,7 @@ public class SupplicantP2pIfaceHalTest { @Test public void testCancelServiceDiscovery_failure() throws Exception { executeAndValidateInitializationSequence(false, false, false); - when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyInt())) + when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) .thenReturn(mStatusFailure); assertFalse(mDut.cancelServiceDiscovery("1234")); // Check that service is still alive. @@ -1785,7 +1785,7 @@ public class SupplicantP2pIfaceHalTest { @Test public void testCancelServiceDiscovery_exception() throws Exception { executeAndValidateInitializationSequence(false, false, false); - when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyInt())) + when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) .thenThrow(mRemoteException); assertFalse(mDut.cancelServiceDiscovery("1234")); // Check service is dead. |