aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 09:41:33 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 09:41:33 +0100
commit77be74d880675c548417c7ff5af17e1785c62e05 (patch)
treec7e4807676f85ee5085ebf888d1e2097363310db /src/test
parent2c698f3b6d61fe7a494c9e88620e427b5059cee2 (diff)
changed some function names
Diffstat (limited to 'src/test')
-rw-r--r--src/test/LoopManagerTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/LoopManagerTest.cpp b/src/test/LoopManagerTest.cpp
index 55ccbb3..c44ebda 100644
--- a/src/test/LoopManagerTest.cpp
+++ b/src/test/LoopManagerTest.cpp
@@ -15,7 +15,7 @@ protected:
class TestGameLoop : public crepe::LoopManager {
public:
MOCK_METHOD(void, fixed_update, (), (override));
- MOCK_METHOD(void, update, (), (override));
+ MOCK_METHOD(void, frame_update, (), (override));
MOCK_METHOD(void, render, (), (override));
};
@@ -29,7 +29,7 @@ TEST_F(LoopManagerTest, FixedUpdate) {
// Set expectations for the mock calls
EXPECT_CALL(test_loop, render).Times(::testing::Exactly(60));
- EXPECT_CALL(test_loop, update).Times(::testing::Exactly(60));
+ EXPECT_CALL(test_loop, frame_update).Times(::testing::Exactly(60));
EXPECT_CALL(test_loop, fixed_update).Times(::testing::Exactly(50));
// Start the loop in a separate thread
@@ -51,7 +51,7 @@ TEST_F(LoopManagerTest, ScaledFixedUpdate) {
// Set expectations for the mock calls
EXPECT_CALL(test_loop, render).Times(::testing::Exactly(60));
- EXPECT_CALL(test_loop, update).Times(::testing::Exactly(60));
+ EXPECT_CALL(test_loop, frame_update).Times(::testing::Exactly(60));
EXPECT_CALL(test_loop, fixed_update).Times(::testing::Exactly(50));
// Start the loop in a separate thread
@@ -72,7 +72,7 @@ TEST_F(LoopManagerTest, ShutDown) {
test_loop.loop_timer.set_target_fps(60);
EXPECT_CALL(test_loop, render).Times(::testing::AtLeast(1));
- EXPECT_CALL(test_loop, update).Times(::testing::AtLeast(1));
+ EXPECT_CALL(test_loop, frame_update).Times(::testing::AtLeast(1));
EXPECT_CALL(test_loop, fixed_update).Times(::testing::AtLeast(1));
// Start the loop in a separate thread
std::thread loop_thread([&]() { test_loop.start(); });