3-button mode tests close app tests

Tests now run in:
  - Portrait + 3 Button
  - Landscape + 3 Button
  - Portrait + Gestural
  - Landscape + Gestural

Moreover, the tests now share the code and assertions because they should behave exactly the same (except for the transition)

Test: atest FlickerTests
Bug: 167521849
Change-Id: Id88514d83e40c04bce3135cccdc142a2b2745597
This commit is contained in:
Nataniel Borges
2021-02-22 22:12:21 +01:00
parent c6c86d83fa
commit e52c38f750
2 changed files with 2 additions and 14 deletions

View File

@@ -16,7 +16,6 @@
package com.android.server.wm.flicker.close
import android.view.WindowManagerPolicyConstants
import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.FlickerParametersRunnerFactory
import com.android.server.wm.flicker.FlickerTestParameter
@@ -50,12 +49,7 @@ class CloseAppBackButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio
@JvmStatic
fun getParams(): List<FlickerTestParameter> {
return FlickerTestParameterFactory.getInstance()
.getConfigNonRotationTests(
repetitions = 5,
supportedNavigationModes = listOf(
WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY
)
)
.getConfigNonRotationTests(repetitions = 5)
}
}
}

View File

@@ -16,7 +16,6 @@
package com.android.server.wm.flicker.close
import android.view.WindowManagerPolicyConstants
import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.FlickerParametersRunnerFactory
import com.android.server.wm.flicker.FlickerTestParameter
@@ -50,12 +49,7 @@ class CloseAppHomeButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio
@JvmStatic
fun getParams(): Collection<FlickerTestParameter> {
return FlickerTestParameterFactory.getInstance()
.getConfigNonRotationTests(
repetitions = 5,
supportedNavigationModes = listOf(
WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY
)
)
.getConfigNonRotationTests(repetitions = 5)
}
}
}