summaryrefslogtreecommitdiffstats
path: root/test/unit/ui/stubs/app_stub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ui/stubs/app_stub.cpp')
-rw-r--r--test/unit/ui/stubs/app_stub.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/unit/ui/stubs/app_stub.cpp b/test/unit/ui/stubs/app_stub.cpp
new file mode 100644
index 0000000..9b33e5e
--- /dev/null
+++ b/test/unit/ui/stubs/app_stub.cpp
@@ -0,0 +1,52 @@
+#include "app/app.h"
+
+#include "graphics/opengl/gldevice.h"
+
+template<> CApplication* CSingleton<CApplication>::m_instance = nullptr;
+
+namespace Gfx {
+
+GLDeviceConfig::GLDeviceConfig()
+{
+}
+
+} /* Gfx */
+
+
+CApplication::CApplication()
+{
+}
+
+CApplication::~CApplication()
+{
+}
+
+std::string CApplication::GetDataFilePath(DataDir /* dataDir */, const std::string& subpath)
+{
+ return subpath;
+}
+
+CSoundInterface* CApplication::GetSound()
+{
+ return nullptr;
+}
+
+CEventQueue* CApplication::GetEventQueue()
+{
+ return nullptr;
+}
+
+std::string CApplication::GetDataDirPath()
+{
+ return "";
+}
+
+Event CApplication::CreateUpdateEvent()
+{
+ return Event(EVENT_NULL);
+}
+
+char CApplication::GetLanguageChar()
+{
+ return 'E';
+}