yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::emu::memory::MockClock Class Reference

Mock CPU class for testing. More...

#include <mock_memory.h>

Inheritance diagram for yaze::app::emu::memory::MockClock:
Collaboration diagram for yaze::app::emu::memory::MockClock:

Public Member Functions

 MOCK_METHOD (void, UpdateClock,(double delta),(override))
 
 MOCK_METHOD (unsigned long long, GetCycleCount,(),(const, override))
 
 MOCK_METHOD (void, ResetAccumulatedTime,(),(override))
 
 MOCK_METHOD (void, SetFrequency,(float new_frequency),(override))
 
 MOCK_METHOD (float, GetFrequency,(),(const, override))
 
- Public Member Functions inherited from yaze::app::emu::Clock
virtual ~Clock ()=default
 
virtual void UpdateClock (double delta)=0
 
virtual unsigned long long GetCycleCount () const =0
 
virtual void ResetAccumulatedTime ()=0
 
virtual void SetFrequency (float new_frequency)=0
 
virtual float GetFrequency () const =0
 

Detailed Description

Mock CPU class for testing.

Definition at line 19 of file mock_memory.h.

Member Function Documentation

◆ MOCK_METHOD() [1/5]

yaze::app::emu::memory::MockClock::MOCK_METHOD ( void ,
UpdateClock ,
(double delta) ,
(override)  )

◆ MOCK_METHOD() [2/5]

yaze::app::emu::memory::MockClock::MOCK_METHOD ( unsigned long long ,
GetCycleCount ,
() ,
(const, override)  )

◆ MOCK_METHOD() [3/5]

yaze::app::emu::memory::MockClock::MOCK_METHOD ( void ,
ResetAccumulatedTime ,
() ,
(override)  )

◆ MOCK_METHOD() [4/5]

yaze::app::emu::memory::MockClock::MOCK_METHOD ( void ,
SetFrequency ,
(float new_frequency) ,
(override)  )

◆ MOCK_METHOD() [5/5]

yaze::app::emu::memory::MockClock::MOCK_METHOD ( float ,
GetFrequency ,
() ,
(const, override)  )

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