File indexing completed on 2024-12-01 04:35:23
0001 /* 0002 0003 * SPDX-FileCopyrightText: 2020 Alessandro Ambrosano <alessandro.ambrosano@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 * 0007 */ 0008 0009 #pragma once 0010 0011 #include <QObject> 0012 0013 class DDPAuthenticationManagerTest : public QObject 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 explicit DDPAuthenticationManagerTest(QObject *parent = nullptr); 0019 ~DDPAuthenticationManagerTest() override = default; 0020 0021 private Q_SLOTS: 0022 void testLoginSuccess(); 0023 void testLoginInvalidLoginInfo(); 0024 void testLoginWithOtpSuccess(); 0025 void testLoginWithOtpFailure(); 0026 void testUnknownError(); 0027 void testUserNotActivatedError(); 0028 void testLoginBlockForIpError(); 0029 void testLoginBlockedForUser(); 0030 void testLoginAppUserAllowToLogin(); 0031 };