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

Unified Diff: extensions/common/file_util_unittest.cc

Issue 660703002: Convert ARRAYSIZE_UNSAFE -> arraysize in extensions/. (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
« no previous file with comments | « no previous file | extensions/common/permissions/extensions_api_permissions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/file_util_unittest.cc
diff --git a/extensions/common/file_util_unittest.cc b/extensions/common/file_util_unittest.cc
index 01a1672f5aeab86ad7aa5f2aa0e7a939e636f0b5..7e2f51d3c63094bda7deb62ab2adeb6969719341 100644
--- a/extensions/common/file_util_unittest.cc
+++ b/extensions/common/file_util_unittest.cc
@@ -422,7 +422,7 @@ TEST_F(FileUtilTest, ExtensionURLToRelativeFilePath) {
};
#undef URL_PREFIX
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
GURL url(test_cases[i].url);
base::FilePath expected_path =
base::FilePath::FromUTF8Unsafe(test_cases[i].expected_relative_path);
@@ -487,7 +487,7 @@ TEST_F(FileUtilTest, ExtensionResourceURLToFilePath) {
#undef SEP
#undef URL_PREFIX
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
GURL url(test_cases[i].url);
base::FilePath expected_path;
if (test_cases[i].expected_path)
« no previous file with comments | « no previous file | extensions/common/permissions/extensions_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698