Fix test cases error
Fixes: 147563810 Change-Id: I500f9897c1f8a0e3bdddad15b5f8377d9bb9ded3 Test: robolectric
This commit is contained in:
@@ -61,7 +61,7 @@ public class MusicViewHolderControllerTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mContext = RuntimeEnvironment.application;
|
||||
final String fsUuid = new VolumeInfo("id", 0, null, "id").fsUuid;
|
||||
mController = new MusicViewHolderController(mContext, mSource, fsUuid, new UserHandle(0));
|
||||
mController = new MusicViewHolderController(mContext, mSource, fsUuid, UserHandle.of(-1));
|
||||
|
||||
View view = ApplicationViewHolder.newView(new FrameLayout(mContext));
|
||||
mHolder = new ApplicationViewHolder(view);
|
||||
|
@@ -60,7 +60,7 @@ public class PhotosViewHolderControllerTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mContext = RuntimeEnvironment.application;
|
||||
final String fsUuid = new VolumeInfo("id", 0, null, "id").fsUuid;
|
||||
mController = new PhotosViewHolderController(mContext, mSource, fsUuid, new UserHandle(0));
|
||||
mController = new PhotosViewHolderController(mContext, mSource, fsUuid, UserHandle.of(-1));
|
||||
|
||||
final View view = ApplicationViewHolder.newView(new FrameLayout(mContext));
|
||||
mHolder = new ApplicationViewHolder(view);
|
||||
|
Reference in New Issue
Block a user