File indexing completed on 2024-04-14 03:58:06

0001 /*
0002     SPDX-FileCopyrightText: 2005 Kevin Ottens <ervin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef SOLIDHWTEST_H
0008 #define SOLIDHWTEST_H
0009 
0010 #include <QMap>
0011 #include <QObject>
0012 
0013 namespace Solid
0014 {
0015 namespace Backends
0016 {
0017 namespace Fake
0018 {
0019 class FakeManager;
0020 }
0021 }
0022 }
0023 
0024 class SolidHwTest : public QObject
0025 {
0026     Q_OBJECT
0027 private Q_SLOTS:
0028     void initTestCase();
0029     void testAllDevices();
0030     void testDeviceBasicFeatures();
0031     void testManagerSignals();
0032     void testDeviceSignals();
0033     void testDeviceExistence();
0034     void testDeviceInterfaceIntrospection_data();
0035     void testDeviceInterfaceIntrospection();
0036     void testDeviceInterfaceIntrospectionCornerCases();
0037     void testDeviceInterfaces();
0038     void testInvalidPredicate();
0039     void testPredicate();
0040     void testQueryStorageVolumeOrProcessor();
0041     void testQueryStorageVolumeOrStorageAccess();
0042     void testQueryWithParentUdi();
0043     void testListFromTypeProcessor();
0044     void testListFromTypeInvalid();
0045     void testSetupTeardown();
0046 
0047     void slotPropertyChanged(const QMap<QString, int> &changes);
0048 
0049 private:
0050     Solid::Backends::Fake::FakeManager *fakeManager;
0051     QList<QMap<QString, int>> m_changesList;
0052 };
0053 
0054 #endif