| 1 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 2 |
|
| 3 |
#pragma once |
| 4 |
|
| 5 |
|
| 6 |
#include "tests/testinterface.h" |
| 7 |
|
| 8 |
#include <QObject> |
| 9 |
|
| 10 |
class ItemEncryptedTests final : public QObject |
| 11 |
{ |
| 12 |
Q_OBJECT |
| 13 |
public: |
| 14 |
explicit ItemEncryptedTests(const TestInterfacePtr &test, QObject *parent = nullptr); |
| 15 |
|
| 16 |
private slots: |
| 17 |
void initTestCase(); |
| 18 |
void cleanupTestCase(); |
| 19 |
void init(); |
| 20 |
void cleanup(); |
| 21 |
|
| 22 |
void encryptDecryptData(); |
| 23 |
|
| 24 |
void encryptDecryptItems(); |
| 25 |
|
| 26 |
private: |
| 27 |
bool isGpgInstalled() const; |
| 28 |
|
| 29 |
TestInterfacePtr m_test; |
| 30 |
}; |