TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kacltest.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* This file is part of the KDE project
  2. Copyright (C) 2005 Till Adam <adam@kde.org>
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef KACLTEST_H
  17. #define KACLTEST_H
  18. #include <tqobject.h>
  19. #include <kacl.h>
  20. class KACLTest
  21. {
  22. public:
  23. KACLTest();
  24. void setup();
  25. void runAll();
  26. void cleanup();
  27. void testAsString();
  28. void testSetACL();
  29. void testGetOwnerPermissions();
  30. void testGetOwningGroupPermissions();
  31. void testGetOthersPermissions();
  32. void testGetMaskPermissions();
  33. void testGetAllUserPermissions();
  34. void testGetAllGroupsPermissions();
  35. void testIsExtended();
  36. void testOperators();
  37. void testSettingBasic();
  38. void testSettingExtended();
  39. void testSettingErrorHandling();
  40. void testNewMask();
  41. private:
  42. KACL m_acl;
  43. };
  44. #endif