diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-29 17:20:56 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-29 17:20:56 +0200 |
commit | 0746bbd252fe13ce3c4ae523fc28b0cf27314c05 (patch) | |
tree | 323b3406c6f893f21c7c7820532c0df2a61881cc /tests/mock-resource-library.h | |
parent | 27c45e867533ad43bc2b2e64fe577a503b2d05a8 (diff) |
Refactored Resource into multiple classes
Diffstat (limited to 'tests/mock-resource-library.h')
-rw-r--r-- | tests/mock-resource-library.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/mock-resource-library.h b/tests/mock-resource-library.h deleted file mode 100644 index 1d3d17d..0000000 --- a/tests/mock-resource-library.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef MOCK_RESOURCE_LIBRARY_H -#define MOCK_RESOURCE_LIBRARY_H - -#include <QObject> -#include "resource-library.h" -#include "resource.h" - -class MockResourceLibrary: public QObject, public ResourceLibrary -{ - Q_OBJECT -private: - bool initializeFails; - bool connectToServerFails; - Resource *resource; - bool reserveFails; -public: - MockResourceLibrary(Resource *resource=0,bool makeInitializationFail=false, - bool makeConnectingToServerFail=false, bool makeReserveFail=false); - virtual ~MockResourceLibrary(); - void makeInitializeFail(); - void makeServerConnectFail(); - bool initialize(); - bool connectToServer(); - - bool reserve(); - void makeReserveFail(); -}; - -#endif |