Merge "Remove NetworkIdentitySet usage in CTS"

This commit is contained in:
Treehugger Robot 2022-05-09 04:13:27 +00:00 • committed by Gerrit Code Review
commit 65b3529be5

View file

@ -16,7 +16,7 @@
package android.net.netstats
import android.net.NetworkIdentitySet
import android.net.NetworkIdentity
import android.net.NetworkStatsCollection
import android.net.NetworkStatsHistory
import androidx.test.filters.SmallTest
@ -40,7 +40,7 @@ class NetworkStatsCollectionTest {
@Test
fun testBuilder() {
val ident = NetworkIdentitySet()
val ident = setOf<NetworkIdentity>()
val key1 = NetworkStatsCollection.Key(ident, /* uid */ 0, /* set */ 0, /* tag */ 0)
val key2 = NetworkStatsCollection.Key(ident, /* uid */ 1, /* set */ 0, /* tag */ 0)
val bucketDuration = 10L
@ -63,4 +63,4 @@ class NetworkStatsCollectionTest {
val actualHistory = actualEntries[key1] ?: fail("There should be an entry for $key1")
assertEquals(history1.entries, actualHistory.entries)
}
}
}