yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
test_dungeon_objects.h
Go to the documentation of this file.
1#ifndef YAZE_TEST_TEST_DUNGEON_OBJECTS_H
2#define YAZE_TEST_TEST_DUNGEON_OBJECTS_H
3
4#include <memory>
5#include <vector>
6
7#include "app/rom.h"
8#include "gtest/gtest.h"
9#include "mocks/mock_rom.h"
10#include "testing.h"
11
12namespace yaze {
13namespace test {
14
21class TestDungeonObjects : public ::testing::Test {
22 protected:
23 void SetUp() override;
24 void TearDown() override;
25
26 // Test helpers
27 absl::Status CreateTestRom();
28 absl::Status SetupObjectData();
29
30 // Mock data generators
31 std::vector<uint8_t> CreateObjectSubtypeTable(int base_addr, int count);
32 std::vector<uint8_t> CreateTileData(int base_addr, int tile_count);
33 std::vector<uint8_t> CreateRoomHeader(int room_id);
34
35 std::unique_ptr<MockRom> test_rom_;
36
37 // Test constants
38 static constexpr int kTestObjectId = 0x01;
39 static constexpr int kTestRoomId = 0x00;
40 static constexpr size_t kTestRomSize = 0x100000; // 1MB test ROM
41};
42
43} // namespace test
44} // namespace yaze
45
46#endif // YAZE_TEST_TEST_DUNGEON_OBJECTS_H
Simplified test framework for dungeon object rendering.
std::vector< uint8_t > CreateTileData(int base_addr, int tile_count)
static constexpr size_t kTestRomSize
std::vector< uint8_t > CreateRoomHeader(int room_id)
std::vector< uint8_t > CreateObjectSubtypeTable(int base_addr, int count)
std::unique_ptr< MockRom > test_rom_
Main namespace for the application.
Definition controller.cc:20