File indexing completed on 2024-05-05 05:17:16
0001 // SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 0008 #include <KIdentityManagementCore/IdentityManager> 0009 0010 class IdentityModelTester : public QObject 0011 { 0012 Q_OBJECT 0013 0014 private Q_SLOTS: 0015 void initTestCase(); 0016 void testModelCount(); 0017 void testModelData(); 0018 void testEmailFromUoid(); 0019 0020 private: 0021 uint pretestIdentityCount = 0; 0022 /** 0023 * Initialise in constructor to ensure we are A) using test paths 0024 * so that we B) do not modify the user's real identity configs 0025 */ 0026 std::unique_ptr<KIdentityManagementCore::IdentityManager> manager; 0027 };