Index: base/metrics/histogram_unittest.nc |
diff --git a/base/metrics/histogram_unittest.nc b/base/metrics/histogram_unittest.nc |
index dee96c618902d95b2055b0f75fb6545b3f738157..c9c265799769c043511d251a0997d26f153aa35f 100644 |
--- a/base/metrics/histogram_unittest.nc |
+++ b/base/metrics/histogram_unittest.nc |
@@ -50,6 +50,13 @@ void WontCompile() { |
UMA_HISTOGRAM_ENUMERATION("", TypeA::A, TypeA::A); |
} |
+#elif defined(NCTEST_SAMPLE_NOT_ENUM) // [r'static_assert failed "Unexpected: \|boundary\| is enum, but \|sample\| is not."'] |
+ |
+void WontCompile() { |
+ enum TypeA { A }; |
+ UMA_HISTOGRAM_ENUMERATION("", 0, TypeA::A); |
+} |
+ |
#elif defined(NCTEST_FUNCTION_INT) // [r"Non enum passed to UmaHistogramEnumeration"] |
void WontCompile() { |