| Index: base/metrics/histogram_unittest.nc
|
| diff --git a/base/metrics/histogram_unittest.nc b/base/metrics/histogram_unittest.nc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0dfe1af050accf102a4fbb3fb484825183f1d4a3
|
| --- /dev/null
|
| +++ b/base/metrics/histogram_unittest.nc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This is a "No Compile Test" suite.
|
| +// http://dev.chromium.org/developers/testing/no-compile-tests
|
| +
|
| +#include "base/metrics/histogram_macros.h"
|
| +
|
| +namespace base {
|
| +
|
| +#if defined(NCTEST_DIFFERENT_ENUM) // [r"\|sample\| and \|boundary\| shouldn't be of different enums"]
|
| +
|
| +void WontCompile() {
|
| + enum TypeA { A };
|
| + enum TypeB { B };
|
| + UMA_HISTOGRAM_ENUMERATION("", A, B);
|
| +}
|
| +
|
| +#endif
|
| +
|
| +} // namespace base
|
|
|