add core/testable for gui test engine
This commit is contained in:
19
src/app/core/testable.h
Normal file
19
src/app/core/testable.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#ifndef YAZE_APP_CORE_TESTABLE_H
|
||||||
|
#define YAZE_APP_CORE_TESTABLE_H
|
||||||
|
|
||||||
|
#include <imgui_test_engine/imgui_te_context.h>
|
||||||
|
|
||||||
|
namespace yaze {
|
||||||
|
namespace app {
|
||||||
|
namespace core {
|
||||||
|
class GuiTestable {
|
||||||
|
public:
|
||||||
|
virtual void RegisterTests(ImGuiTestEngine* e) = 0;
|
||||||
|
|
||||||
|
ImGuiTestEngine* test_engine;
|
||||||
|
};
|
||||||
|
} // namespace core
|
||||||
|
} // namespace app
|
||||||
|
} // namespace yaze
|
||||||
|
|
||||||
|
#endif // YAZE_APP_CORE_TESTABLE_H
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
#include "app/core/common.h"
|
#include "app/core/common.h"
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "app/core/project.h"
|
#include "app/core/project.h"
|
||||||
|
#include "app/core/testable.h"
|
||||||
#include "app/editor/code/assembly_editor.h"
|
#include "app/editor/code/assembly_editor.h"
|
||||||
#include "app/editor/code/memory_editor.h"
|
#include "app/editor/code/memory_editor.h"
|
||||||
#include "app/editor/dungeon/dungeon_editor.h"
|
#include "app/editor/dungeon/dungeon_editor.h"
|
||||||
@@ -36,16 +37,6 @@
|
|||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
|
|
||||||
namespace core {
|
|
||||||
class GuiTestable {
|
|
||||||
public:
|
|
||||||
virtual void RegisterTests(ImGuiTestEngine* e) = 0;
|
|
||||||
|
|
||||||
ImGuiTestEngine* test_engine;
|
|
||||||
};
|
|
||||||
} // namespace core
|
|
||||||
|
|
||||||
namespace editor {
|
namespace editor {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user