Remove unused MockClock class from testing mocks

This commit is contained in:
scawful
2025-01-18 12:33:46 -05:00
parent 339df53674
commit 7b939d9a70
2 changed files with 1 additions and 15 deletions

View File

@@ -45,4 +45,4 @@ MATCHER_P(IsOkAndHolds, value, "") { return IsOkAndHolds(arg, value); }
} // namespace test
} // namespace yaze
#endif // YAZE_TEST_CORE_TESTING_H
#endif // YAZE_TEST_CORE_TESTING_H

View File

@@ -4,25 +4,11 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#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.