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

Unified Diff: content/common/fileapi/file_system_util_unittest.cc

Issue 654403002: Convert ARRAYSIZE_UNSAFE -> arraysize in content/. (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 | « content/common/database_identifier_unittest.cc ('k') | content/common/sandbox_mac_diraccess_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/fileapi/file_system_util_unittest.cc
diff --git a/content/common/fileapi/file_system_util_unittest.cc b/content/common/fileapi/file_system_util_unittest.cc
index c6828d17cbfb6a17e1395d64e83470b30e23cae3..9dc47ddf8f723102bd6a4979d44b4f71d8ff93b5 100644
--- a/content/common/fileapi/file_system_util_unittest.cc
+++ b/content/common/fileapi/file_system_util_unittest.cc
@@ -69,7 +69,7 @@ TEST_F(FileSystemUtilTest, VirtualPathBaseName) {
{ FILE_PATH_LITERAL("////bar"), FILE_PATH_LITERAL("bar") },
{ FILE_PATH_LITERAL("bar"), FILE_PATH_LITERAL("bar") }
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
base::FilePath base_name = VirtualPath::BaseName(input);
EXPECT_EQ(test_cases[i].base_name, base_name.value());
@@ -109,7 +109,7 @@ TEST_F(FileSystemUtilTest, VirtualPathDirName) {
{ FILE_PATH_LITERAL("\\\\\\\\bar"), FILE_PATH_LITERAL("\\") },
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
base::FilePath dir_name = VirtualPath::DirName(input);
EXPECT_EQ(test_cases[i].dir_name, dir_name.value());
@@ -129,7 +129,7 @@ TEST_F(FileSystemUtilTest, GetNormalizedFilePath) {
{ FILE_PATH_LITERAL("\\foo"), FILE_PATH_LITERAL("/foo") },
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
base::FilePath::StringType normalized_path_string =
VirtualPath::GetNormalizedFilePath(input);
@@ -194,7 +194,7 @@ TEST_F(FileSystemUtilTest, VirtualPathGetComponents) {
{ FILE_PATH_LITERAL("c:"), FILE_PATH_LITERAL("bar") } },
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
std::vector<base::FilePath::StringType> components;
VirtualPath::GetComponents(input, &components);
@@ -202,7 +202,7 @@ TEST_F(FileSystemUtilTest, VirtualPathGetComponents) {
for (size_t j = 0; j < components.size(); ++j)
EXPECT_EQ(test_cases[i].components[j], components[j]);
}
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
+ for (size_t i = 0; i < arraysize(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
std::vector<std::string> components;
VirtualPath::GetComponentsUTF8Unsafe(input, &components);
« no previous file with comments | « content/common/database_identifier_unittest.cc ('k') | content/common/sandbox_mac_diraccess_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698