Debian Codegraph @

tests/gui/captureHandler/MultiCaptureHandlerTests.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2021 Damir Porobic <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef KSNIP_MULTICAPTUREHANDLERTESTS_H
21 #define KSNIP_MULTICAPTUREHANDLERTESTS_H
22
23 #include <QtTest>
24
25 class MultiCaptureHandlerTests : public QObject
26 {
27 Q_OBJECT
28 private slots:
29 void Copy_Should_CopyCurrentTabImageToClipboard();
30 void CopyToClipboardTab_Should_FetchCorrectImageFromAnnotator_And_CopyItToClipboard();
31 void CopyPathToClipboardTab_Should_FetchCorrectPathFromTabStateHandler_And_CopyItToClipboard();
32 void OpenDirectory_Should_FetchCorrectPathFromTabStateHandler_And_PassTheParentDirectoryOnlyToDesktopService();
33 void UpdateContextMenuActions_Should_SetAllActionThatRequirePathToEnabled_When_PathIsValid();
34 void UpdateContextMenuActions_Should_SetAllActionThatRequirePathToDisabled_When_PathIsNotValid();
35 void UpdateContextMenuActions_Should_SetSaveActionToDisabled_When_CaptureSaved();
36 void UpdateContextMenuActions_Should_SetSaveActionToEnabled_When_CaptureNotSaved();
37 void CopyPath_Should_CopyCurrentTabPathToClipboard();
38 void OpenDirectory_Should_FetchCurrentTabPathFromTabStateHandler_And_PassTheParentDirectoryOnlyToDesktopService();
39 void RemoveImage_Should_NotRemoveTab_When_OperationDidNotDeleteImage();
40 void RemoveImage_Should_RemoveTab_When_OperationDidDeleteImage();
41 void SaveAll_Should_CallSaveForAllTabs_When_TabIsNotSaved();
42 };
43
44 #endif //KSNIP_MULTICAPTUREHANDLERTESTS_H