diff --git a/src/test/emu/cpu_test.cc b/src/test/emu/cpu_test.cc index 13b85ab5..93cc46ef 100644 --- a/src/test/emu/cpu_test.cc +++ b/src/test/emu/cpu_test.cc @@ -9,8 +9,9 @@ #include "app/emu/memory/memory.h" #include "app/emu/memory/mock_memory.h" -namespace yaze_test { -namespace emu_test { +namespace yaze { +namespace test { +namespace emu { using yaze::app::emu::AsmParser; using yaze::app::emu::Cpu; @@ -4197,5 +4198,6 @@ TEST_F(CpuTest, XCESwitchBackAndForth) { EXPECT_FALSE(cpu.E); // Emulation mode flag should be cleared } -} // namespace emu_test -} // namespace yaze_test +} // namespace emu +} // namespace test +} // namespace yaze diff --git a/src/test/emu/ppu_test.cc b/src/test/emu/ppu_test.cc index b12c56af..801a0c7b 100644 --- a/src/test/emu/ppu_test.cc +++ b/src/test/emu/ppu_test.cc @@ -6,8 +6,9 @@ #include "app/emu/memory/memory.h" #include "app/emu/memory/mock_memory.h" -namespace yaze_test { -namespace emu_test { +namespace yaze { +namespace test { +namespace emu { using yaze::app::emu::Clock; using yaze::app::emu::memory::MockClock; @@ -56,5 +57,6 @@ class PpuTest : public ::testing::Test { } }; -} // namespace emu_test -} // namespace yaze_test \ No newline at end of file +} // namespace emu +} // namespace test +} // namespace yaze \ No newline at end of file diff --git a/src/test/emu/spc700_test.cc b/src/test/emu/spc700_test.cc index 4f882985..16625fae 100644 --- a/src/test/emu/spc700_test.cc +++ b/src/test/emu/spc700_test.cc @@ -4,8 +4,9 @@ #include #include -namespace yaze_test { -namespace emu_test { +namespace yaze { +namespace test { +namespace emu { using testing::_; using testing::Return; @@ -470,5 +471,6 @@ TEST_F(Spc700Test, BootIplRomOk) { // EXPECT_EQ(spc700.PC, 0xFFC1 + 0x3F); } -} // namespace emu_test -} // namespace yaze_test +} // namespace emu +} // namespace test +} // namespace yaze diff --git a/src/test/gfx/compression_test.cc b/src/test/gfx/compression_test.cc index 724c6222..8b34ec33 100644 --- a/src/test/gfx/compression_test.cc +++ b/src/test/gfx/compression_test.cc @@ -10,8 +10,9 @@ #define BUILD_HEADER(command, length) (command << 5) + (length - 1) -namespace yaze_test { -namespace gfx_test { +namespace yaze { +namespace test { +namespace gfx { using yaze::app::Rom; using yaze::app::gfx::lc_lz2::CompressionContext; @@ -419,5 +420,6 @@ TEST(LC_LZ2_CompressionTest, DecompressionMixingCommand) { EXPECT_THAT(random1_o, ElementsAreArray(decomp_result.data(), 9)); } -} // namespace gfx_test -} // namespace yaze_test \ No newline at end of file +} // namespace gfx +} // namespace test +} // namespace yaze \ No newline at end of file diff --git a/src/test/gfx/snes_palette_test.cc b/src/test/gfx/snes_palette_test.cc index 85e3d397..c57397d2 100644 --- a/src/test/gfx/snes_palette_test.cc +++ b/src/test/gfx/snes_palette_test.cc @@ -5,8 +5,9 @@ #include "app/gfx/snes_color.h" -namespace yaze_test { -namespace gfx_test { +namespace yaze { +namespace test { +namespace gfx { using ::testing::ElementsAreArray; using yaze::app::gfx::ConvertRGBtoSNES; @@ -92,5 +93,6 @@ TEST(SNESColorTest, Convert) { EXPECT_THAT(data, ElementsAreArray(snes_string.data(), 10)); } -} // namespace gfx_test -} // namespace yaze_test \ No newline at end of file +} // namespace gfx +} // namespace test +} // namespace yaze \ No newline at end of file diff --git a/src/test/integration/test_editor.cc b/src/test/integration/test_editor.cc index 72ca2e65..35b75551 100644 --- a/src/test/integration/test_editor.cc +++ b/src/test/integration/test_editor.cc @@ -5,7 +5,8 @@ #include "imgui_test_engine/imgui_te_engine.h" #include "imgui_test_engine/imgui_te_ui.h" -namespace yaze_test { +namespace yaze { +namespace test { namespace integration { absl::Status TestEditor::Update() { @@ -35,4 +36,5 @@ void TestEditor::RegisterTests(ImGuiTestEngine* engine) { } } // namespace integration -} // namespace yaze_test +} // namespace test +} // namespace yaze diff --git a/src/test/integration/test_editor.h b/src/test/integration/test_editor.h index 59568be0..457c302e 100644 --- a/src/test/integration/test_editor.h +++ b/src/test/integration/test_editor.h @@ -6,7 +6,8 @@ #include "imgui_test_engine/imgui_te_context.h" #include "imgui_test_engine/imgui_te_engine.h" -namespace yaze_test { +namespace yaze { +namespace test { namespace integration { class TestEditor : public yaze::app::editor::Editor { @@ -39,12 +40,12 @@ class TestEditor : public yaze::app::editor::Editor { void RegisterTests(ImGuiTestEngine* engine); - private: - + private: ImGuiTestEngine* engine_; }; } // namespace integration -} // namespace yaze_test +} // namespace test +} // namespace yaze #endif // YAZE_TEST_INTEGRATION_TEST_EDITOR_H \ No newline at end of file diff --git a/src/test/libc_test.cc b/src/test/libc_test.cc index d845ca79..3771c4e3 100644 --- a/src/test/libc_test.cc +++ b/src/test/libc_test.cc @@ -2,7 +2,8 @@ #include "yaze.h" -namespace yaze_test { +namespace yaze { +namespace test { TEST(YazeCLibTest, InitializeAndCleanup) { yaze_flags flags; @@ -10,4 +11,5 @@ TEST(YazeCLibTest, InitializeAndCleanup) { yaze_cleanup(&flags); } -} // namespace yaze_test \ No newline at end of file +} // namespace test +} // namespace yaze \ No newline at end of file diff --git a/src/test/yaze_test.cc b/src/test/yaze_test.cc index c71df9ed..ff420392 100644 --- a/src/test/yaze_test.cc +++ b/src/test/yaze_test.cc @@ -26,7 +26,7 @@ int main(int argc, char* argv[]) { if (argc > 1 && std::string(argv[1]) == "integration") { // Support the ability to launch an integration test window. // SDL_SetMainReady(); - yaze_test::integration::TestEditor test_editor; + yaze::test::integration::TestEditor test_editor; yaze::app::core::Controller controller; controller.init_test_editor(&test_editor); diff --git a/src/test/zelda3/room_object_test.cc b/src/test/zelda3/room_object_test.cc index b63aefd1..cca0a191 100644 --- a/src/test/zelda3/room_object_test.cc +++ b/src/test/zelda3/room_object_test.cc @@ -10,8 +10,9 @@ #include "app/gfx/bitmap.h" #include "app/rom.h" -namespace yaze_test { -namespace zelda3_test { +namespace yaze { +namespace test { +namespace zelda3 { using yaze::app::Rom; using yaze::app::zelda3::dungeon::DungeonObjectRenderer; @@ -24,5 +25,6 @@ TEST(DungeonObjectTest, RenderObjectsAsBitmaps) { DungeonObjectRenderer renderer; } -} // namespace zelda3_test -} // namespace yaze_test \ No newline at end of file +} // namespace zelda3 +} // namespace test +} // namespace yaze \ No newline at end of file diff --git a/src/test/zelda3/sprite_builder_test.cc b/src/test/zelda3/sprite_builder_test.cc index 12d32f0b..f97ad8c2 100644 --- a/src/test/zelda3/sprite_builder_test.cc +++ b/src/test/zelda3/sprite_builder_test.cc @@ -3,8 +3,9 @@ #include #include -namespace yaze_test { -namespace zelda3_test { +namespace yaze { +namespace test { +namespace zelda3 { using namespace yaze::app::zelda3; @@ -54,12 +55,12 @@ class SpriteBuilderTest : public ::testing::Test { }; TEST_F(SpriteBuilderTest, BuildSpritePropertiesOk) { - EXPECT_THAT(sprite.BuildProperties(), - testing::HasSubstr(R"(!SPRID = $00 + EXPECT_THAT(sprite.BuildProperties(), testing::HasSubstr(R"(!SPRID = $00 !NbrTiles = $00 !Harmless = $00 )")); } } // namespace zelda3_test -} // namespace yaze_test \ No newline at end of file +} // namespace test +} // namespace yaze \ No newline at end of file