Merge "Fix failing tests that are blocking OOM investigation" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
e3220bec92
@@ -169,7 +169,7 @@ class SystemUiProxy @Inject constructor(@ApplicationContext private val context:
|
||||
* different process). It is bare-bones, so it's expected that the component and options will be
|
||||
* provided via fill-in intent.
|
||||
*/
|
||||
private val recentsPendingIntent =
|
||||
private val recentsPendingIntent by lazy {
|
||||
PendingIntent.getActivity(
|
||||
context,
|
||||
0,
|
||||
@@ -183,6 +183,7 @@ class SystemUiProxy @Inject constructor(@ApplicationContext private val context:
|
||||
)
|
||||
.toBundle(),
|
||||
)
|
||||
}
|
||||
|
||||
val unfoldTransitionProvider: ProxyUnfoldTransitionProvider? =
|
||||
if ((Flags.enableUnfoldStateAnimation() && ResourceUnfoldTransitionConfig().isEnabled))
|
||||
|
||||
@@ -35,7 +35,6 @@ import com.android.launcher3.util.LauncherModelHelper
|
||||
import com.android.launcher3.util.TestUtil
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.mockito.kotlin.any
|
||||
@@ -53,7 +52,7 @@ class InstallSessionHelperTest {
|
||||
private val sandboxContext = spy(launcherModelHelper.sandboxContext)
|
||||
private val packageManager = sandboxContext.packageManager
|
||||
private val expectedAppPackage = "expectedAppPackage"
|
||||
private val expectedInstallerPackage = "expectedInstallerPackage"
|
||||
private val expectedInstallerPackage = sandboxContext.packageName
|
||||
private val mockPackageInstaller: PackageInstaller = mock()
|
||||
|
||||
private lateinit var installSessionHelper: InstallSessionHelper
|
||||
@@ -62,7 +61,6 @@ class InstallSessionHelperTest {
|
||||
@Before
|
||||
fun setup() {
|
||||
whenever(packageManager.packageInstaller).thenReturn(mockPackageInstaller)
|
||||
whenever(sandboxContext.packageName).thenReturn(expectedInstallerPackage)
|
||||
launcherApps = sandboxContext.spyService(LauncherApps::class.java)
|
||||
installSessionHelper = InstallSessionHelper(sandboxContext)
|
||||
}
|
||||
@@ -167,7 +165,6 @@ class InstallSessionHelperTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("b/388258969")
|
||||
fun `promiseIconAddedForId returns true if there is a promiseIcon with the session id`() {
|
||||
// Given
|
||||
val expectedIdString = IntArray().apply { add(1) }.toConcatString()
|
||||
|
||||
Reference in New Issue
Block a user