Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: test/unittests/base/logging-unittest.cc

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/unittests/base/logging-unittest.cc
diff --git a/test/unittests/base/logging-unittest.cc b/test/unittests/base/logging-unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f096131e77fc548078666712b6bf471cfba9e7b0
--- /dev/null
+++ b/test/unittests/base/logging-unittest.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/base/logging.h"
+#include "testing/gtest-support.h"
+
+namespace v8 {
+namespace base {
+
+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, ""));
+}
+
+
+TEST(LoggingTest, CheckNEImpl) {
+ EXPECT_NE(nullptr, CheckNEImpl(0.0, 0.0, ""));
+ EXPECT_NE(nullptr, CheckNEImpl(0.0, -0.0, ""));
+ EXPECT_NE(nullptr, CheckNEImpl(-0.0, 0.0, ""));
+ EXPECT_NE(nullptr, CheckNEImpl(-0.0, -0.0, ""));
+}
+
+} // namespace base
+} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698