Searched refs:mockTaskController (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/ |
D | PackageUpdatedTaskTest.kt | 84 private lateinit var mockTaskController: ModelTaskController variable in com.android.launcher3.model.PackageUpdatedTaskTest 101 mockTaskController = spy((mContext.appComponent as TestComponent).getTaskController()) in setup() 136 taskUnderTest.execute(mockTaskController, mDataModel, mAllAppsList) in OP_ADD triggers model callbacks and adds new items to AllAppsList() 141 verify(mockTaskController).bindUpdatedWorkspaceItems(listOf(expectedWorkspaceItem)) in OP_ADD triggers model callbacks and adds new items to AllAppsList() 142 verify(mockTaskController).bindUpdatedWidgets(mDataModel) in OP_ADD triggers model callbacks and adds new items to AllAppsList() 154 taskUnderTest.execute(mockTaskController, mDataModel, mAllAppsList) in OP_UPDATE triggers model callbacks and updates items in AllAppsList() 159 verify(mockTaskController).bindUpdatedWorkspaceItems(listOf(expectedWorkspaceItem)) in OP_UPDATE triggers model callbacks and updates items in AllAppsList() 171 taskUnderTest.execute(mockTaskController, mDataModel, mAllAppsList) in OP_REMOVE triggers model callbacks and removes packages and icons() 176 verify(mockTaskController).bindUpdatedWorkspaceItems(listOf(expectedWorkspaceItem)) in OP_REMOVE triggers model callbacks and removes packages and icons() 187 taskUnderTest.execute(mockTaskController, mDataModel, mAllAppsList) in OP_UNAVAILABLE triggers model callbacks and removes package from AllAppsList() [all …]
|
D | ShortcutsChangedTaskTest.kt | 73 private val mockTaskController: ModelTaskController = mock() in <lambda>() constant in com.android.launcher3.model.ShortcutsChangedTaskTest 94 whenever(mockTaskController.context).thenReturn(context) in <lambda>() 95 whenever(mockTaskController.iconCache).thenReturn(mockIconCache) in <lambda>() 130 shortcutsChangedTask.execute(mockTaskController, modelHelper.bgDataModel, mockAllApps) in <lambda>() 133 verify(mockTaskController).bindUpdatedWorkspaceItems(listOf(expectedWai)) in <lambda>() 160 shortcutsChangedTask.execute(mockTaskController, modelHelper.bgDataModel, mockAllApps) in <lambda>() 162 verify(mockTaskController) in <lambda>() 193 shortcutsChangedTask.execute(mockTaskController, modelHelper.bgDataModel, mockAllApps) in <lambda>() 196 verify(mockTaskController).bindUpdatedWorkspaceItems(listOf(expectedWai)) in <lambda>() 222 shortcutsChangedTask.execute(mockTaskController, modelHelper.bgDataModel, mockAllApps) in <lambda>() [all …]
|