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

Unified Diff: base/metrics/histogram_functions_unittest.cc

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: simplify type checking Created 3 years, 5 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
« no previous file with comments | « base/debug/activity_tracker.cc ('k') | base/metrics/histogram_macros_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_functions_unittest.cc
diff --git a/base/metrics/histogram_functions_unittest.cc b/base/metrics/histogram_functions_unittest.cc
index 77a584bb12cda2f46cc532ec5974e3c873a3a3ae..7bfd202e2dc879d8a7edb94ff12e19c73bfa268f 100644
--- a/base/metrics/histogram_functions_unittest.cc
+++ b/base/metrics/histogram_functions_unittest.cc
@@ -47,7 +47,7 @@ TEST(HistogramFunctionsTest, HistogramEnumeration) {
// Verify the overflow & underflow bucket exists.
UMA_HISTOGRAM_ENUMERATION(
histogram, static_cast<int>(UMA_HISTOGRAM_TESTING_ENUM_THIRD) + 10,
- UMA_HISTOGRAM_TESTING_ENUM_THIRD);
+ static_cast<int>(UMA_HISTOGRAM_TESTING_ENUM_THIRD));
tester.ExpectBucketCount(
histogram, static_cast<int>(UMA_HISTOGRAM_TESTING_ENUM_THIRD) + 1, 1);
tester.ExpectTotalCount(histogram, 2);
« no previous file with comments | « base/debug/activity_tracker.cc ('k') | base/metrics/histogram_macros_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698