Index: components/query_parser/snippet_unittest.cc |
diff --git a/components/query_parser/snippet_unittest.cc b/components/query_parser/snippet_unittest.cc |
index c409415ded1126bed1e012a414cdaec156b2b4f1..7f96f67b6c2791053df42b66fb3723a7798cff6f 100644 |
--- a/components/query_parser/snippet_unittest.cc |
+++ b/components/query_parser/snippet_unittest.cc |
@@ -241,7 +241,7 @@ TEST(Snippets, ExtractMatchPositions) { |
{ "0 0 1 2 0 0 1 1", 1, { 1, 3 } }, |
{ "0 0 1 1 0 0 5 2 0 0 10 1 0 0 3 10", 2, { 1, 2, 3, 13 } }, |
}; |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(data); ++i) { |
+ for (size_t i = 0; i < arraysize(data); ++i) { |
Snippet::MatchPositions matches; |
Snippet::ExtractMatchPositions(data[i].offsets_string, "0", &matches); |
EXPECT_EQ(data[i].expected_match_count, matches.size()); |