Refactor TestEditor: move to yaze::test namespace and implement Save/Load methods

This commit is contained in:
scawful
2025-04-05 13:47:07 -04:00
parent ad490cad71
commit 0d4ae946f8
2 changed files with 11 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ int RunIntegrationTest() {
controller.window(), yaze::core::Renderer::GetInstance().renderer());
ImGui_ImplSDLRenderer2_Init(yaze::core::Renderer::GetInstance().renderer());
yaze::test::integration::TestEditor test_editor;
yaze::test::TestEditor test_editor;
test_editor.RegisterTests(engine);
ImGuiTestEngine_Start(engine, ImGui::GetCurrentContext());
controller.set_active(true);

View File

@@ -8,12 +8,14 @@
namespace yaze {
namespace test {
namespace integration {
class TestEditor : public yaze::editor::Editor {
public:
TestEditor() = default;
~TestEditor() = default;
void Initialize() override {
}
absl::Status Cut() override {
return absl::UnimplementedError("Not implemented");
@@ -38,6 +40,13 @@ class TestEditor : public yaze::editor::Editor {
absl::Status Update() override;
absl::Status Save() override {
return absl::UnimplementedError("Not implemented");
}
absl::Status Load() override {
return absl::UnimplementedError("Not implemented");
}
void RegisterTests(ImGuiTestEngine* engine);
private:
@@ -46,7 +55,6 @@ class TestEditor : public yaze::editor::Editor {
int RunIntegrationTest();
} // namespace integration
} // namespace test
} // namespace yaze