diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-13 13:14:25 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-13 13:31:06 +0200 |
commit | f482f4e2ebdff76d1818822fd98f7941787745d8 (patch) | |
tree | 901fe4211c2473bae735324abd50431497086bfa /tests/mock-resource-library.h | |
parent | f15c9a9aaacfde28fe1275ec337f0ad96abe8851 (diff) |
Added tests for Resource::reserve()
Diffstat (limited to 'tests/mock-resource-library.h')
-rw-r--r-- | tests/mock-resource-library.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/mock-resource-library.h b/tests/mock-resource-library.h index 6c743fe..1d3d17d 100644 --- a/tests/mock-resource-library.h +++ b/tests/mock-resource-library.h @@ -3,6 +3,7 @@ #include <QObject> #include "resource-library.h" +#include "resource.h" class MockResourceLibrary: public QObject, public ResourceLibrary { @@ -10,14 +11,19 @@ class MockResourceLibrary: public QObject, public ResourceLibrary private: bool initializeFails; bool connectToServerFails; + Resource *resource; + bool reserveFails; public: - MockResourceLibrary(QObject *parent=0,bool makeInitializationFail=false, - bool makeConnectingToServerFail=false); + 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 |