Debian Codegraph @

src/tests/itemsynctests.h

raw
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 ItemSyncTests final : public QObject
11 {
12 Q_OBJECT
13 public:
14 explicit ItemSyncTests(const TestInterfacePtr &test, QObject *parent = nullptr);
15
16 static QString testTab(int i);
17
18 static QString testDir(int i);
19
20 private slots:
21 void initTestCase();
22 void cleanupTestCase();
23 void init();
24 void cleanup();
25
26 void createRemoveTestDir();
27
28 void itemsToFiles();
29 void filesToItems();
30
31 void removeOwnItems();
32 void removeNotOwnedItems();
33 void removeNotOwnedItemsCancel();
34 void removeFiles();
35
36 void modifyItems();
37 void modifyFiles();
38
39 void itemToClipboard();
40
41 void notes();
42
43 void customFormats();
44
45 void getAbsoluteFilePath();
46
47 void addItemsWhenFull();
48
49 void addItemsWhenFullOmitDeletingNotOwned();
50
51 void moveOwnItemsSortsBaseNames();
52 void moveOwnItemsKeepsLargeTextData();
53
54 void avoidDuplicateItemsAddedFromClipboard();
55
56 void saveLargeItem();
57
58 void sortItemsSimple();
59 void sortItems();
60
61 void copyFiles();
62
63 void encryptionShouldNotAffectFiles();
64
65 private:
66 TestInterfacePtr m_test;
67 };