From 7b939d9a708fefaf3b2d8ca7414013850fef84c5 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 18 Jan 2025 12:33:46 -0500 Subject: [PATCH] Remove unused MockClock class from testing mocks --- src/test/core/testing.h | 2 +- src/test/mocks/mock_memory.h | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/test/core/testing.h b/src/test/core/testing.h index a8e68178..ddb52b72 100644 --- a/src/test/core/testing.h +++ b/src/test/core/testing.h @@ -45,4 +45,4 @@ MATCHER_P(IsOkAndHolds, value, "") { return IsOkAndHolds(arg, value); } } // namespace test } // namespace yaze -#endif // YAZE_TEST_CORE_TESTING_H \ No newline at end of file +#endif // YAZE_TEST_CORE_TESTING_H diff --git a/src/test/mocks/mock_memory.h b/src/test/mocks/mock_memory.h index 7a97311a..dce5ae2a 100644 --- a/src/test/mocks/mock_memory.h +++ b/src/test/mocks/mock_memory.h @@ -4,25 +4,11 @@ #include #include -#include "app/emu/cpu/clock.h" -#include "app/emu/cpu/cpu.h" #include "app/emu/memory/memory.h" namespace yaze { namespace emu { -/** - * @brief Mock CPU class for testing - */ -class MockClock : public Clock { - public: - 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)); -}; - /** * @class MockMemory * @brief A mock implementation of the Memory class.