Home
last modified time | relevance | path

Searched refs:sMockDevicePolicyManager (Results 1 – 1 of 1) sorted by relevance

/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java118 private static DevicePolicyManager sMockDevicePolicyManager; field in CaptivePortalLoginActivityTest
124 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()