File indexing completed on 2024-04-21 03:54:49

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 2005 Till Adam <adam@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KACLTEST_H
0009 #define KACLTEST_H
0010 
0011 #include <QObject>
0012 #include <kacl.h>
0013 
0014 class KACLTest : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     KACLTest();
0019 
0020 private Q_SLOTS:
0021     void initTestCase();
0022     void testAsString();
0023     void testSetACL();
0024     void testGetOwnerPermissions();
0025     void testGetOwningGroupPermissions();
0026     void testGetOthersPermissions();
0027     void testGetMaskPermissions();
0028     void testGetAllUserPermissions();
0029     void testGetAllGroupsPermissions();
0030     void testIsExtended();
0031     void testOperators();
0032     void testSettingBasic();
0033     void testSettingExtended();
0034     void testSettingErrorHandling();
0035     void testNewMask();
0036 
0037 private:
0038     KACL m_acl;
0039     KACL m_acl2;
0040 
0041     QString m_testACL;
0042     QString m_testACL2;
0043     QString m_testACLEffective;
0044     int m_audioGid;
0045     int m_usersGid;
0046 };
0047 
0048 #endif