Index: base/strings/utf_offset_string_conversions_unittest.cc |
diff --git a/base/strings/utf_offset_string_conversions_unittest.cc b/base/strings/utf_offset_string_conversions_unittest.cc |
index b50e1b69bfc2346e2c5d6d3901f9af86714801f4..529939f6013744ade1f45de42877c55474089391 100644 |
--- a/base/strings/utf_offset_string_conversions_unittest.cc |
+++ b/base/strings/utf_offset_string_conversions_unittest.cc |
@@ -34,7 +34,7 @@ TEST(UTFOffsetStringConversionsTest, AdjustOffset) { |
{"A\xF0\x90\x8C\x80z", 6, 4}, |
{"A\xF0\x90\x8C\x80z", kNpos, kNpos}, |
}; |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(utf8_to_utf16_cases); ++i) { |
+ for (size_t i = 0; i < arraysize(utf8_to_utf16_cases); ++i) { |
const size_t offset = utf8_to_utf16_cases[i].input_offset; |
std::vector<size_t> offsets; |
offsets.push_back(offset); |
@@ -64,7 +64,7 @@ TEST(UTFOffsetStringConversionsTest, AdjustOffset) { |
{{'A', 0xd800, 0xdf00, 'z'}, 3, 5}, |
{{'A', 0xd800, 0xdf00, 'z'}, 4, 6}, |
}; |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(utf16_to_utf8_cases); ++i) { |
+ for (size_t i = 0; i < arraysize(utf16_to_utf8_cases); ++i) { |
size_t offset = utf16_to_utf8_cases[i].input_offset; |
std::vector<size_t> offsets; |
offsets.push_back(offset); |