summaryrefslogtreecommitdiff
path: root/tests/mock-resource-library.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock-resource-library.h')
-rw-r--r--tests/mock-resource-library.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/mock-resource-library.h b/tests/mock-resource-library.h
new file mode 100644
index 0000000..df6fd97
--- /dev/null
+++ b/tests/mock-resource-library.h
@@ -0,0 +1,19 @@
+#ifndef MOCK_RESOURCE_LIBRARY_H
+#define MOCK_RESOURCE_LIBRARY_H
+
+#include <QObject>
+#include "resource-library.h"
+
+class MockResourceLibrary: public QObject, public ResourceLibrary
+{
+ Q_OBJECT
+private:
+ bool initializeFails;
+public:
+ MockResourceLibrary(QObject *parent=0,bool makeInitFail=false);
+ virtual ~MockResourceLibrary();
+ void makeInitializeFail();
+ bool initialize();
+};
+
+#endif