diff options
Diffstat (limited to 'Swift/Controllers/UnitTest/MockMainWindow.h')
-rw-r--r-- | Swift/Controllers/UnitTest/MockMainWindow.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Swift/Controllers/UnitTest/MockMainWindow.h b/Swift/Controllers/UnitTest/MockMainWindow.h new file mode 100644 index 0000000..9d2389b --- /dev/null +++ b/Swift/Controllers/UnitTest/MockMainWindow.h @@ -0,0 +1,20 @@ +#pragma once + +#include "Swift/Controllers/MainWindow.h" +#include "Swiften/Roster/TreeWidget.h" + +namespace Swift { + class MockMainWindow : public MainWindow { + public: + MockMainWindow(TreeWidget* treeWidget) {treeWidget_ = treeWidget;}; + virtual ~MockMainWindow() {}; + virtual TreeWidget* getTreeWidget() {return treeWidget_;}; + virtual void setMyName(const String& /*name*/) {};; + virtual void setMyAvatarPath(const String& /*path*/) {}; + virtual void setMyStatusText(const String& /*status*/) {}; + virtual void setMyStatusType(StatusShow::Type /*type*/) {}; + + private: + TreeWidget* treeWidget_; + }; +} |