Searched refs:sMockDevicePolicyManager (Results 1 – 1 of 1) sorted by relevance
118 private static DevicePolicyManager sMockDevicePolicyManager; field in CaptivePortalLoginActivityTest124 if (Context.DEVICE_POLICY_SERVICE.equals(name)) return sMockDevicePolicyManager; in getSystemService()194 sMockDevicePolicyManager = mock(DevicePolicyManager.class); in setUp()288 doReturn(false).when(sMockDevicePolicyManager).isAlwaysOnVpnLockdownEnabled(any()); in testIsAlwaysOnVpnEnabled()290 doReturn(true).when(sMockDevicePolicyManager).isAlwaysOnVpnLockdownEnabled(any()); in testIsAlwaysOnVpnEnabled()299 doReturn(false).when(sMockDevicePolicyManager).isAlwaysOnVpnLockdownEnabled(any()); in testVpnMsgOrLinkToBrowser()310 doReturn(true).when(sMockDevicePolicyManager).isAlwaysOnVpnLockdownEnabled(any()); in testVpnMsgOrLinkToBrowser()