yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
test_utils.cc
Go to the documentation of this file.
1#include "test_utils.h"
3
4namespace yaze {
5namespace test {
6namespace gui {
7
8void LoadRomInTest(ImGuiTestContext* ctx, const std::string& rom_path) {
9 yaze::core::Controller* controller = (yaze::core::Controller*)ctx->Test->UserData;
10 controller->OnEntry(rom_path);
11}
12
13void OpenEditorInTest(ImGuiTestContext* ctx, const std::string& editor_name) {
14 ctx->MenuClick(absl::StrFormat("Editors/%s", editor_name).c_str());
15}
16
17} // namespace gui
18} // namespace test
19} // namespace yaze
Main controller for the application.
Definition controller.h:24
absl::Status OnEntry(std::string filename="")
Definition controller.cc:23
void LoadRomInTest(ImGuiTestContext *ctx, const std::string &rom_path)
Definition test_utils.cc:8
void OpenEditorInTest(ImGuiTestContext *ctx, const std::string &editor_name)
Definition test_utils.cc:13
Main namespace for the application.