Loading wifi/tests/src/android/net/wifi/p2p/WifiP2pManagerTest.java +4 −4 Original line number Diff line number Diff line Loading @@ -59,11 +59,11 @@ public class WifiP2pManagerTest { */ @Test public void testChannelFinalize() throws Exception { WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, mTestLooper.getLooper(), null, null, mDut); try (WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, mTestLooper.getLooper(), null, null, mDut)) { leakageDetectorRule.assertUnreleasedResourceCount(channel, 1); } } /** * Validate that when close is called on a channel it frees up resources (i.e. don't Loading Loading
wifi/tests/src/android/net/wifi/p2p/WifiP2pManagerTest.java +4 −4 Original line number Diff line number Diff line Loading @@ -59,11 +59,11 @@ public class WifiP2pManagerTest { */ @Test public void testChannelFinalize() throws Exception { WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, mTestLooper.getLooper(), null, null, mDut); try (WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, mTestLooper.getLooper(), null, null, mDut)) { leakageDetectorRule.assertUnreleasedResourceCount(channel, 1); } } /** * Validate that when close is called on a channel it frees up resources (i.e. don't Loading