Disable model loading in Taskbar unit tests.
We do not need this for now and it is making development more difficult on macs. Test: Taskbar unit tests Bug: 230027385 Flag: TEST_ONLY Change-Id: I2e74e91e21aa650544d8264fab7b336b97b52547
This commit is contained in:
1 parent
d52e15b35a
commit
2477f89fd2
2 files changed
+14
-3
No files matched your search
+4
-2
@@ -29,10 +29,10 @@ import com.android.launcher3.LauncherAppState
|
||||
import com.android.launcher3.taskbar.TaskbarActivityContext
|
||||
import com.android.launcher3.taskbar.TaskbarManager
|
||||
import com.android.launcher3.taskbar.TaskbarNavButtonController.TaskbarNavButtonCallbacks
|
||||
import com.android.launcher3.taskbar.TaskbarViewController
|
||||
import com.android.launcher3.taskbar.rules.TaskbarUnitTestRule.InjectController
|
||||
import com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR
|
||||
import com.android.launcher3.util.LauncherMultivalentJUnit.Companion.isRunningInRobolectric
|
||||
import com.android.launcher3.util.ModelTestExtensions.loadModelSync
|
||||
import com.android.launcher3.util.TestUtil
|
||||
import com.android.quickstep.AllAppsActionManager
|
||||
import com.android.quickstep.TouchInteractionService
|
||||
@@ -152,7 +152,7 @@ class TaskbarUnitTestRule(
|
||||
}
|
||||
|
||||
try {
|
||||
LauncherAppState.getInstance(context).model.loadModelSync()
|
||||
TaskbarViewController.enableModelLoadingForTests(false)
|
||||
|
||||
// Replace Launcher Taskbar window with test instance.
|
||||
instrumentation.runOnMainSync {
|
||||
@@ -167,6 +167,8 @@ class TaskbarUnitTestRule(
|
||||
taskbarManager.destroy()
|
||||
launcherTaskbarManager?.setSuspended(false)
|
||||
}
|
||||
|
||||
TaskbarViewController.enableModelLoadingForTests(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user