Refactor test files: remove unused namespaces and improve include organization for clarity
This commit is contained in:
@@ -3,21 +3,18 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "app/emu/cpu/clock.h"
|
||||
#include "app/emu/cpu/internal/opcodes.h"
|
||||
#include "app/emu/memory/asm_parser.h"
|
||||
#include "app/emu/memory/memory.h"
|
||||
#include "test/mocks/mock_memory.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace test {
|
||||
namespace emu {
|
||||
|
||||
using yaze::emu::AsmParser;
|
||||
using yaze::emu::Cpu;
|
||||
using yaze::emu::memory::CpuCallbacks;
|
||||
using yaze::emu::memory::MockClock;
|
||||
using yaze::emu::memory::MockMemory;
|
||||
using yaze::emu::CpuCallbacks;
|
||||
using yaze::emu::MockClock;
|
||||
using yaze::emu::MockMemory;
|
||||
|
||||
/**
|
||||
* \test Test fixture for CPU unit tests
|
||||
@@ -4198,6 +4195,5 @@ TEST_F(CpuTest, XCESwitchBackAndForth) {
|
||||
EXPECT_FALSE(cpu.E); // Emulation mode flag should be cleared
|
||||
}
|
||||
|
||||
} // namespace emu
|
||||
} // namespace test
|
||||
} // namespace yaze
|
||||
|
||||
@@ -2,22 +2,17 @@
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "app/emu/cpu/clock.h"
|
||||
#include "app/emu/memory/memory.h"
|
||||
#include "test/mocks/mock_memory.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace test {
|
||||
namespace emu {
|
||||
|
||||
using yaze::emu::Clock;
|
||||
using yaze::emu::memory::MockClock;
|
||||
using yaze::emu::memory::MockMemory;
|
||||
using yaze::emu::video::BackgroundMode;
|
||||
using yaze::emu::video::PpuInterface;
|
||||
using yaze::emu::video::SpriteAttributes;
|
||||
using yaze::emu::video::Tilemap;
|
||||
using yaze::gfx::Bitmap;
|
||||
using yaze::emu::MockClock;
|
||||
using yaze::emu::MockMemory;
|
||||
using yaze::emu::BackgroundMode;
|
||||
using yaze::emu::PpuInterface;
|
||||
using yaze::emu::SpriteAttributes;
|
||||
using yaze::emu::Tilemap;
|
||||
|
||||
/**
|
||||
* @brief Mock Ppu class for testing
|
||||
@@ -57,6 +52,5 @@ class PpuTest : public ::testing::Test {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace emu
|
||||
} // namespace test
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace test {
|
||||
namespace emu {
|
||||
|
||||
using testing::_;
|
||||
using testing::Return;
|
||||
using yaze::emu::audio::ApuCallbacks;
|
||||
using yaze::emu::audio::AudioRam;
|
||||
using yaze::emu::audio::Spc700;
|
||||
using yaze::emu::ApuCallbacks;
|
||||
using yaze::emu::AudioRam;
|
||||
using yaze::emu::Spc700;
|
||||
|
||||
/**
|
||||
* @brief MockAudioRam is a mock class for the AudioRam class.
|
||||
@@ -471,6 +470,5 @@ TEST_F(Spc700Test, BootIplRomOk) {
|
||||
// EXPECT_EQ(spc700.PC, 0xFFC1 + 0x3F);
|
||||
}
|
||||
|
||||
} // namespace emu
|
||||
} // namespace test
|
||||
} // namespace yaze
|
||||
|
||||
Reference in New Issue
Block a user