yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::emu::MockPpu Class Reference

Mock Ppu class for testing. More...

Inheritance diagram for yaze::test::emu::MockPpu:
Collaboration diagram for yaze::test::emu::MockPpu:

Public Member Functions

 MOCK_METHOD (void, Write,(uint16_t address, uint8_t data),(override))
 
 MOCK_METHOD (uint8_t, Read,(uint16_t address),(const, override))
 
- Public Member Functions inherited from yaze::app::emu::video::PpuInterface
virtual ~PpuInterface ()=default
 
virtual void Write (uint16_t address, uint8_t data)=0
 
virtual uint8_t Read (uint16_t address) const =0
 

Public Attributes

std::vector< uint8_t > internalFrameBuffer
 
std::vector< uint8_t > vram
 
std::vector< SpriteAttributessprites
 
std::vector< Tilemaptilemaps
 
BackgroundMode bgMode
 

Detailed Description

Mock Ppu class for testing.

Definition at line 25 of file ppu_test.cc.

Member Function Documentation

◆ MOCK_METHOD() [1/2]

yaze::test::emu::MockPpu::MOCK_METHOD ( void ,
Write ,
(uint16_t address, uint8_t data) ,
(override)  )

◆ MOCK_METHOD() [2/2]

yaze::test::emu::MockPpu::MOCK_METHOD ( uint8_t ,
Read ,
(uint16_t address) ,
(const, override)  )

Member Data Documentation

◆ internalFrameBuffer

std::vector<uint8_t> yaze::test::emu::MockPpu::internalFrameBuffer

Definition at line 30 of file ppu_test.cc.

◆ vram

std::vector<uint8_t> yaze::test::emu::MockPpu::vram

Definition at line 31 of file ppu_test.cc.

Referenced by yaze::test::emu::PpuTest::SetUp().

◆ sprites

std::vector<SpriteAttributes> yaze::test::emu::MockPpu::sprites

Definition at line 32 of file ppu_test.cc.

◆ tilemaps

std::vector<Tilemap> yaze::test::emu::MockPpu::tilemaps

Definition at line 33 of file ppu_test.cc.

◆ bgMode

BackgroundMode yaze::test::emu::MockPpu::bgMode

Definition at line 34 of file ppu_test.cc.


The documentation for this class was generated from the following file: