commit | efebae2ef4d29868ffdb1fdb0ac29cc17db6a2b8 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Wed Feb 12 02:48:35 2025 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Feb 12 02:48:35 2025 -0800 |
tree | ddc10b834e24d08af1671cb758c8deb0a3f92295 | |
parent | 1844db355fe796b517416590a7a0957a3aa95351 [diff] | |
parent | d7007ef6e80fca1e7ea38b703a3a2fcc5e056f0a [diff] |
Merge "Destroy RecentsDependencies in tests that initialise it." into main
diff --git a/quickstep/tests/multivalentScreenshotTests/src/com/android/quickstep/task/thumbnail/TaskThumbnailViewScreenshotTest.kt b/quickstep/tests/multivalentScreenshotTests/src/com/android/quickstep/task/thumbnail/TaskThumbnailViewScreenshotTest.kt index 232a08a..c3b4d15 100644 --- a/quickstep/tests/multivalentScreenshotTests/src/com/android/quickstep/task/thumbnail/TaskThumbnailViewScreenshotTest.kt +++ b/quickstep/tests/multivalentScreenshotTests/src/com/android/quickstep/task/thumbnail/TaskThumbnailViewScreenshotTest.kt
@@ -24,6 +24,7 @@ import com.android.quickstep.task.thumbnail.TaskThumbnailUiState.Uninitialized import com.android.quickstep.task.viewmodel.TaskThumbnailViewModel import com.google.android.apps.nexuslauncher.imagecomparison.goldenpathmanager.ViewScreenshotGoldenPathManager +import org.junit.After import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith @@ -47,6 +48,11 @@ private val taskThumbnailViewModel = FakeTaskThumbnailViewModel() + @After + fun tearDown() { + RecentsDependencies.destroy() + } + @Test fun taskThumbnailView_uninitializedByDefault() { screenshotRule.screenshotTest("taskThumbnailView_uninitialized") { activity ->
diff --git a/quickstep/tests/multivalentTests/src/com/android/launcher3/model/data/TaskViewItemInfoTest.kt b/quickstep/tests/multivalentTests/src/com/android/launcher3/model/data/TaskViewItemInfoTest.kt index de0da64..adfbca5 100644 --- a/quickstep/tests/multivalentTests/src/com/android/launcher3/model/data/TaskViewItemInfoTest.kt +++ b/quickstep/tests/multivalentTests/src/com/android/launcher3/model/data/TaskViewItemInfoTest.kt
@@ -47,6 +47,7 @@ import com.google.common.truth.Truth.assertThat import dagger.BindsInstance import dagger.Component +import org.junit.After import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @@ -78,6 +79,11 @@ RecentsDependencies.initialize(context) } + @After + fun tearDown() { + RecentsDependencies.destroy() + } + @Test fun singleTask() { val taskContainers = listOf(createTaskContainer(createTask(1)))