diff options
author | Roshan Pius <rpius@google.com> | 2017-03-03 06:51:03 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-03-03 11:36:31 -0800 |
commit | 60ef62896e60b41a36a73f4a58d1281084b7181a (patch) | |
tree | 85227da5fa03524cd2b0b411dc9b8ddd1ab36e41 /tests | |
parent | fdffec5da789c47a99dccdde29cbc6740e015f0b (diff) |
SupplicantP2pIfaceHal: Port over link to death handling
Port over the link to death handling from StaIface.
Bug: 33383725
Test: Compiles
Change-Id: I6a7c60ea759d638fe315b04ba9831b9bf90bd0a6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/SupplicantP2pIfaceHalTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/SupplicantP2pIfaceHalTest.java b/tests/wifitests/src/com/android/server/wifi/SupplicantP2pIfaceHalTest.java index b08ebdf97..f19fb11de 100644 --- a/tests/wifitests/src/com/android/server/wifi/SupplicantP2pIfaceHalTest.java +++ b/tests/wifitests/src/com/android/server/wifi/SupplicantP2pIfaceHalTest.java @@ -37,10 +37,8 @@ import android.net.wifi.p2p.WifiP2pDevice; import android.net.wifi.p2p.WifiP2pGroup; import android.net.wifi.p2p.WifiP2pManager; import android.net.wifi.p2p.nsd.WifiP2pServiceInfo; -import android.os.HandlerThread; import android.os.IHwBinder; import android.os.RemoteException; -import android.os.test.TestLooper; import com.android.server.wifi.util.NativeUtil; @@ -166,6 +164,10 @@ public class SupplicantP2pIfaceHalTest { anyLong())).thenReturn(true); when(mServiceManagerMock.registerForNotifications(anyString(), anyString(), any(IServiceNotification.Stub.class))).thenReturn(true); + when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), + anyLong())).thenReturn(true); + when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), + anyLong())).thenReturn(true); mDut = new SupplicantP2pIfaceHalSpy(); } |