| Index: base/metrics/histogram_unittest.nc
|
| diff --git a/base/metrics/histogram_unittest.nc b/base/metrics/histogram_unittest.nc
|
| index 6f913e89f1475ca2dfa3a94317eaea2db9f7a674..ec56c85d1cf0590a325b2b26f25e10177ed2b83c 100644
|
| --- a/base/metrics/histogram_unittest.nc
|
| +++ b/base/metrics/histogram_unittest.nc
|
| @@ -17,6 +17,22 @@ void WontCompile() {
|
| UMA_HISTOGRAM_ENUMERATION("", A, B);
|
| }
|
|
|
| +#elif defined(NCTEST_DIFFERENT_ENUM_CLASS) // [r"\|sample\| and \|boundary\| shouldn't be of different enums"]
|
| +
|
| +void WontCompile() {
|
| + enum class TypeA { A };
|
| + enum class TypeB { B };
|
| + UMA_HISTOGRAM_ENUMERATION("", TypeA::A, TypeB::B);
|
| +}
|
| +
|
| +#elif defined(NCTEST_DIFFERENT_ENUM_MIXED) // [r"\|sample\| and \|boundary\| shouldn't be of different enums"]
|
| +
|
| +void WontCompile() {
|
| + enum class TypeA { A };
|
| + enum TypeB { B };
|
| + UMA_HISTOGRAM_ENUMERATION("", TypeA::A, B);
|
| +}
|
| +
|
| #elif defined(NCTEST_NEGATIVE_ENUM_MAX) // [r'static_assert failed "\|boundary\| is out of range of HistogramBase::Sample"']
|
|
|
| void WontCompile() {
|
|
|