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

Commit 5bd90039 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Disables AodToGoneTransitionViewModelTest when flexi is on" into main

parents 1dd19baf dab48225
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import com.android.systemui.SysuiTestCase
import com.android.systemui.coroutines.collectValues
import com.android.systemui.flags.DisableSceneContainer
import com.android.systemui.keyguard.data.repository.fakeKeyguardTransitionRepository
import com.android.systemui.keyguard.shared.model.KeyguardState
import com.android.systemui.keyguard.shared.model.TransitionState
@@ -33,6 +34,7 @@ import org.junit.runner.RunWith

@SmallTest
@RunWith(AndroidJUnit4::class)
@DisableSceneContainer
class AodToGoneTransitionViewModelTest : SysuiTestCase() {
    val kosmos = testKosmos()
    val testScope = kosmos.testScope
@@ -48,7 +50,7 @@ class AodToGoneTransitionViewModelTest : SysuiTestCase() {
            repository.sendTransitionSteps(
                from = KeyguardState.AOD,
                to = KeyguardState.GONE,
                testScope
                testScope,
            )

            assertThat(alpha[0]).isEqualTo(0.5f)
@@ -75,14 +77,14 @@ class AodToGoneTransitionViewModelTest : SysuiTestCase() {

    private fun step(
        value: Float,
        state: TransitionState = TransitionState.RUNNING
        state: TransitionState = TransitionState.RUNNING,
    ): TransitionStep {
        return TransitionStep(
            from = KeyguardState.AOD,
            to = KeyguardState.GONE,
            value = value,
            transitionState = state,
            ownerName = "AodToGoneTransitionViewModelTest"
            ownerName = "AodToGoneTransitionViewModelTest",
        )
    }
}