Loading tests/unit/com/android/documentsui/files/ActionHandlerTest.java +8 −3 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.documentsui.files; import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled; import static com.android.documentsui.testing.IntentAsserts.assertHasAction; import static com.android.documentsui.testing.IntentAsserts.assertHasData; import static com.android.documentsui.testing.IntentAsserts.assertHasExtra; Loading @@ -24,6 +23,8 @@ import static com.android.documentsui.testing.IntentAsserts.assertHasExtraIntent import static com.android.documentsui.testing.IntentAsserts.assertHasExtraList; import static com.android.documentsui.testing.IntentAsserts.assertHasExtraUri; import static com.android.documentsui.testing.IntentAsserts.assertTargetsComponent; import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled; import static com.android.documentsui.util.FlagUtils.isZipNgFlagEnabled; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; Loading Loading @@ -400,13 +401,17 @@ public class ActionHandlerTest { } @Test public void testDocumentPicked_InArchive_Unopenable() throws Exception { public void testDocumentPicked_InArchive_OpenableOrNot() throws Exception { mActivity.currentRoot = TestProvidersAccess.HOME; mHandler.openDocument(TestEnv.FILE_IN_ARCHIVE, ActionHandler.VIEW_TYPE_PREVIEW, ActionHandler.VIEW_TYPE_REGULAR); if (isZipNgFlagEnabled()) { mActivity.assertActivityStarted(Intent.ACTION_VIEW); } else { mDialogs.assertViewInArchivesShownUnsupported(); } } @Test public void testDocumentPicked_PreviewsWhenResourceSet() throws Exception { Loading Loading
tests/unit/com/android/documentsui/files/ActionHandlerTest.java +8 −3 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.documentsui.files; import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled; import static com.android.documentsui.testing.IntentAsserts.assertHasAction; import static com.android.documentsui.testing.IntentAsserts.assertHasData; import static com.android.documentsui.testing.IntentAsserts.assertHasExtra; Loading @@ -24,6 +23,8 @@ import static com.android.documentsui.testing.IntentAsserts.assertHasExtraIntent import static com.android.documentsui.testing.IntentAsserts.assertHasExtraList; import static com.android.documentsui.testing.IntentAsserts.assertHasExtraUri; import static com.android.documentsui.testing.IntentAsserts.assertTargetsComponent; import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled; import static com.android.documentsui.util.FlagUtils.isZipNgFlagEnabled; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; Loading Loading @@ -400,13 +401,17 @@ public class ActionHandlerTest { } @Test public void testDocumentPicked_InArchive_Unopenable() throws Exception { public void testDocumentPicked_InArchive_OpenableOrNot() throws Exception { mActivity.currentRoot = TestProvidersAccess.HOME; mHandler.openDocument(TestEnv.FILE_IN_ARCHIVE, ActionHandler.VIEW_TYPE_PREVIEW, ActionHandler.VIEW_TYPE_REGULAR); if (isZipNgFlagEnabled()) { mActivity.assertActivityStarted(Intent.ACTION_VIEW); } else { mDialogs.assertViewInArchivesShownUnsupported(); } } @Test public void testDocumentPicked_PreviewsWhenResourceSet() throws Exception { Loading