@@ -12,22 +12,22 @@ TEST(TimerTest, ValueAndReset)
1212 ClockMock clock;
1313
1414 std::chrono::steady_clock::time_point startTime (std::chrono::milliseconds (50 ));
15- EXPECT_CALL (clock, currentTime ()).WillOnce (Return (startTime));
15+ EXPECT_CALL (clock, currentSteadyTime ()).WillOnce (Return (startTime));
1616 Timer timer (&clock);
1717
1818 std::chrono::steady_clock::time_point time1 (std::chrono::milliseconds (73 ));
19- EXPECT_CALL (clock, currentTime ()).WillOnce (Return (time1));
19+ EXPECT_CALL (clock, currentSteadyTime ()).WillOnce (Return (time1));
2020 ASSERT_EQ (timer.value (), 0.023 );
2121
2222 std::chrono::steady_clock::time_point time2 (std::chrono::milliseconds (15432 ));
23- EXPECT_CALL (clock, currentTime ()).WillOnce (Return (time2));
23+ EXPECT_CALL (clock, currentSteadyTime ()).WillOnce (Return (time2));
2424 ASSERT_EQ (timer.value (), 15.382 );
2525
2626 std::chrono::steady_clock::time_point time3 (std::chrono::milliseconds (16025 ));
27- EXPECT_CALL (clock, currentTime ()).WillOnce (Return (time3));
27+ EXPECT_CALL (clock, currentSteadyTime ()).WillOnce (Return (time3));
2828 timer.reset ();
2929
3030 std::chrono::steady_clock::time_point time4 (std::chrono::milliseconds (24632 ));
31- EXPECT_CALL (clock, currentTime ()).WillOnce (Return (time4));
31+ EXPECT_CALL (clock, currentSteadyTime ()).WillOnce (Return (time4));
3232 ASSERT_EQ (timer.value (), 8.607 );
3333}
0 commit comments