Run testFilterAgeIncreasesBetweenPacketstest() when VSR API is higher

Restricted the execution of testFilterAgeIncreasesBetweenPackets() to
devices with VSR API level 34 or higher.  VSR-14 mandates APF activation
under specific conditions screen off && (idle Wi-Fi | low traffic).

Test: TH
Change-Id: I480c0d0422fa39a580dbadd31a377986ce37c25f
This commit is contained in:
Yuyang Huang 2024-05-29 14:27:10 +09:00
commit c943e37f13

View file

@ -488,6 +488,10 @@ class ApfIntegrationTest {
@IgnoreUpTo(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
@Test
fun testFilterAgeIncreasesBetweenPackets() {
// VSR-14 mandates APF to be turned on when the screen is off and the Wi-Fi link
// is idle or traffic is less than 10 Mbps. Before that, we don't mandate when the APF
// should be turned on.
assume().that(getVsrApiLevel()).isAtLeast(34)
assumeApfVersionSupportAtLeast(4)
clearApfMemory()
val gen = ApfV4Generator(4)