summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/logging_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/logging_unittest.cc b/base/logging_unittest.cc
index 760cc24..10517a5 100644
--- a/base/logging_unittest.cc
+++ b/base/logging_unittest.cc
@@ -65,7 +65,7 @@ TEST_F(LoggingTest, BasicLogging) {
// As of g++-4.5, the first argument to EXPECT_EQ cannot be a
// constant expression.
const bool kIsDebugMode = (DEBUG_MODE != 0);
- EXPECT_EQ(kIsDebugMode, DLOG_IS_ON(INFO));
+ EXPECT_TRUE(kIsDebugMode == DLOG_IS_ON(INFO));
EXPECT_TRUE(VLOG_IS_ON(0));
LOG(INFO) << mock_log_source.Log();
@@ -120,7 +120,7 @@ TEST_F(LoggingTest, LogIsOn) {
EXPECT_FALSE(LOG_IS_ON(ERROR));
EXPECT_TRUE(LOG_IS_ON(ERROR_REPORT));
EXPECT_TRUE(LOG_IS_ON(FATAL));
- EXPECT_EQ(kDfatalIsFatal, LOG_IS_ON(DFATAL));
+ EXPECT_TRUE(kDfatalIsFatal == LOG_IS_ON(DFATAL));
// LOG_IS_ON(ERROR_REPORT) should always be true.
SetMinLogLevel(LOG_FATAL);
@@ -129,7 +129,7 @@ TEST_F(LoggingTest, LogIsOn) {
EXPECT_FALSE(LOG_IS_ON(ERROR));
EXPECT_TRUE(LOG_IS_ON(ERROR_REPORT));
EXPECT_TRUE(LOG_IS_ON(FATAL));
- EXPECT_EQ(kDfatalIsFatal, LOG_IS_ON(DFATAL));
+ EXPECT_TRUE(kDfatalIsFatal == LOG_IS_ON(DFATAL));
// So should LOG_IS_ON(FATAL).
SetMinLogLevel(LOG_FATAL + 1);
@@ -138,7 +138,7 @@ TEST_F(LoggingTest, LogIsOn) {
EXPECT_FALSE(LOG_IS_ON(ERROR));
EXPECT_TRUE(LOG_IS_ON(ERROR_REPORT));
EXPECT_TRUE(LOG_IS_ON(FATAL));
- EXPECT_EQ(kDfatalIsFatal, LOG_IS_ON(DFATAL));
+ EXPECT_TRUE(kDfatalIsFatal == LOG_IS_ON(DFATAL));
}
TEST_F(LoggingTest, LoggingIsLazy) {