Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e01a459 authored by Jackal Guo's avatar Jackal Guo
Browse files

Update the expected number of items.

Since there are newly added files in InspectorProvider, update the
expected number of items accordingly.

Test: atest com.android.documentsui.InspectorUiTest#testFolderDetails
Change-Id: I421418d2f21f9ed051d7487e733f8fd9df173557
Fix: 110510582
parent 35e9e93f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ public class InspectorProvider extends TestRootProvider {
    public static final String AUTHORITY = "com.android.documentsui.inspectorprovider";
    public static final String OPEN_IN_PROVIDER_TEST = "OpenInProviderTest";
    public static final String ROOT_ID = "inspector-root";

    // Number of items under the root path of InspectorProvider.
    public static final String NUMBER_OF_ITEMS = "6";
    // Virtual jpeg files for test metadata loading from provider.
    // TEST_JPEG is a normal jpeg file with legal exif data.
    // INVALID_JPEG is a invalid jpeg file with broken exif data.
@@ -105,6 +106,8 @@ public class InspectorProvider extends TestRootProvider {
        }
        else {
            MatrixCursor c = createDocCursor(projection);
            // If you add folder or file here, please modify NUMBER_OF_ITEMS above for
            // #testFolderDetails in InspectorUiTest accordingly.
            addFolder(c, "Top");
            addFile(c, OPEN_IN_PROVIDER_TEST, FLAG_SUPPORTS_SETTINGS);
            addFile(c, "test.txt");
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ public class InspectorUiTest extends ActivityTest<InspectorActivity> {
                getActivity());
        bots.inspector.assertRowEquals(
                getActivity().getString(R.string.directory_items),
                "4",
                InspectorProvider.NUMBER_OF_ITEMS,
                getActivity());
    }
}