File indexing completed on 2024-11-10 04:40:15

0001 /*
0002     SPDX-FileCopyrightText: 2009 Thomas McGuire <mcguire@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <QObject>
0009 #include <QVariant>
0010 
0011 class ResourceSchedulerTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit ResourceSchedulerTest(QObject *parent = nullptr);
0016 
0017 public Q_SLOTS:
0018     void customTask(const QVariant &argument);
0019     void customTaskNoArg();
0020 
0021 private Q_SLOTS:
0022 
0023     void testTaskComparison();
0024     void testChangeReplaySchedule();
0025     void testCustomTask();
0026     void testCompression();
0027     void testSyncCompletion();
0028     void testPriorities();
0029 
0030 private:
0031     int mCustomCallCount;
0032     QVariant mLastArgument;
0033 };