Reorganize emu folder, update S-SMP system infra

This commit is contained in:
scawful
2023-08-26 01:59:57 -04:00
parent 758056dc98
commit 3d793c452d
19 changed files with 1054 additions and 238 deletions

26
test/spc700_test.cc Normal file
View File

@@ -0,0 +1,26 @@
#include "app/emu/audio/spc700.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace yaze {
namespace app {
namespace emu {
class MockAudioRAM : public AudioRam {
public:
MOCK_METHOD(uint8_t, read, (uint16_t address), (const, override));
MOCK_METHOD(void, write, (uint16_t address, uint8_t value), (override));
};
class SPC700Test : public ::testing::Test {
protected:
SPC700Test() = default;
MockAudioRAM audioRAM;
SPC700 spc700{audioRAM};
};
} // namespace emu
} // namespace app
} // namespace yaze