summaryrefslogtreecommitdiffstats
path: root/test/timer_test.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-02-28 09:54:08 -0800
committerWilliam A. Kennington III <wak@google.com>2018-02-28 15:38:41 -0800
commitd5d14833ca01ffefd2a81a4eacf6eff5fb2ba2ea (patch)
tree18785f5b6ebf06137e46ef2d5ebfef031ddd1af8 /test/timer_test.cpp
parent12926435b6f4880cb178d1d43295f7638a603ab8 (diff)
downloadphosphor-watchdog-d5d14833ca01ffefd2a81a4eacf6eff5fb2ba2ea.tar.gz
phosphor-watchdog-d5d14833ca01ffefd2a81a4eacf6eff5fb2ba2ea.zip
tests: Convert EXPECT_EQ(bool -> EXPECT_{TRUE,FALSE}
This is more in line with normal gtest code style. Change-Id: If49f700f756ad8d278927baae4e934ef7aa399d7 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test/timer_test.cpp')
-rw-r--r--test/timer_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/timer_test.cpp b/test/timer_test.cpp
index e9f323b..3deef08 100644
--- a/test/timer_test.cpp
+++ b/test/timer_test.cpp
@@ -30,11 +30,11 @@ TEST_F(TimerTest, testTimerForExpirationDefaultTimeoutHandler)
count++;
}
}
- EXPECT_EQ(true, timer.expired());
+ EXPECT_TRUE(timer.expired());
EXPECT_EQ(expireTime.count() - 1, count);
// Make sure secondary callback was not called.
- EXPECT_EQ(false, expired);
+ EXPECT_FALSE(expired);
}
/** @brief Starts the timer and expects it to expire
@@ -64,9 +64,9 @@ TEST_F(TimerTest, testTimerForExpirationSecondCallBack)
count++;
}
}
- EXPECT_EQ(true, timer.expired());
+ EXPECT_TRUE(timer.expired());
EXPECT_EQ(expireTime.count() - 1, count);
// This gets set as part of secondary callback
- EXPECT_EQ(true, expired);
+ EXPECT_TRUE(expired);
}
OpenPOWER on IntegriCloud