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

Unified Diff: content/browser/fileapi/external_mount_points_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
Index: content/browser/fileapi/external_mount_points_unittest.cc
diff --git a/content/browser/fileapi/external_mount_points_unittest.cc b/content/browser/fileapi/external_mount_points_unittest.cc
index c55d85415e187b0d28a22b5abcb5668762bdec79..447eb7348a7a85c687620180b1795736c35a1de3 100644
--- a/content/browser/fileapi/external_mount_points_unittest.cc
+++ b/content/browser/fileapi/external_mount_points_unittest.cc
@@ -106,7 +106,7 @@ TEST(ExternalMountPointsTest, AddMountPoint) {
};
// Test adding mount points.
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
+ for (size_t i = 0; i < arraysize(kTestCases); ++i) {
EXPECT_EQ(
kTestCases[i].success,
mount_points->RegisterFileSystem(kTestCases[i].name,
@@ -118,7 +118,7 @@ TEST(ExternalMountPointsTest, AddMountPoint) {
}
// Test that final mount point presence state is as expected.
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
+ for (size_t i = 0; i < arraysize(kTestCases); ++i) {
base::FilePath found_path;
EXPECT_EQ(kTestCases[i].registered_path != NULL,
mount_points->GetRegisteredPath(kTestCases[i].name, &found_path))
@@ -214,7 +214,7 @@ TEST(ExternalMountPointsTest, GetVirtualPath) {
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
+ for (size_t i = 0; i < arraysize(kTestCases); ++i) {
// Initialize virtual path with a value.
base::FilePath virtual_path(DRIVE FPL("/mount"));
base::FilePath local_path(kTestCases[i].local_path);
@@ -345,7 +345,7 @@ TEST(ExternalMountPointsTest, CreateCrackedFileSystemURL) {
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
+ for (size_t i = 0; i < arraysize(kTestCases); ++i) {
FileSystemURL cracked = mount_points->CreateCrackedFileSystemURL(
kTestOrigin,
storage::kFileSystemTypeExternal,
@@ -439,7 +439,7 @@ TEST(ExternalMountPointsTest, CrackVirtualPath) {
#endif
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
+ for (size_t i = 0; i < arraysize(kTestCases); ++i) {
std::string cracked_name;
storage::FileSystemType cracked_type;
std::string cracked_id;
« no previous file with comments | « content/browser/download/save_package_unittest.cc ('k') | content/browser/fileapi/file_system_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698