summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author William Xiao <wxyz@google.com> 2024-08-29 16:43:42 -0700
committer William Xiao <wxyz@google.com> 2024-08-29 16:49:02 -0700
commita376dec2e36714f3b48ee82241e997a217809462 (patch)
treeab48443ffd28ae643a05920d9cf90deb1413a411
parente4b5014be6efbcc3ae3f0775017d167a8715fa8d (diff)
Replace usages of deprecated fakeShadeRepository with ShadeTestUtil
Note that there's no difference in behavior since the code currently only runs when Flexiglass is off. Bug: 361091641 Flag: NONE simple test change Test: atest GlanceableHubContainerControllerTest Change-Id: I0d2305352abc59f6da2ade85c811ca9de21c14fe
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt
index c8ff52ade049..3ba1447eb406 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt
+++ b/packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt
@@ -61,7 +61,6 @@ import com.android.systemui.log.logcatLogBuffer
import com.android.systemui.media.controls.controller.keyguardMediaController
import com.android.systemui.res.R
import com.android.systemui.scene.shared.model.sceneDataSourceDelegator
-import com.android.systemui.shade.data.repository.fakeShadeRepository
import com.android.systemui.shade.domain.interactor.shadeInteractor
import com.android.systemui.statusbar.lockscreen.lockscreenSmartspaceController
import com.android.systemui.statusbar.notification.stack.notificationStackScrollLayoutController
@@ -706,7 +705,7 @@ class GlanceableHubContainerControllerTest : SysuiTestCase() {
verify(containerView).onTouchEvent(DOWN_EVENT)
// User is interacting with shade on lockscreen.
- fakeShadeRepository.setLegacyLockscreenShadeTracking(true)
+ shadeTestUtil.setLockscreenShadeTracking(true)
testableLooper.processAllMessages()
// A move event is ignored while the user is already interacting.
@@ -734,7 +733,7 @@ class GlanceableHubContainerControllerTest : SysuiTestCase() {
.thenReturn(true)
// Shade is open slightly.
- fakeShadeRepository.setLegacyShadeExpansion(0.01f)
+ shadeTestUtil.setShadeExpansion(0.01f)
testableLooper.processAllMessages()
// Touches are not consumed.