summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/ui/edit_test.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/test/unit/ui/edit_test.cpp b/test/unit/ui/edit_test.cpp
index 4a4063e..34af013 100644
--- a/test/unit/ui/edit_test.cpp
+++ b/test/unit/ui/edit_test.cpp
@@ -1,4 +1,5 @@
#include "app/app.h"
+#include "app/gamedata.h"
#include "ui/edit.h"
@@ -14,6 +15,7 @@ class CEditTest : public testing::Test
public:
CEditTest()
: m_robotMain(nullptr)
+ , m_gameData(nullptr)
, m_engine(nullptr)
, m_edit(nullptr)
{}
@@ -21,21 +23,24 @@ public:
virtual void SetUp()
{
m_robotMain = new CRobotMain(&m_app, false);
-
+
+ m_gameData = new CGameData();
+
m_engine = new Gfx::CEngine(nullptr);
-
+
m_edit = new Ui::CEdit;
}
virtual void TearDown()
{
- delete m_robotMain;
- m_robotMain = nullptr;
- delete m_engine;
- m_engine = nullptr;
delete m_edit;
m_edit = nullptr;
-
+ delete m_engine;
+ m_engine = nullptr;
+ delete m_gameData;
+ m_gameData = nullptr;
+ delete m_robotMain;
+ m_robotMain = nullptr;
}
virtual ~CEditTest()
{
@@ -45,6 +50,7 @@ public:
protected:
CApplication m_app;
CRobotMain* m_robotMain;
+ CGameData * m_gameData;
Gfx::CEngine * m_engine;
Ui::CEdit * m_edit;
CLogger m_logger;