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

Unified Diff: components/metrics/metrics_hashes_unittest.cc

Issue 658993002: Convert ARRAYSIZE_UNSAFE -> arraysize in components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: components/metrics/metrics_hashes_unittest.cc
diff --git a/components/metrics/metrics_hashes_unittest.cc b/components/metrics/metrics_hashes_unittest.cc
index ce803d1696d39ac60d6028c42e29ea01c66bf41f..b949058d64bc9b46a38e74ae0db59a6067831266 100644
--- a/components/metrics/metrics_hashes_unittest.cc
+++ b/components/metrics/metrics_hashes_unittest.cc
@@ -21,7 +21,7 @@ TEST(MetricsUtilTest, HashMetricName) {
{"NewTab", "0x290eb683f96572f1"},
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
uint64 hash = HashMetricName(cases[i].input);
std::string hash_hex = base::StringPrintf("0x%016" PRIx64, hash);
EXPECT_EQ(cases[i].output, hash_hex);

Powered by Google App Engine
This is Rietveld 408576698