Changeset View
Changeset View
Standalone View
Standalone View
test/testdevice.h
- This file was added.
1 | /************************************************************************* | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2019 by Shubham <aryan100jangid@gmail.com> * | ||||
3 | * * | ||||
4 | * This program is free software; you can redistribute it and/or * | ||||
5 | * modify it under the terms of the GNU General Public License as * | ||||
6 | * published by the Free Software Foundation; either version 3 of * | ||||
7 | * the License, or (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, see <http://www.gnu.org/licenses/>.* | ||||
16 | **************************************************************************/ | ||||
17 | | ||||
18 | // SPDX-License-Identifier: GPL-3.0+ | ||||
19 | | ||||
20 | #ifndef TESTDEVICE_H | ||||
21 | #define TESTDEVICE_H | ||||
22 | | ||||
23 | #include "core/device.h" | ||||
24 | #include "core/devicescanner.h" | ||||
25 | #include "core/operationstack.h" | ||||
26 | | ||||
27 | #include <QList> | ||||
28 | | ||||
29 | class TestDevice | ||||
30 | { | ||||
31 | public: | ||||
32 | TestDevice(); | ||||
33 | ~TestDevice(); | ||||
34 | | ||||
35 | bool testDeviceName(); | ||||
36 | bool testDeviceNode(); | ||||
37 | bool testDeviceSize(); | ||||
38 | bool testDeviceTotalSectors(); | ||||
39 | | ||||
40 | private: | ||||
41 | QList <Device*> devices; | ||||
42 | OperationStack *operationStack; | ||||
43 | DeviceScanner *deviceScanner; | ||||
44 | }; | ||||
45 | | ||||
46 | #endif // TESTDEVICE_H |