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

Commit 481c2d6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't run failing 'other user' test pre-R" into rvc-dev am: 4f445cfc...

Merge "Don't run failing 'other user' test pre-R" into rvc-dev am: 4f445cfc am: 9bc65efd am: 15d93c6e am: f096d0cf

Change-Id: Ib306aecfde95c7697c9714a091ad62c188ec7cb8
parents 741c5154 f096d0cf
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -44,6 +44,7 @@ import com.android.documentsui.sidebar.RootItem;
import com.android.documentsui.testing.TestActionHandler;
import com.android.documentsui.testing.TestActionHandler;
import com.android.documentsui.testing.TestProvidersAccess;
import com.android.documentsui.testing.TestProvidersAccess;
import com.android.documentsui.testing.TestResolveInfo;
import com.android.documentsui.testing.TestResolveInfo;
import com.android.documentsui.util.VersionUtils;


import com.google.common.collect.Lists;
import com.google.common.collect.Lists;


@@ -169,6 +170,9 @@ public class AppsRowManagerTest {


    @Test
    @Test
    public void testUpdateView_showSelectedUserItems_otherUser() {
    public void testUpdateView_showSelectedUserItems_otherUser() {
        if (!VersionUtils.isAtLeastR()) {
            return;
        }
        mState.action = State.ACTION_GET_CONTENT;
        mState.action = State.ACTION_GET_CONTENT;
        when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID);
        when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID);
        mState.stack.changeRoot(TestProvidersAccess.RECENTS);
        mState.stack.changeRoot(TestProvidersAccess.RECENTS);