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

Commit 9a8f4422 authored by Prabal Singh's avatar Prabal Singh Committed by Android (Google) Code Review
Browse files

Merge "Remove extra argument WorkPolicyUtil constructor" into tm-dev

parents 783314ae 3e2d7f45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ public class EnterprisePrivacyFeatureProviderImpl implements EnterprisePrivacyFe
        mCm = cm;
        mVm = vm;
        mResources = resources;
        mWorkPolicyUtils = new WorkPolicyUtils(mContext, mPm, mUm, mDpm);
        mWorkPolicyUtils = new WorkPolicyUtils(mContext);
    }

    @Override
+4 −0
Original line number Diff line number Diff line
@@ -105,6 +105,10 @@ public class EnterprisePrivacyFeatureProviderImplTest {
        when(mContext.getApplicationContext()).thenReturn(mContext);
        resetAndInitializePackageManager();
        when(mUserManager.getProfiles(mUserId)).thenReturn(mProfiles);
        when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE))
                .thenReturn(mDevicePolicyManager);
        when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager);
        when(mContext.getPackageManager()).thenReturn(mPackageManager);
        mProfiles.add(new UserInfo(mUserId, "", "", 0 /* flags */));
        mResources = RuntimeEnvironment.application.getResources();