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

Commit cbc5239c authored by Fan Zhang's avatar Fan Zhang
Browse files

Fix robotest failure

Change-Id: Ic584aab213fa7af8f6f79e10743710be6840c2ee
Fixes: 77161730
Test: robotest
parent 0a5367c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -217,8 +217,10 @@ public class StorageItemPreferenceControllerTest {
    @Test
    public void testClickFiles() {
        when(mSvp.findEmulatedForPrivate(nullable(VolumeInfo.class))).thenReturn(mVolume);
        when(mVolume.buildBrowseIntent()).thenReturn(new Intent());
        mPreference.setKey("pref_files");
        mController.handlePreferenceTreeClick(mPreference);
        assertThat(mController.handlePreferenceTreeClick(mPreference))
            .isTrue();

        final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class);
        verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(),