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

Commit c4dc4d15 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix testTokenBasedResetPassword."

parents fb48f85e 42904c15
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -353,8 +353,8 @@ public class SyntheticPasswordTests extends BaseLockSettingsServiceTests {

        // Verify DPM gets notified about new device lock
        mService.mHandler.runWithScissors(() -> {}, 0 /*now*/); // Flush runnables on handler
        PasswordMetrics metric = PasswordMetrics.computeForPassword(pattern);
        metric.quality = PASSWORD_QUALITY_SOMETHING;
        final PasswordMetrics metric = PasswordMetrics.computeForCredential(
                LockPatternUtils.CREDENTIAL_TYPE_PATTERN, pattern);
        verify(mDevicePolicyManager).setActivePasswordState(metric, PRIMARY_USER_ID);

        assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential(