Index: base/logging_unittest.cc |
diff --git a/base/logging_unittest.cc b/base/logging_unittest.cc |
index e0619425f7542804b0c4604aba51603f619ef3b8..8f941a92736c41a25b42484d05fadcffd8dced6e 100644 |
--- a/base/logging_unittest.cc |
+++ b/base/logging_unittest.cc |
@@ -258,6 +258,14 @@ TEST_F(LoggingTest, CheckEqStatements) { |
CHECK_EQ(false, true); // Unreached. |
} |
+// Test that scoped enums can be used with CHECK_EQ. |
+TEST_F(LoggingTest, ScopedEnum) { |
+ enum class TestEnum { |
+ Value, |
+ }; |
+ CHECK_EQ(TestEnum::Value, TestEnum::Value); |
+} |
dcheng
2015/11/13 03:30:23
This is where no-compile tests would be really use
|
+ |
// Test that defining an operator<< for a type in a namespace doesn't prevent |
// other code in that namespace from calling the operator<<(ostream, wstring) |
// defined by logging.h. This can fail if operator<<(ostream, wstring) can't be |