yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::emu::CpuTest Class Reference
Inheritance diagram for yaze::test::emu::CpuTest:
Collaboration diagram for yaze::test::emu::CpuTest:

Public Member Functions

void SetUp () override
 

Public Attributes

AsmParser asm_parser
 
MockMemory mock_memory
 
MockClock mock_clock
 
CpuCallbacks cpu_callbacks
 
Cpu cpu {mock_memory, mock_clock, cpu_callbacks}
 

Detailed Description

Test
Test fixture for CPU unit tests

Definition at line 25 of file cpu_test.cc.

Member Function Documentation

◆ SetUp()

void yaze::test::emu::CpuTest::SetUp ( )
inlineoverride

Definition at line 27 of file cpu_test.cc.

References yaze::app::emu::memory::Memory::ClearMemory(), yaze::app::emu::memory::MockMemory::Init(), and mock_memory.

Here is the call graph for this function:

Member Data Documentation

◆ asm_parser

AsmParser yaze::test::emu::CpuTest::asm_parser

Definition at line 33 of file cpu_test.cc.

◆ mock_memory

MockMemory yaze::test::emu::CpuTest::mock_memory

Definition at line 34 of file cpu_test.cc.

Referenced by SetUp().

◆ mock_clock

MockClock yaze::test::emu::CpuTest::mock_clock

Definition at line 35 of file cpu_test.cc.

◆ cpu_callbacks

CpuCallbacks yaze::test::emu::CpuTest::cpu_callbacks

Definition at line 36 of file cpu_test.cc.

◆ cpu

Cpu yaze::test::emu::CpuTest::cpu {mock_memory, mock_clock, cpu_callbacks}

Definition at line 37 of file cpu_test.cc.


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