Utility class for handling test ROM files. More...
#include <test_utils.h>
Classes | |
class | BoundRomTest |
Static Public Member Functions | |
static bool | IsRomTestingEnabled () |
Check if ROM testing is enabled and ROM file exists. | |
static std::string | GetTestRomPath () |
Get the path to the test ROM file. | |
static std::vector< uint8_t > | LoadTestRom () |
Load the test ROM file into memory. | |
static std::vector< uint8_t > | CreateMinimalTestRom (size_t size=1024 *1024) |
Create a minimal test ROM for unit testing. | |
static void | SkipIfRomTestingDisabled (const std::string &test_name) |
Skip test if ROM testing is not enabled. | |
Utility class for handling test ROM files.
Definition at line 27 of file test_utils.h.
|
inlinestatic |
Check if ROM testing is enabled and ROM file exists.
Definition at line 35 of file test_utils.h.
References GetTestRomPath().
Referenced by LoadTestRom(), and SkipIfRomTestingDisabled().
|
inlinestatic |
Get the path to the test ROM file.
Definition at line 47 of file test_utils.h.
Referenced by yaze::test::TestRomManager::BoundRomTest::EnsureRomLoaded(), yaze::test::TestRomManager::BoundRomTest::GetBoundRomPath(), IsRomTestingEnabled(), LoadTestRom(), and SkipIfRomTestingDisabled().
|
inlinestatic |
Load the test ROM file into memory.
Definition at line 59 of file test_utils.h.
References GetTestRomPath(), and IsRomTestingEnabled().
Referenced by yaze::test::RomDependentTest::SetUp().
|
inlinestatic |
Create a minimal test ROM for unit testing.
size | Size of the ROM in bytes |
Definition at line 93 of file test_utils.h.
|
inlinestatic |
Skip test if ROM testing is not enabled.
test_name | Name of the test for logging |
Definition at line 131 of file test_utils.h.
References GetTestRomPath(), and IsRomTestingEnabled().
Referenced by yaze::test::RomDependentTest::SetUp().