Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78e92413 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Platform AnimatorTestRule uses lockAnimationClock to ensure determinism.

Bug: 302149604
Fixes: 324576535
Flag: NA
Test: atest AnimatorTestRuleOrderTest
Test: ran test case from b/324576535
Change-Id: I9735a6fd3fbb531fb75a4283401a3553703e43ab
parent a631162b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class LightRevealScrimRepositoryTest : SysuiTestCase() {
    private lateinit var powerInteractor: PowerInteractor
    private lateinit var underTest: LightRevealScrimRepositoryImpl

    @get:Rule val animatorTestRule = AnimatorTestRule()
    @get:Rule val animatorTestRule = AnimatorTestRule(this)

    @Before
    fun setUp() {
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ import org.junit.runner.RunWith
@RunWithLooper
class AnimatorTestRuleIsolationTest : SysuiTestCase() {

    @get:Rule val animatorTestRule = AnimatorTestRule()
    @get:Rule val animatorTestRule = AnimatorTestRule(this)

    @Test
    fun testA() {
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ import org.junit.runner.RunWith
@RunWithLooper
class AnimatorTestRulePrecisionTest : SysuiTestCase() {

    @get:Rule val animatorTestRule = AnimatorTestRule()
    @get:Rule val animatorTestRule = AnimatorTestRule(this)

    var value1: Float = -1f
    var value2: Float = -1f
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ import java.lang.reflect.Field;
public class KeyguardStatusViewControllerTest extends KeyguardStatusViewControllerBaseTest {

    @Rule
    public final AnimatorTestRule mAnimatorTestRule = new AnimatorTestRule();
    public final AnimatorTestRule mAnimatorTestRule = new AnimatorTestRule(this);

    @Test
    public void dozeTimeTick_updatesSlice() {
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ import org.junit.runner.RunWith;
public class ExpandHelperTest extends SysuiTestCase {

    @Rule
    public final AnimatorTestRule mAnimatorTestRule = new AnimatorTestRule();
    public final AnimatorTestRule mAnimatorTestRule = new AnimatorTestRule(this);

    private final FakeFeatureFlags mFeatureFlags = new FakeFeatureFlags();
    private ExpandableNotificationRow mRow;
Loading