Skip to content
Snippets Groups Projects
Commit 5ad3b128 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Disable "Notification Cooldown" for flicker tests

Change-Id: I26bf9f4df26576ac769ee5da6a74e605fb358a4b
Fixes: 342551612
Test: FlickerTestsNotification com.android.server.wm.flicker.notification.OpenAppFromLockscreenNotificationColdTest
Flag: TEST_ONLY
parent 45aaef93
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
package com.android.server.wm.flicker.service
import android.app.Instrumentation
import android.platform.test.rule.DisableNotificationCooldownSettingRule
import android.platform.test.rule.NavigationModeRule
import android.platform.test.rule.PressHomeRule
import android.platform.test.rule.UnlockScreenRule
......@@ -48,6 +49,7 @@ object Utils {
clearCacheAfterParsing = false
)
)
.around(DisableNotificationCooldownSettingRule())
.around(PressHomeRule())
}
}
......@@ -18,6 +18,7 @@ package com.android.server.wm.flicker.notification
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.platform.test.rule.DisableNotificationCooldownSettingRule
import android.tools.flicker.junit.FlickerParametersRunnerFactory
import android.tools.flicker.legacy.FlickerBuilder
import android.tools.flicker.legacy.FlickerTestData
......@@ -37,6 +38,7 @@ import com.android.server.wm.flicker.navBarWindowIsVisibleAtEnd
import com.android.server.wm.flicker.taskBarLayerIsVisibleAtEnd
import com.android.server.wm.flicker.taskBarWindowIsVisibleAtEnd
import org.junit.Assume
import org.junit.ClassRule
import org.junit.FixMethodOrder
import org.junit.Ignore
import org.junit.Test
......@@ -208,5 +210,10 @@ open class OpenAppFromNotificationWarmTest(flicker: LegacyFlickerTest) :
@Parameterized.Parameters(name = "{0}")
@JvmStatic
fun getParams() = LegacyFlickerTestFactory.nonRotationTests()
/** Ensures that posted notifications will alert and HUN even just after boot. */
@ClassRule
@JvmField
val disablenotificationCooldown = DisableNotificationCooldownSettingRule()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment