Index: test/unittests/base/logging-unittest.cc |
diff --git a/test/unittests/base/logging-unittest.cc b/test/unittests/base/logging-unittest.cc |
index 918feb114bbbfdebd508600188acbcf38b7eff10..d79e59ee06e54504e00508f3cfdb6527fd52fa4c 100644 |
--- a/test/unittests/base/logging-unittest.cc |
+++ b/test/unittests/base/logging-unittest.cc |
@@ -8,11 +8,18 @@ |
namespace v8 { |
namespace base { |
+namespace { |
+template <typename Lhs, typename Rhs> |
+std::string *CallCheckEQ(Lhs lhs, Rhs rhs, const char *msg) { |
+ return CheckEQImpl<Lhs, Rhs>(lhs, rhs, msg); |
+} |
+} // namespace |
+ |
TEST(LoggingTest, CheckEQImpl) { |
- EXPECT_EQ(nullptr, CheckEQImpl(0.0, 0.0, "")); |
- EXPECT_EQ(nullptr, CheckEQImpl(0.0, -0.0, "")); |
- EXPECT_EQ(nullptr, CheckEQImpl(-0.0, 0.0, "")); |
- EXPECT_EQ(nullptr, CheckEQImpl(-0.0, -0.0, "")); |
+ EXPECT_EQ(nullptr, CallCheckEQ(0.0, 0.0, "")); |
+ EXPECT_EQ(nullptr, CallCheckEQ(0.0, -0.0, "")); |
+ EXPECT_EQ(nullptr, CallCheckEQ(-0.0, 0.0, "")); |
+ EXPECT_EQ(nullptr, CallCheckEQ(-0.0, -0.0, "")); |
} |
} // namespace base |