Removing ZipRule because it seems to break roboelectric tests
Fix: 402136065 Test: DeviceProfileTest Test: DeviceProfileDumpTest Flag: TEST_ONLY Change-Id: I7c3777ebd725e2acb2511aef3874b031a56bcf1a
This commit is contained in:
1 parent
0c762ac84f
commit
a67e735606
1 file changed
-10
@@ -39,7 +39,6 @@ import com.android.launcher3.util.NavigationMode
|
||||
import com.android.launcher3.util.SandboxContext
|
||||
import com.android.launcher3.util.WindowBounds
|
||||
import com.android.launcher3.util.rule.TestStabilityRule
|
||||
import com.android.launcher3.util.rule.ZipFilesRule
|
||||
import com.android.launcher3.util.rule.setFlags
|
||||
import com.android.launcher3.util.window.CachedDisplayInfo
|
||||
import com.android.launcher3.util.window.WindowManagerProxy
|
||||
@@ -52,7 +51,6 @@ import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Rule
|
||||
import org.mockito.kotlin.any
|
||||
import org.mockito.kotlin.doReturn
|
||||
@@ -82,13 +80,6 @@ abstract class AbstractDeviceProfileTest {
|
||||
|
||||
@Rule @JvmField val limitDevicesRule = LimitDevicesRule()
|
||||
|
||||
companion object {
|
||||
@ClassRule
|
||||
@JvmField
|
||||
val resultZipRule =
|
||||
ZipFilesRule(InstrumentationRegistry.getInstrumentation().targetContext, "DumpTest")
|
||||
}
|
||||
|
||||
class DeviceSpec(
|
||||
val naturalSize: Pair<Int, Int>,
|
||||
var densityDpi: Int,
|
||||
@@ -375,7 +366,6 @@ abstract class AbstractDeviceProfileTest {
|
||||
private fun writeToDevice(context: Context, fileName: String, content: String) {
|
||||
val file = File(context.getDir("dumpTests", Context.MODE_PRIVATE), fileName)
|
||||
file.writeText(content)
|
||||
resultZipRule.write(file)
|
||||
}
|
||||
|
||||
protected fun Float.dpToPx(): Float {
|
||||
|
||||
Reference in new issue
Block a user