3#include <gmock/gmock.h>
49 ON_CALL(
mock_ppu, Write(::testing::_, ::testing::_))
50 .WillByDefault([
this](uint16_t address, uint8_t data) {
54 ON_CALL(
mock_ppu, Read(::testing::_))
56 [
this](uint16_t address) {
return mock_ppu.
vram[address]; });
Mock CPU class for testing.
A mock implementation of the Memory class.
virtual void Write(uint16_t address, uint8_t data)=0
virtual uint8_t Read(uint16_t address) const =0
Represents a bitmap image.
Mock Ppu class for testing.
MOCK_METHOD(void, Write,(uint16_t address, uint8_t data),(override))
std::vector< Tilemap > tilemaps
std::vector< uint8_t > vram
std::vector< SpriteAttributes > sprites
std::vector< uint8_t > internalFrameBuffer
MOCK_METHOD(uint8_t, Read,(uint16_t address),(const, override))