File indexing completed on 2024-04-28 15:31:53

0001 /*
0002     SPDX-FileCopyrightText: 2015 Elvis Angelaccio <elvis.angelaccio@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KNEWPASSWORDWIDGETTEST_H
0008 #define KNEWPASSWORDWIDGETTEST_H
0009 
0010 #include <QObject>
0011 
0012 class KNewPasswordWidgetTest : public QObject
0013 {
0014     Q_OBJECT
0015 
0016 private Q_SLOTS:
0017 
0018     void testEmptyPasswordAllowed();
0019     void testEmptyPasswordNotAllowed();
0020     void testPasswordTooShort();
0021     void testPasswordMatch();
0022     void testPasswordNotVerified();
0023     void testWeakPassword();
0024     void testStrongPassword();
0025     void testReasonablePasswordLength();
0026     void testPasswordStrengthWarningLevel();
0027     void testNoWarningColorBeforeMismatch();
0028     void testWarningColorIfMismatch();
0029     void testWarningColorPostMatch();
0030     void disablingWidgetShouldUseDisabledPalette();
0031     void disablingParentShouldUseDisabledPalette();
0032     void disablingRevealPasswordShouldHideVisibilityAction();
0033     void shouldNotHideVisibilityActionInPlaintextMode();
0034     void shouldHideVerificationLineEditInPlaintextMode();
0035 };
0036 
0037 #endif