summaryrefslogtreecommitdiff
path: root/tests/test-resource-set.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-resource-set.h')
-rw-r--r--tests/test-resource-set.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/test-resource-set.h b/tests/test-resource-set.h
new file mode 100644
index 0000000..fa80df1
--- /dev/null
+++ b/tests/test-resource-set.h
@@ -0,0 +1,40 @@
+#ifndef TEST_RESOURCE_SET_H
+#define TEST_RESOURCE_SET_H
+
+#include <QtTest/QTest>
+#include "resource-set.h"
+
+using namespace ResourcePolicy;
+
+class TestResourceSet: public QObject
+{
+ Q_OBJECT
+private:
+ ResourceSet *resourceSet;
+ Resource audioPlayback;
+ Resource videoPlayback;
+ Resource videoRecorder;
+ Resource audioRecorder;
+
+public:
+ TestResourceSet();
+ ~TestResourceSet();
+
+
+private slots:
+
+ void init();
+ void cleanup();
+
+ void testIdentifier();
+
+ void testAddResource();
+ void testAddResources();
+ void testSetResources();
+
+ void testContainsSingle();
+ void testDoesNotContainSingle();
+ void testContainsSet();
+};
+
+#endif