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

Commit aad16872 authored by Fan Zhang's avatar Fan Zhang Committed by Android (Google) Code Review
Browse files

Merge "Fix robotest failure" into pi-dev

parents 54f467f9 cbc5239c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -219,8 +219,10 @@ public class StorageItemPreferenceControllerTest {
    @Ignore
    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(),