Merge "Use destroyLiveTcpSocketsByOwnerUids for frozen apps" into main

This commit is contained in:
Treehugger Robot
2023-08-09 05:17:14 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 12 deletions

View File

@@ -18547,12 +18547,7 @@ public class ConnectivityServiceTest {
waitForIdle();
final Set<Integer> exemptUids = new ArraySet();
final UidRange frozenUidRange = new UidRange(TEST_FROZEN_UID, TEST_FROZEN_UID);
final Set<UidRange> ranges = Collections.singleton(frozenUidRange);
verify(mDestroySocketsWrapper).destroyLiveTcpSockets(eq(UidRange.toIntRanges(ranges)),
eq(exemptUids));
verify(mDestroySocketsWrapper).destroyLiveTcpSocketsByOwnerUids(Set.of(TEST_FROZEN_UID));
}
@Test