diff options
Diffstat (limited to 'o3d/statsreport/common/highres_timer_unittest.cc')
-rw-r--r-- | o3d/statsreport/common/highres_timer_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/o3d/statsreport/common/highres_timer_unittest.cc b/o3d/statsreport/common/highres_timer_unittest.cc index 7f40f10..8a62a91 100644 --- a/o3d/statsreport/common/highres_timer_unittest.cc +++ b/o3d/statsreport/common/highres_timer_unittest.cc @@ -47,14 +47,14 @@ TEST(HighresTimer, DISABLED_MillisecondClock) { // note: this could fail if we context switch between initializing the timer // and here. Very unlikely however. - EXPECT_EQ(0, timer.GetElapsedMs()); + EXPECT_EQ(0U, timer.GetElapsedMs()); timer.Start(); uint64 half_ms = HighresTimer::GetTimerFrequency() / 2000; // busy wait for half a millisecond while (timer.start_ticks() + half_ms > HighresTimer::GetCurrentTicks()) { // Nothing } - EXPECT_EQ(1, timer.GetElapsedMs()); + EXPECT_EQ(1U, timer.GetElapsedMs()); } #ifndef BUILD_SERVER_BUILD @@ -64,21 +64,21 @@ TEST(HighresTimer, DISABLED_SecondClock) { #endif HighresTimer timer; - EXPECT_EQ(0, timer.GetElapsedSec()); + EXPECT_EQ(0U, timer.GetElapsedSec()); #ifdef OS_WIN ::Sleep(250); #else struct timespec ts1 = {0, 250000000}; nanosleep(&ts1, 0); #endif - EXPECT_EQ(0, timer.GetElapsedSec()); - EXPECT_LE(230, timer.GetElapsedMs()); - EXPECT_GE(270, timer.GetElapsedMs()); + EXPECT_EQ(0U, timer.GetElapsedSec()); + EXPECT_LE(230U, timer.GetElapsedMs()); + EXPECT_GE(270U, timer.GetElapsedMs()); #ifdef OS_WIN ::Sleep(251); #else struct timespec ts2 = {0, 251000000}; nanosleep(&ts2, 0); #endif - EXPECT_EQ(1, timer.GetElapsedSec()); + EXPECT_EQ(1U, timer.GetElapsedSec()); } |