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

Commit 8375fcec authored by Esteban Talavera's avatar Esteban Talavera
Browse files

Fix unit tests

http://ag/858485 added a new flag and the mockito didn't match
the call any more

Change-Id: I8f99b1b6063488aeced08513b11c79bf0162006e
parent 5f09616e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.test.AndroidTestCase;
import java.io.File;
import java.util.List;

import static org.mockito.Matchers.anyInt;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.doReturn;

@@ -135,8 +136,7 @@ public abstract class DpmTestBase extends AndroidTestCase {

        doReturn(realResolveInfo).when(mMockContext.packageManager).queryBroadcastReceiversAsUser(
                MockUtils.checkIntentComponent(admin),
                eq(PackageManager.GET_META_DATA
                        | PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS),
                anyInt(),
                eq(UserHandle.getUserId(packageUid)));

        // Set up getPackageInfo().